Forum Discussion
Thank you for the pdf document with the scripts.
In the groovy script step, there are context, and testRunner variables being initialized.
In order to refer a test case object, any of the below two can be used. Is there is any specific difference?
context.testCase
testRunner.testCase
On a groovy script test step (above example), its pretty much same but context essentially has current run data and it can leverage the data but testRunner has methods which can control flow (fail, cancel etc).
context object is available at all levels since it holds information but testRunner is available only when you want to trigger a run.
Thanks,
Jeshtha
- nmrao8 years agoChampion Level 3Thank you JKambli.
How to avoid script assertion being run twice when a step is run? why does it do in the first place?.- JKambli8 years agoStaff
I think this is a bug, we had it logged on SOAPUI jira number was SOAP-2783, for some reason dev could not reproduce it. I tried it now and its reproducible.
Thanks
Related Content
- 8 months ago
- 9 years ago
- 8 years ago
Recent Discussions
- 18 days ago