Skip to main content
0 online

Web app testing

deanh77 by deanh77Founder · Nov 4, 2004 · 69 views

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.

To contribute to the discussion, please log in.

5 Comments

deanh77 #2 deanh77Founder

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'.

iwz #2.1 iwz

whoa! didn't know you can do that! details on recording please

deanh77 #2.1.1 deanh77Founder

check it out:
/forums/8/threads/1139

iwz #1 iwz

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.. :/

deanh77 #1.1 deanh77Founder

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....

Welcome Back to eZabel

It's been a while. Here's what's new.

eZabel Lore

A complete history of our community — stats, Hall of Fame, legendary threads, and more.

View the Lore →

Curator Commentary

Look for the blue speech bubbles on threads, profiles, and news — notes and context from iwz.

Everything Preserved

All 225,969 pieces of content from 2000–2014 are here — forums, messages, journals, photos, polls, and events.