Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Standard check point value varies
#1
Hi,
In my application, i'm trying to do Standard checkpoint of the data with Constant but the value of the string varies slightly during every run.
For example, when I record, the standard check point value is
Code:
"ONFIEBER COMMUNICATIONS HQ" but during next build the value would change to "ONFIBER COMMUNICATIONS, INC"
NOTE: the , in the second one

Similary, I have Ticket Number 7238601 first time, but next time it would be some other random number. So i need to check the value of this ticket number also.

here is what QTP captures:
Code:
Browser("Browser_2").Page("XO | Business Center_2").WebElement("ONFIBER COMMUNICATIONS,").Check CheckPoint("ONFIBER COMMUNICATIONS, INC.")

Any advice on what checkpoint I can use to address this?
Reply
#2
You can use regular expression in your captured standard checkpoint or you can use regular expression in your stored webelement object. And i think in this case 2nd option will be better.
Reply
#3
Hi Isha,

Try the below code,

Code:
Browser("Browser_2").Page("XO | Business Center_2").WebElement("innertext:=ONFIBER COMMUNICATIONS.*").Check CheckPoint("ONFIBER COMMUNICATIONS, INC.")

-Vinod
Reply
#4
Hi Isha,

You can also parameterise the checkpoint.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Regular expression in xml check point dima_mazyar 0 3,108 07-28-2010, 07:35 PM
Last Post: dima_mazyar
  Regular Expression check point Mayoo 0 3,069 11-26-2009, 11:22 PM
Last Post: Mayoo

Forum Jump:


Users browsing this thread: 3 Guest(s)