Forum Discussion

neerajkumar's avatar
neerajkumar
Occasional Visitor
8 years ago

Index.html file shows nothing when i generate report in HTML using SoapUIProTestCaseRunner

Hi Folk,

 

I am using Soap UI Pro 5.1.2. and I would like to generate HTML report using SoapUIProTestCaseRunner.

Following is my script using in JUnit

 

@Test
public void TestRun2() throws XmlException, IOException, SoapUIException
{

   JUnitReportCollector collector = new JUnitReportCollector();
   			
	String path = "C:\\Users\\XXX\\workspace\\Reports\\today";	   
	SoapUIProTestCaseRunner runner = new SoapUIProTestCaseRunner();
	runner.setProjectFile("C:\\Users\\XXX\\workspace\\JIRA_1.xml");
	runner.setPrintReport(true);  
  try {
	runner.setOutputFolder(path);
	runner.setOutputFolder(path);
	runner.setJUnitReport(true);
	runner.setSaveAfterRun(false);
	runner.setReportName(runner.getTestSuite());
	runner.setReportFormats(new String[]{"HTML"});
	runner.run();		
	runner.exportJUnitReports(collector, path, new WsdlProjectPro("C:\\Users\\XXX\\workspace\\JIRA_1.xml"));
				
    } catch (Exception e) {
	// TODO Auto-generated catch block
       e.printStackTrace();
    }
		
}

.

When i see the report at given path, There are few HTML generated index.html, when i open index.html all values are 0 only.

However, When i open html file present under JIRA_1 folder generated for individual testSuite level then correct values are present.

 

Please let me know what changes do i have to make to get details in index.html  

No RepliesBe the first to reply