Micro Focus QTP (UFT) Forums
Throw Error - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Throw Error (/Thread-Throw-Error)



Throw Error - chuqa - 02-23-2009

Hi, hope you understand my poor english Wink
I search for a possibility to throw an error. I have a value in my application under test. This value can change for each testrun. So i have to compute this value during the run. Now I want to compare this calculated value with the value in my application under test. If the values are different it would be nice to throw an error, which are visible in the result. Can you help me?

thanks chuqa


RE: Throw Error - Ankur - 02-24-2009

hmmmm... it would be nice if you can go through the QTP tutorial first.

For this one use, Reporter.ReportEvent


RE: Throw Error - tarunlalwani - 02-25-2009

Use Err.Raise if you actually want to throw the error or else use Reporter.ReportEvent if you want to report it


RE: Throw Error - chuqa - 02-26-2009

thanks a lot! Smile