07-13-2009, 05:31 PM
Hi All,
I am using "Reporter.Reportevent" to fail a test and send a message to the test results. The example of the script I am using is, given below.
I am running this QTP test from a VB application and when the test fails, the 'LastRunResults' objects, returns the 'Status' as 'Failed', but I could not retrieve the message details ("Update Failed") I gave in the reportevent method. I tried to retrieve it using 'LastRunResults.LastError' method, but this method returns an empty string.
If anybody knows, how to retrieve the above message ("Update Failed"), please reply.
Thanks,
Senthil
I am using "Reporter.Reportevent" to fail a test and send a message to the test results. The example of the script I am using is, given below.
Code:
Reporter.ReportEvent micFail,"testFail","Update Failed"
I am running this QTP test from a VB application and when the test fails, the 'LastRunResults' objects, returns the 'Status' as 'Failed', but I could not retrieve the message details ("Update Failed") I gave in the reportevent method. I tried to retrieve it using 'LastRunResults.LastError' method, but this method returns an empty string.
If anybody knows, how to retrieve the above message ("Update Failed"), please reply.
Thanks,
Senthil