This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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.
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.
I don't think there is a free tool in this category.
Joined: Apr 07, 2009
Ohooo ok , thanks guys , I think the codePro will do the work for now. Lemme have a trail on this.
Joined: Apr 07, 2009
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
public void testAssignCustomerProxy_fixture_1()
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)
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 ( )
userProfileDTO.getUserId(), UserType.validValues()[Integer.valueOf( userProfileDTO
.getLoginUserType() -1 )] ) );
this.setSaveSuccess( false );
if ( !this.proxyList.isEmpty() )
this.setProxyCustomerFlag( true );
this.setProxyCustomerFlag( false );
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.
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.
An IDE is no substitute for an Intelligent Developer.
Joined: Apr 07, 2009
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.