aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Test Case generation tools required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Test Case generation tools required" Watch "Test Case generation tools required" New topic
Author

Test Case generation tools required

Praveen Chadichal
Greenhorn

Joined: Apr 07, 2009
Posts: 21
Hi,
I am looking for the test case generation tool for my project, can anyone please suggest a test case generation tool. I have gone through the tool called AGITAR ONE, but due to unavailability of lisence am unable to use it, if anyone has an idea on this tool(AGITAR) then can anyone share/ give me atleast the trail version of this tool so that i can have a hands-on on this tool, if you have any other tool like this on test case generation please lemme know. Your kind help is deeply appreciated, please help me as soon as possible. Any suggestions are welcome.

Note:I hope you have understood that its not a testing tool am asking for but its a test case generation tool.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30918
    
158

Agitar went out of business. The current tools is CodePro AnalytiX

Do note that while tools like JTest and AnalytiX can generate test cases, they only validate that your code works the way it currently does. They do not test the code is correct and tend to be difficult to modify by hand. It is important to make sure you have a clear goal in mind before starting and that such a tool meets that goal.

These tools are also expensive and not likely to be free. Even if there is a trial, the tests aren't very useful without the original tool.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Praveen Chadichal
Greenhorn

Joined: Apr 07, 2009
Posts: 21
Hi Jeanne,
Thanks for your reply,
I found a test case generation tool in this link " http://user.it.uu.se/~hessel/Thesis/sub.pdf " but i did not find a installable for the same, could you please help on this.
If possible can you please suggest or share a open source tool or atleast a freeware tool on this.
Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
I think the link you are referring is a project work somebody submitted for an university. I don't think you can get this for your purpose.

As mentioned by Jeanne, automated testing tools are not available as freeware, due to its commercial in nature.


Mourougan
Open Source leads to Open Mind
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30918
    
158

Pavi,
I don't think there is a free tool in this category.
Praveen Chadichal
Greenhorn

Joined: Apr 07, 2009
Posts: 21
Ohooo ok , thanks guys , I think the codePro will do the work for now. Lemme have a trail on this.
Praveen Chadichal
Greenhorn

Joined: Apr 07, 2009
Posts: 21
Hi,
I worked arround this codePro tool, but the porblrm i am encountering is that whenever i run this to my project packages or even a class/file the test case generated are empty like this below.
/**
* Run the String assignCustomerProxy() method test.
*
* @generatedBy CodePro at 4/15/09 6:39 PM
*/
@Test
public void testAssignCustomerProxy_fixture_1()
throws Exception
{
AssignProxyBean fixture2 = getFixture();

String result = fixture2.assignCustomerProxy();

// add additional test code here
// An unexpected exception was thrown while executing this test:
// java.lang.NullPointerException
// at com.gfs.ebiz.rm.app.ui.controller.AssignProxyBean.assignCustomerProxy(AssignProxyBean.java:162)
assertNotNull(result);
}
You can see here that it says a null pointer exception... I figured it out & found that its due to the service call that is coming as null. The method code is as below.
public String assignCustomerProxy ( )
{
this.setProxyList( this.proxyUserService.searchGrantorProxies(
userProfileDTO.getUserId(), UserType.validValues()[Integer.valueOf( userProfileDTO
.getLoginUserType() -1 )] ) );
this.setSaveSuccess( false );
if ( !this.proxyList.isEmpty() )
{
this.setProxyCustomerFlag( true );
}
else
{
this.setProxyCustomerFlag( false );
}
return RMConstants.PROXY_FOR_CUSTOMER;
}
Here above you see in Bold letters the service layer which i found it to null. Now why not the service layer is not set. Is it that codePro is/will not set these values, if so then whats the use of this if we write manually, its same as writing manually. Can any one suggest me something. Urgent reply is appreciated.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

For unit testing, the Eclipse IDE JDT includes a wizard for creating JUnit tests which can be run either from within Eclipse or standalone. I've recently managed to come up with a fairly clean way to extend that for DAO testing using dbUnit.

For higher testing levels such as integration testing and GUI testing, everything I know of is commercial.


Customer surveys are for companies who didn't pay proper attention to begin with.
Praveen Chadichal
Greenhorn

Joined: Apr 07, 2009
Posts: 21
HI tim thanks for your reply. If am not wrong i think you are telling about the Junit Eclipse tool that will just test the test cases and do not generate them.
else tim if you telling me a plugin in eclipse that will generate the test cases can you share or tell me regarding that.
Also when i tried to generate the Junit test cases using this CodePro AnalatiX tool i found that the tool is creating the integration test cases rather than the Junit test cases. Coz when i generated test cases i found that the test case method is calling the service class method which should not be done rather it must create the mockObject and run the test case.
Previously we used EasyMock for manually creating the test cases which was a tedious job so i suggested to switch to the Junit test case generating tool like Agitar or CodePro AnalatiX. But now am facing this issue.
So can you please suggest me how can i achieve this?
Or if you have any other tool can you please share. Looking for the response ASAP.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Test Case generation tools required