Micro Focus QTP (UFT) Forums
Checking if an error message is generated on the page due to wrong data entry - 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: Checking if an error message is generated on the page due to wrong data entry (/Thread-Checking-if-an-error-message-is-generated-on-the-page-due-to-wrong-data-entry)



Checking if an error message is generated on the page due to wrong data entry - pkjakhar - 06-19-2008

Hi Forum,

I am using data table to parameterize my test. There are some invalid data into it. When the iteration use the invalid data an error is printed on the same page.

How can check that if the error text is printed, then skip rest of the steps and start a new iteration.

My script results show failed status.

Regards.


RE: Checking if an error message is generated on the page due to wrong data entry - Ankur - 06-19-2008

to start a new iteration you can use exit iteration and
if you don't wish to see fail status use Reporter.Filter = DisableAll