Forum Discussion
JKambli
Staff
9 years agoAttaching the scripts as well.
- nmrao9 years agoCommunity Hero
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
- JKambli9 years ago
Staff
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