Forum Discussion
- groovyguyCommunity 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
- groovyguyCommunity 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
- 2 years ago
- 5 years ago
- 2 years ago
- 6 years ago
Recent Discussions
- 11 hours ago