This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How JUnit/JMeter Differ?

 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a feeling that JUnit and JMeter cater to the same requirements, are they competing tools?
 
Les Dsouza
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic