IvanB
7 years agoOccasional Contributor
Solved
how can I change testRunner.testCase.testSteps[0].targetTestCase.name and id?
I have a test case with a test step "Run TestCase" type, which point to a TestCase01 and I want to change that target TestCase01 to TestCase02 during test execution depending on some parameter.
How can I change testRunner.testCase.testSteps[0].targetTestCase.name and id?
It is not mentioned if you have any inputs to "Run Test Case". So, at the moment it is not handled.
Anyways, please see if the below groovy script helps.
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/ChangeRunTestCaseDynamically.groovy