While writing groovy in SOAPUI some times we use context and some times we use TestRunner,
Need help to understand the difference.
While writing groovy in SOAPUI some times we use context and some times we use TestRunner,
Need help to understand the difference.
From the documentation:
testRunner - a TestCaseRunner object, which is the entry-point to the soapUI API for accessing project items, results, etc. The testRunner is the object that is actually executing the TestCase by cycling through the TestSteps in the TestCase and executing them. It exposes methods related to test execution and the underlying object model (via the testCase property). Common usage scenarios are:
context - a TestCaseRunContext object holding context-related properties. The main usage for this is to store values that can be used in subsequent TestSteps or related scripts. For example
context.myProperty = "Hello"
will create a property named "myProperty" in the context and assign it the string value "Hello". In a subsequent script, you can access it with
log.info( context.myProperty )