I'm using SoapUI Pro. The SoapUI site says I should be able to set context variables and get those values at any time during the test's execution. In the help it says:
A common usage scenario is for looping or keeping track of progress by saving the corresponding counters and collections to the context and using them to control flow as required.
I can't get this to work if I'm using the out-of-the-box 'Run TestCase' test step. The called test doesn't seem to get passed the context information.
Here's a very basic example. In my originating test I put in some Groovy script that says this:
context.PassedInTest = "Is this passed in?" log.info(context.PassedInTest)
Then in my called test, I have another Groovy script that says this:
log.info(context.PassedInTest)
Upon execution of the test, the log displays: "Is this passed in?" for the originating test, but then the log displays null for the called test:
Mon Oct 27 12:59:45 EDT 2014:INFO:Is this passed in?
Mon Oct 27 12:59:56 EDT 2014:INFO:null
Is there a way to pass in the context if using the out-of-the-box 'Run TestCase' test step in SoapUI (i.e. not using Groovy script)? What am I doing wrong?
context. - SiKing