Yariv_Amar
16 years agoContributor
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.
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.