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
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.
As much as a like JUnit, be sure you understand that it is just for unittesting. 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.
Joined: Jul 17, 2001
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.
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