Forum Discussion
1 Reply
Sort By
- SmartBear_SuppoSmartBear Alumni (Retired)Hi Rhonda,
I think you would need to access the TestStepResult object associated with the failed TestStep and query either its error property (which returns a Throwable) or its messages property (a String array). The testRunner.results property is a Vector of all TestStepResult objects - so if you want to get the result for the last executed TestStep you would use for example
def result = testRunner.results[testRunner.results.size()-1]
log.info result.error
log.info result.messages
Does that help?
regards,
/Ole
SmartBear Software