Capture Value through Text Checkpoint and compare with datatable value - 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: Capture Value through Text Checkpoint and compare with datatable value (/Thread-Capture-Value-through-Text-Checkpoint-and-compare-with-datatable-value) |
Capture Value through Text Checkpoint and compare with datatable value - hamzaz - 04-13-2012 Hello, I am new user of QTP 11, I am trying to complete a test case in which I am trying to capture a text from the "Text CheckPoint" and now I want to compare that checkpoint captured text value to a value in Datatable. Please let me know how can I do it? Looking for positive responses RE: Capture Value through Text Checkpoint and compare with datatable value - hamzaz - 04-16-2012 Looking for kind suggestions. RE: Capture Value through Text Checkpoint and compare with datatable value - mallika.g - 03-06-2014 Hi, With checkpoint you can capture a existing text and make sure every time when you run same text exists or not. To Insert a check point 1. Click on Record 2. Insert-->CheckPoint-->Text checkpoint 3. Click on text which you want to capture. This text will be stored in Object repoitory and next time when you run the script it will check that text exist or not. But This will not help you to get run time text. If you want to use captured text for comparison you need to use GetROPRoperty. ex: Code: CompareText = Browser(”browser_name”).PAGE(pagename").GetROProperty(”hwnd”) |