sparrowenclave
4 years agoOccasional Contributor
Running test step with context
I have Soap Request test step name as Add and Groovy Script test step name as Run
In Run test step I have following code which is responsible to run Add test step
def stored = testRunner.testCase.testSteps["Add"]
stored.run(testRunner,context)
Can someone explain me what is the use of testRunner and Context in run method?
Note: I have got 2 line of code from internet.
According to the documentation,
- the testRunner is a TestCaseRunner, it the interface to manage the TestCase.
https://www.soapui.org/apidocs/soapui/DefaultPackage/TestCaseRunner.html
- the context, is the running context of the TestCase, where you can find properties or step details.
https://www.soapui.org/apidocs/soapui/DefaultPackage/TestCaseRunContext.html
It's a bit more complex but it's the idea 😉
David.
- the testRunner is a TestCaseRunner, it the interface to manage the TestCase.