Chitra
9 years agoNew Contributor
Error while generating script log using tear down script
Hi, I am trying to generate script log using tear down script and I am getting the error "groovy.lang.missingpropertyexception no such property testrunner for class" while executing the below code :
testRunner.testCase.testSuite.project.testSuites["Utilities"].testCases["Reporting"].testSteps["Groovy1"].run(testRunner, context);
I have also tried defining this but it didnt work
def r = testRunner.testCase.testSuite.project.testSuites["Utilities"].testCases["Reporting"].testSteps["Groovy1"].run(testRunner, context);
Please help