Forum Discussion
I got this answer from SmartBear regarding SoapUIProTestCaseRunner:
Hi Vernon,
The Javadoc is out of date and was last updated for SoapUI Pro 5.1.2. It has not been updated for Ready API, and in Ready API there was a number of package name changes. SoapUIProTestCaseRunner is in the package com.smartbear.ready.cmd.runner.pro. As for generating a report you can do that by using the SoapUIProTestCaseRunner class and the associated methods such as setJunitReport(boolean), setReportFormat(String[] args), setReportName(String arg), etc. You can not change testcase, testuite, or test step properties with the SoapUIProTestCaseRunner class, you would have to change the properties by getting to the testsuite or testcase level by creating a new project object and getting down to the testcase or testsuite you want to modify properties for.
WsdlProjectPro project = new WsdlProjectPro("C:\\SoapUI\\SOAPUI Projects\\Basic-auth-test-soapui-project.xml");
List<WsdlTestSuite> testSuites = project.getTestSuiteList();
for (WsdlTestCase testCase : testCases) {
System.out.println("Running SoapUI test [" +
testCase.getName() + "]");
}
After making modifications to the properties you can use the project.save() method to save the project file to run with SoapUIProTestCaseRunner. If you do not want to run with SoapUIProTestCaseRunner and want to be able to generate reports then I would have to escalate this to development as I do not see any methods you can directly call to do that other than the ones in SoapUIProTestCaseRunner.
Regards,
Really SmartBear: you were saying in 2010 that you would improve the documentation!
Related Content
- 11 years ago
Recent Discussions
- 7 hours ago
- 17 days ago