Micro Focus QTP (UFT) Forums
Standard check point value varies - 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Standard check point value varies (/Thread-Standard-check-point-value-varies)



Standard check point value varies - isha1 - 10-26-2010

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?


RE: Standard check point value varies - guin.anirban - 10-26-2010

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.


RE: Standard check point value varies - KVK - 10-27-2010

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


RE: Standard check point value varies - manishbhalshankar - 12-08-2010

Hi Isha,

You can also parameterise the checkpoint.