Forum Discussion

harishbehl's avatar
harishbehl
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
log.info project1
def project = context.testCase.testSuite.project
log.info project

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

Thanks,
Harish