Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Standard check point value varies
#1
Not Solved
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
Not Solved
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
Not Solved
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
Not Solved
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 2,856 07-28-2010, 07:35 PM
Last Post: dima_mazyar
  Regular Expression check point Mayoo 0 2,797 11-26-2009, 11:22 PM
Last Post: Mayoo

Forum Jump:


Users browsing this thread: 1 Guest(s)