File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes Automated Testing Tools Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Automated Testing Tools" Watch "Automated Testing Tools" New topic
Author

Automated Testing Tools

Patricia Fulk
Ranch Hand

Joined: Sep 10, 2001
Posts: 62
Hello,
I was wanting to get some ideas of some good automated testing tools. Can you help?
Thanks!
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
What is it that you are looking to test and at what level? For example, there are tools that help to unit test Java classes right up to tools that automate functional testing of GUIs.
Simon
Keshav Anand
Greenhorn

Joined: Mar 03, 2003
Posts: 2
I would like to know the Automated Unit testing tools for Java apart from JUnit, since JUnit is not much Helpful atleast in terms of our project. Its Urgent..?
Thanks in adv
Keshav


Keshav
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Why is JUnit not useful? What are you trying to test?
Simon
Keshav Anand
Greenhorn

Joined: Mar 03, 2003
Posts: 2
First is we cant test the methods returning void properly using JUnit and it tests only the return types of the methods and its a tedious process to call the methods with different sets of data again and again...
And as we have very less time for project we are looking at automated UNIT testing tools...
Thanks in adv.
Keshav
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
I think that you can get tools that can generate JUnit tests for you, but these will only provide you with the basics. Just because a method returns void doesn't mean that it can't be tested with JUnit. For example, what does that method do? If it modifies internal state, then you can run assertions upon that. If it inserts data into a database, then you can write a test to check that it is there.
Simon
Patricia Fulk
Ranch Hand

Joined: Sep 10, 2001
Posts: 62
I guess it would of helped to explain more. We have a web application in WebSphere that is using JSP, Servlets, and EJB's. We are looking for software that will do unit testing that is automated. So that each time we deploy a script can be run to test the site. We are currently looking at Segue's silktest, but we are wanting some other software to compare it to. Can anyone help?
Thanks,
Trish
Gobiraj Vadivelrajan
Greenhorn

Joined: Dec 10, 2001
Posts: 29
If u want to do Java API level testing then
there are tools like Cactus
Cactus can be used to test all server side Java components
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by Patricia Fulk:
I guess it would of helped to explain more. We have a web application in WebSphere that is using JSP, Servlets, and EJB's. We are looking for software that will do unit testing that is automated. So that each time we deploy a script can be run to test the site. We are currently looking at Segue's silktest, but we are wanting some other software to compare it to. Can anyone help?
Thanks,
Trish

Actually this sounds more like functional testing to me...
Regardless, you may want to take a look at HttpUnit. It is a fairly good automated web testing tool and the price is right.
[ March 03, 2003: Message edited by: Chris Mathews ]
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
I agree with Chris - sounds like you want to test the functionality provided by your application, often called functional or acceptance testing.
This page over at the JUnit website lists some more frameworks that you can use to do this.
Hope that helps
Simon
[ March 04, 2003: Message edited by: Simon Brown ]
Johny bravo
Greenhorn

Joined: Sep 16, 2004
Posts: 3
So does JUNit do GUI testing just like SilkTest does other then unit testing of the code...
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Johny bravo:
So does JUNit do GUI testing just like SilkTest does other then unit testing of the code...

SilkTest is a functional testing tool while JUnit is a unit testing tool. In other words, no, JUnit doesn't do GUI testing just like SilkTest does.

However, there are a couple of JUnit "extensions" that make it possible to write JUnit tests that exercise a GUI written in Swing, for example.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
If you want to go with a JUnit extension, I'd advice to use either HtmlUnit or JWebUnit.

Alternatives are FitNesse (with HtmlFixture), Canoo Webtest and a myriad of other tools (sorry, can't be more specific, I haven't yet tested web applications at the functional level).

Whatever tool you choose, though, if you are really short on time, you best invest a *significant* amount of it in creating good tests - they will save you later.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Arijit Ghosh
Ranch Hand

Joined: Feb 01, 2002
Posts: 174
Well.. any automated testing tool for J2ME based projects ?

Regards,
Arijit


Regards,<br /> Arijit
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Arijit Ghosh:
any automated testing tool for J2ME based projects ?

Google tells all. In this case, J2MEUnit.
Arijit Ghosh
Greenhorn

Joined: Sep 23, 2002
Posts: 22
Not looking for Unit Testing.. Anything for functional testing ? Anything for verification of correctly generated JAR and JADs ?


Thanks,<br /> Arijit
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Arijit Ghosh:
Anything for verification of correctly generated JAR and JADs ?
Would Antenna's preverification task be what you're looking for?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Automated Testing Tools