Forum Discussion
https://www.soapui.org/test-automation/junit/junit-integration.html
Hi Rao,
Thanks for your quick reply . The link which you have provided I have gone through this. I have written the similar piece of code to run the xml .
SoapUITestCaseRunner runner = new SoapUITestCaseRunner();
// Set xml path
runner.setProjectFile((String) detail.get("testcasepath"));
// Set output folder
runner.setOutputFolder(filePath + timeStamp);
// Executing the xml and generating the report
runner.setJUnitReport(true);
runner.setPrintReport(true);
try {
LOGGER.error("Run Started");
runner.run();
} catch (Exception e1) {
LOGGER.error("Execution failed due to : ");
e1.printStackTrace();
}
But the issue here is the test cases is running fine when running from a standalone program but while invoking the same program from a webapplication the JBOSS server is getting stuck at that point. Server is not responding no more.We need to restart the server again to respond as usual.
- nmrao8 years agoChampion Level 3test case runner can be run, of course, as standalone program either from command line etc.
What is the relationship with jboss (hope your service might be running there)?- Sonalee8 years agoOccasional Contributor
Hi Rao,
Thanks again for your quick reply . I am really struggling to fix this issue.
I have a web application UI . My requirement is from my application I need to select the SOAPUI xml path which is present in my server static path and then when I will click one button (eg Run) from my UI .. It should execute that SOAPUI xml and generate the result report in the server path .
So when I am running this from my UI the server is getting stuck .
A quick response is highly appreciated.
- nmrao8 years agoChampion Level 3Are you running any web testing using SoapUI?
Related Content
- 7 years ago
- 8 years ago
Recent Discussions
- 16 hours ago