Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
I am sorry I should have explained it better but I think you did not update the script,
Your script is,
def vntProject = testRunner.testCase.testSuite.project
Update this to,
def vntProject = testRunner.testSuite.project;
The way API is designed, the script changes on each level like for TestCase, TestSuite or project. So as you say the context changes on each level.
Here are some groovy script tips and tricks,
http://www.soapui.org/Scripting-Properties/tips-a-tricks.html
http://www.soapui.org/apidocs/overview-summary.html
Thanks,
Jeshtha
I am sorry I should have explained it better but I think you did not update the script,
Your script is,
def vntProject = testRunner.testCase.testSuite.project
Update this to,
def vntProject = testRunner.testSuite.project;
The way API is designed, the script changes on each level like for TestCase, TestSuite or project. So as you say the context changes on each level.
Here are some groovy script tips and tricks,
http://www.soapui.org/Scripting-Properties/tips-a-tricks.html
http://www.soapui.org/apidocs/overview-summary.html
Thanks,
Jeshtha