Forum Discussion

harishbehl's avatar
New Contributor
12 years ago

testRunner/Context Object in groovy script

Hi Guys,

Need some help in understanding the usage of testRunner and Context variables. Usage of both the variables looks same to me. e.g. below code returns the same value. so, I should use which approach.

def project1 = testRunner.testCase.testSuite.project project1
def project = context.testCase.testSuite.project project

It would be great if you can share your experience in understanding the usage of these variables.


3 Replies