Forum Discussion
SmartBear_Suppo
12 years agoSmartBear Alumni (Retired)
You should be able to run a test case from a different project with the following Groovy script:
Thanks,
Michael Giller
SmartBear Software
//get test case from other project
project = testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName(project_name)
testSuite = project.getTestSuiteByName(suite_name);
testCase = testSuite.getTestCaseByName(testcase_name);
//set properties
testRunner.testCase.setPropertyValue(property_name, property_value);
testRunner.testCase.setPropertyValue(another_property_name, another_property_value);
// run test case
runner = testCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false);
Thanks,
Michael Giller
SmartBear Software
Related Content
- 4 years ago
- 11 years ago
Recent Discussions
- 15 years ago