wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes How JUnit/JMeter Differ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How JUnit/JMeter Differ?" Watch "How JUnit/JMeter Differ?" New topic
Author

How JUnit/JMeter Differ?

Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Hi,
I have a feeling that JUnit and JMeter cater to the same requirements, are they competing tools?


Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Les Dsouza
Greenhorn

Joined: Jan 29, 2002
Posts: 27
Hi,
Junit is for unit testing of java classes.
Jmeter can be used for testing servlets - unit as well as load testing.
regards,
lester
Guillaume Compagnon
Ranch Hand

Joined: Aug 09, 2001
Posts: 106
concerning JMeter, it's load charge tool.
and if you develop the VU (virtual user) component according its API, U can test in charge all the server U can imagine.
I ve done some interessant add on to JMEter and make it as a "must have" home tool.


---------<BR>Guillaume
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Hi Guillaume,
I have worked with load runner and i guess Jmeter is same as that. What is that add on you did to JMeter?
thanks,
Guillaume Compagnon
Ranch Hand

Joined: Aug 09, 2001
Posts: 106
yes, it s the same purpose ...
but Mercury is more complete to generate benchmark reports ...
however Mercury Load Runner is quite more heavy.
I can make a web server having bad moment with only JMeter on my laptop.
(with LoadRunner , U need a PC farm)
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Hi Guillaume ,
Thanks for the clarifications.
I ve done some interessant add on to JMEter and make it as a "must have" home tool.
What is this that you are talking about?
Guillaume Compagnon
Ranch Hand

Joined: Aug 09, 2001
Posts: 106
for example, I ve got a composition server (a server that takes XML into a HTTP POST request and gives a PDF in reponse)
and for testing this server, i ve developped my own Virtual User , and plug it into JMETER.
if U learn the JMETER API , it is easy to add some capability ...
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
You can quickly come up with a load test with JMeter using its GUI.
To do the same with JUnit, you would want to use JUnitPerf and HttpUnit.
The book covers both ways and has examples using them together.


Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How JUnit/JMeter Differ?