CodePro AnalytiX (Audit & Test), includes over 1000 audit rules and metrics, JUnit test generation & editing, code coverage, and duplicate code analysis
Moderators: gnebling, jwren, Eric Clayberg, Dan Rubel, Brian Wilkerson, dcarew
by shibyniju » Thu Nov 25, 2010 1:47 am
Hi,
Can anyone please help me with this issue of mine? I was trying out the test case generation tool.
I am attaching the source and test classes. See the exportReport method in the JasperReportEngine.java file. There is a case where an exception is thrown from inside the code which is not at all considered in the test cases generated. Also an exception that has no relevance is being considered in the test case as well. Also see that each of the 16 test cases generated for this method is somewhat the same. I was expecting a test case for each of the conditions tested in the method.
Can someone please check this and advise as to what to be done with this situation.
Thanks in advance.
Regards.
Shiby
- Attachments
-
- JasperReportEngine.java
- Main java file under test
- (32.81 KiB) Downloaded 8 times
-
- JasperReportEngineTest.java
- Test file generated by the CodePro tool
- (13.96 KiB) Downloaded 11 times
-
shibyniju
-
- Posts: 2
- Joined: Mon Nov 08, 2010 3:55 am
by gnebling » Fri Jan 14, 2011 11:42 am
What OS and version of Eclipse, Java and CodePro Analytix are you using?
-
gnebling
- Moderator
-
- Posts: 243
- Joined: Tue Aug 22, 2006 7:49 am
Return to CodePro AnalytiX & PlusPak. EclipsePro Audit & Test
Who is online
Users browsing this forum: No registered users and 1 guest