Forum Discussion

arunbharath's avatar
arunbharath
Contributor
6 years ago

Caused by: groovy.lang.MissingPropertyException: No such property: testCase for class: Script2

I'm using below script to get the error message from test-step in listener level. I place this script under TestRunListener.afterRun   def logPrefix = testCase.getName() + ': ' log.info (logPrefix ...
  • nmrao's avatar
    6 years ago
    arunbharath,

    Try to use

    context.testCase