Forum Discussion
groovyguy
7 years agoCommunity Hero
It is theoretically possible, but I have not figured out specifically how to make it work yet. You can use the following code:
context.testCase.testSuite.project.runAfterRunScript();
Which will not work, but that is due to the fact that it is expecting two arguments/parameters. I cannot figure out what to use for it, which are defined as:
- com.eviware.soapui.model.testsuite.ProjectRunContext
- com.eviware.soapui.model.testsuite.ProjectRunner
- groovyguy7 years agoCommunity Hero
There might be a different way. You could retrieve the contents of the Project tear down script, and then evaluate/run that as a script.
// Get the contents of the Tear Down Script at the Project level def script = context.testCase.testSuite.project.getAfterRunScript(); // Execute the contents as a script new GroovyShell().evaluate(script)
Related Content
- 7 years ago
Recent Discussions
- 4 days ago
- 11 days ago