Micro Focus QTP (UFT) Forums
QTP Automation: How to retrieve Reporter.Reportevent Message - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: QTP Automation: How to retrieve Reporter.Reportevent Message (/Thread-QTP-Automation-How-to-retrieve-Reporter-Reportevent-Message)



QTP Automation: How to retrieve Reporter.Reportevent Message - scsenthil - 07-13-2009

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.

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


RE: QTP Automation: How to retrieve Reporter.Reportevent Message - spannerj - 11-14-2013

A very old post but I am having the same problem. Can anyone help solve this?