How to apply different Checkpoints on a Website? - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to apply different Checkpoints on a Website? (/Thread-How-to-apply-different-Checkpoints-on-a-Website) |
How to apply different Checkpoints on a Website? - geet - 01-05-2010 I was trying to apply text checkpoint while recording and standard checkpoint after recording on a website, but my checkpoints did not work properly, My code snippet is given below: Code: [color=#800000]"SystemUtil.Run ("C:\Program Files\Internet Explorer\iexplore.exe") Please help me out by correcting me. Thanks Geeta RE: How to apply different Checkpoints on a Website? - Saket - 01-05-2010 Is there any error that you are receiving? RE: How to apply different Checkpoints on a Website? - geet - 01-05-2010 Thanks for reply Saket... Yes, my checkpoints get failed with the following message: Text Chekpoint Result: Text Checkpoint "Psychology press search subject General_Psychology2" : Failed Text Checkpoint cpatured " between Mental health and showing 1-, expected "General Psychology" Standard Checkpoint Result: Standard Checkpoint "Add to Cart ": Failed Can anyone please help me out by guiding for putting the screen shots here? Regards Geeta RE: How to apply different Checkpoints on a Website? - upadhyay40 - 01-06-2010 Hi geet, For a checkpoint you need to use "(" ")" bracket ,like in your case Code: Browser("Psychology Press: Publisher").Page("Psychology Press Search").Check (CheckPoint("Psychology Press Search Subject General Psychology_2")) or Code: Browser("Psychology Press: Publisher").Page("Page").Link("Add to cart").Check (CheckPoint("Add to cart")) Hope this might help to solve your problem Thanks Mahesh RE: How to apply different Checkpoints on a Website? - geet - 01-07-2010 Thanks Mahesh, But this time my test got passed without parenthesis, actually i had checked multiple properties for the checkpoint and on selecting a single property, the checkpoint passed successfully. Thanks Geeta |