Micro Focus QTP (UFT) Forums

Full Version: Capture Value through Text Checkpoint and compare with datatable value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Smile


Looking for kind suggestions.
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”)