Web app testing
Ever use HttpUnit or JMeter? I'm currently looking into these for use at work.
Basically HttpUnit is a java library that uses JUnit, and creates HTTP posts/gets, works with the response, parsing HTML/DOM.
JMeter is more general purpose, it can test more than Http (JDBC, web services, regular Java programs) and it's got a GUI where you configure everything.
AI Summary
5 Comments
JMeter is pretty sweet. Figured out how to record a test case through the browser (via proxy), automatically replacing configurable items with variables (for host, port, username, etc.) - I liked that.
In the process of recording some test cases right now, that can be run during integration (pre-production), just for basic functionality (not load-testing).
I even wrote a proxy-configuration file (first time), so the JMeter proxy is only used for 'localhost'.
Used JMeter about 2 weeks ago here. It's pretty cool. Mainly for load testing. It's a little buggy tho, and didn't always process as many requests as we defined. Nowhere near as nice as the commercial tools out there for load testing (LoadRunner, etc), but it's free and does a decent job.
The online documentation is lacking, tho. Although the internal Help file is pretty good.
Haven't used HttpUnit or even JUnit, actually. Just seems like a lot of work to write unit tests for every method and jsp.. :/
yeah, I just got a test working for JMeter in like two minutes. that's pretty cool.
You don't 'have' to write a test for every single method and jsp if you use JUnit.
Thing is, I need something that will handle JavaScript correctly, not just a pre-defined post or get. and it seems that HttpUnit handles this nicely with Mozilla's Rhino (JavaScript for Java). that's cool. I'm still looking into it though....
by