Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another checkpoint question
#1
Not Solved
I am using QTP 11.00 in Windows XP.

I am testing a function to edit a customer. Before I can edit the customer, I add the customer. If the customer's telephone num already exists I will get a message like

Proposed telephone number (8005882300) already exists.

otherwise I should get something like

Customer successfully added

I can make checkpoint for the Customer successfully added case. But
if the telephone number exists, this checkpoint will fail although I can still do the test. Call checkpoint A a test to see if the text about the telephone number existing and checkpoint B the customer successfully added.

What I want to do is something like

if checkpoint(A) then
wait 0,0
else
check checkpoint(B)
end if

The wait is just a dummy statement because my actual code goes in the else block.

So the above fill work but if checkpoint A fails, the failure is still being reported and my test is failing. How can I suppress the reporting of checkpoint A failing, but still get the result to use in my if statement?
Hope this makes sense

Google did not help

p.s. for the checkpoint I use a regular expression, no text before and no text after. The regular expression works fine.
Reply


Messages In This Thread
Another checkpoint question - by bistritapcv - 04-05-2013, 01:40 AM
RE: Another checkpoint question - by Ankesh - 04-05-2013, 08:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Question about a specific checkpoint I'm trying to create DanielElsner 2 2,460 06-07-2011, 03:42 AM
Last Post: tdevick
Wink standard checkpoint and text checkpoint kiran10_rm 1 5,363 11-18-2010, 05:16 AM
Last Post: nandu
  fullscreen and bitmap checkpoint error "Cannot create bitmap checkpoint" meuline 2 4,722 12-10-2009, 09:17 PM
Last Post: meuline
  Checkpoint problems: Checkpoint starts before web page is loaded & therefore fails! IdontGetIt 1 3,921 11-20-2009, 11:45 AM
Last Post: basanth27
  Not able to add any other Checkpoint apart from Standard Checkpoint Rachna 7 8,656 04-02-2009, 11:05 AM
Last Post: nandu

Forum Jump:


Users browsing this thread: 1 Guest(s)