I was writing a listener at the test set level to get the status for each test case and I need to report to my database with that status of each testcase with the failure reasons.
To achieve this, is there a similar method like getLastException() to get the Error message specified in the rc.logError() method.
For ex :
If I am logging it like rc.logError(“ This is an Error ”)
I need to get that string “This is an Error” in a variable.
How can we achieve this?
India – 411041
Extn – 020 -39875922