Forum Discussion

arunbharath's avatar
arunbharath
Contributor
5 years ago
Solved

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
    5 years ago
    arunbharath,

    Try to use

    context.testCase