Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing process

 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I suppose this is one of the subjects which is not covered much during our discussions at Javaranch.Is there a Framework which provides writing and running automated tests?
Thanks in advance,
Sandeep

 
ersin eser
Ranch Hand
Posts: 1072
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Ersin
Will get back to you with specific questions I have on this subject.
Regards,
Sandeep
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I strongly suggest you look at JUnit. It's very well supported by the Extreme Programming (XP) community and it has a ton of additional tools for it. It's also very well documented in gazillions of articles and books (like Martin Fowler's "Refactoring").
However, I just want to let you know I REALLY like it. I've been using it since just a few weeks after Kent and Erich first wrote it and I LOVE it.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Paul Newton
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would echo Kyle's endorsement. JUnit has everything I like in a tool: painfully simple but so powerful. I would not embark on a software project without xUnit.
regards,
paul.
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As much as a like JUnit, be sure you understand that it is just for unit testing. It is not well suited to web testing, load testing, GUI testing, client/server testing, etc.
JTest is very similar, but commercial. I like JTest in principle, but hate the UI. JTest has the same limitations as the ones named for JUnit, above.

--Mark
 
Paul Newton
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good point Mark. Unit testing is just one part of the ugly testing game.
For simple performance testing and stress tests, you could take a look at the Apache JMeter tool. Pretty simple and still very buggy, but useful for some simple load simulations. I use it for simulating concurrent users for web applications. Could be an interesting tool for the future.
regards,
paul.
 
Junilu Lacar
Bartender
Pie
Posts: 7795
62
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True, JUnit is mainly for unit testing. However, there are other frameworks out there that are extensions of JUnit that are targetted for client/server, server-side, http, etc. unit testing. The Jakarta Cactus project is a JUnit-based test framework for the server-side and IIRC, the unit tests for the Struts framework are written for use with Cactus. There is also HttpUnit, which is for the web client side testing. I haven't used them myself yet but hope to RSN.
Junilu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic