Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Testing process

 
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
www.junit.org
www.parasoft.com/products/jtest
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you, Ersin
Will get back to you with specific questions I have on this subject.
Regards,
Sandeep
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 6055
8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 17665
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic