Forum Discussion

Yariv_Amar's avatar
Yariv_Amar
Contributor
16 years ago

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

  • omatzura's avatar
    omatzura
    Super Contributor
    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