Micro Focus QTP (UFT) Forums
Check point.. - 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: Check point.. (/Thread-Check-point)



Check point.. - sherinvg - 04-01-2008

Hi,
In my application i am using a checkpoint to check an error message. and i am returning the value of the checkpoint whether it is true or false.
If it is true i have to repeat the same step else EXIT.
Now my problem is each and every time the error message is different.(even though the message is different value returned by the checkpoint should be TRUE).
Possible errormessages are: Username Must be Minimum 4 Characters Long ,Username already exist,Username name1 already exist....
I tried with regular expression.
The script is given below.
Code:
val=Browser("abcd").Page("xyz").WebElement("Username.*").Check (CheckPoint("Username.*"))

Thanks and Regards.
Sherin.


RE: Check point.. - niranjan - 04-05-2008

Do you know how many different types of error messages are displayed in your application?
If so, you can use a Select Case statement for a workaround.


RE: Check point.. - sherinvg - 04-07-2008

Hi,

Number of error message depend upon the number of values that we are giving in DataTable,since i am parameterizing.

Thanks and Regards
Sherin


RE: Check point.. - niranjan - 04-07-2008

HI Sherin,

When is that checkpoint false? What message does it return then?

Thanks
-Niranjan


RE: Check point.. - sherinvg - 04-15-2008

Hi,
It is giving a message like 'Object not found in Object Repository...' .Eventhough i have given regular expression and made the changes in OR it is giving this error message.
Thanks/Regards
Sherin