Forum Discussion
SmartBear_Suppo
14 years agoSmartBear Alumni (Retired)
Hello,
The context object is scoped to the current execution. When you run the second TestSuite from Groovy you're probably creating a new TestRunner with a new context, so the variable is not passed into it. Try using the following Groovy code to run the second TestSuite (change 'TestSuite 2' to the name of your actual TestCase):
Regards,
Dain
eviware.com
The context object is scoped to the current execution. When you run the second TestSuite from Groovy you're probably creating a new TestRunner with a new context, so the variable is not passed into it. Try using the following Groovy code to run the second TestSuite (change 'TestSuite 2' to the name of your actual TestCase):
import com.eviware.soapui.support.types.StringToObjectMap
def contextMap = new StringToObjectMap( context )
testRunner.testCase.testSuite.project.testSuites['TestSuite 2'].run( contextMap, false )
Regards,
Dain
eviware.com
Related Content
Recent Discussions
- 3 hours agogroovyguy