Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check point..
#1
Not Solved
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.
Reply
#2
Not Solved
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.
Reply
#3
Not Solved
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
Reply
#4
Not Solved
HI Sherin,

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

Thanks
-Niranjan
Reply
#5
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP standard check point Error? Ramadas 0 2,291 10-31-2013, 01:23 PM
Last Post: Ramadas
  Synchronization point vasanthibv@gmail.com 2 3,510 08-08-2012, 05:54 PM
Last Post: pradeep singh
  Synchronization point vasanthibv@gmail.com 2 3,148 08-07-2012, 03:26 PM
Last Post: Tarik Sheth
  synchronization point balatester 4 17,907 01-18-2012, 02:57 PM
Last Post: zeeshanyshaikh
  Not able to see the Check point properties window Uma 1 2,388 10-27-2011, 08:48 PM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 2 Guest(s)