In my opinion, for automated tests its a basic thing to have possibility to run the test suite x times. For instance I need to execute test cases for every single user from the list of logins/passwords reading from csv file and I need to update some test suite properties before the next text suite execution.
The recent solution I found is script below Im gonna put as the last test step (groovy script) in the last test case of my test suite:
if(some condition) {
WsdlProject project = new WsdlProject("my_project_name.xml");
TestSuite ts = project.getTestSuiteByName("My_test_suite_name");
TestRunner runner = ts.run(new PropertiesMap(), false);
}
Any suggestion ?