cancel
Showing results for 
Search instead for 
Did you mean: 

using ant task JunitReport, does not generate the same report as the UI

Highlighted
Contributor

using ant task JunitReport, does not generate the same report as the UI

Hi
I have java code that runs soap UI.

@test
public void testWarmUp() throws Exception
{
  TestSuite testSuite = project.getTestSuiteByName("Warm-up");
  TestCase testCase = testSuite.getTestCaseByName("TestCase 1");
  testCase.addTestRunListener(unitReportCollector);  // create empty properties and run synchronously
  TestRunner runner = testCase.run( new PropertiesMap(), false );

  assertEquals( Status.FINISHED, runner.getStatus() );
}


latter in our automation machine, we use ANT to run the Junit and generate the report.




               



















-------------
When I look in the generated html report, i see that it uses the default XSLT of Junit, and not the SoapUI one.
for example i have "Packages" and "Classes" instead of "Projects" and "TestSuites".
also the Package name is NONE.

is there a way to fix that?
should I use the com.eviware.soapui.report.JUnitReport? How?

Thanks
Yariv.

also, if it's possilbe, how do i generate a WSDL coverage report.
1 REPLY 1
Highlighted
Super Contributor

Re: using ant task JunitReport, does not generate the same report as the UI

Hi,

you would have to extract the modified xsl's from the soapUI jars and use them for your transformations instead. Regarding the coverage reports, there is a corresponding command-line option when using the pro version of the testcaserunner.

regards!

/Ole
eviware.com
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors