smtripathi99
7 years agoOccasional Contributor
How to re run failed SoapUI 5.3 tests using maven plugin with Java
We have created a maven Java application to run SoapUI tests using maven plugin 5.3. This project we run in Jenkins for Regression. To re-run the failed tests of SoapUI project after fixing we have to run the Jenkins job again for that project. Jenkins job gets the fixed (updated proejct xml after fix from SVN repository) tests and rerun all the passed and failed tests again.
Is there a way to re-run only the failed test in Jenkins?
Jenkins job:
- Get the updated SoapUI project xml from SVN
- Run the tests using a custom jar (plugin)
Plugin:
- SoapUI.setSoapUICore(new StandaloneSoapUICore(true));
- Create a WSDL project
- WsdlTestCaseRunner wsRunner = project.getTestSuiteByName(testSuiteName).getTestCaseByName(testCaseName).run(new PropertiesMap(), false);