Micro Focus QTP (UFT) Forums

Full Version: Text CheckPoint Or Output CheckPoint
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I want to insert Text / Output CheckPoint on the PDF page and want to get the value from Text Area. After getting that value want to Store it in Variable for further comparision.

The Code Just for Ex:

Code:
Dim CheckVal

CheckVal = Browser("XXX").ActiveX("Adobe Acrobat 7.0 Browser").WinObject("PageView").Check CheckPoint("PageView_1")

msgbox CheckVal

--> the above code is not working for me.

--> Can anyone suggest any code or idea about that.

--> Clearly speaking, want to get value from Text Checkpoint and want to Store it in Variable and then in message box want to display the value.

Thanks
Smile
Way1:If you r taking check point on a required field
try using GetROproperty("")
before using this below code check in which property text is stored by right click on check point.it may be value or text or some other property.put accordingly in double quotes of GetROproperty.
Code:
a=Browser("XXX").ActiveX("Adobe Acrobat 7.0 Browser").WinObject("PageView").GetROproperty("text")
msgbox a

way 2:if u r taking output check point
the value will be stored in global sheet.So take note of colum name and display like this

Code:
Browser("XXX").ActiveX("Adobe Acrobat 7.0 Browser").WinObject("PageView").Output CheckPoint("PageView_1")
CheckVal=DataTable("columnname",dtGlobalSheet)
msgbox CheckVal
Thanks Kavitha

The code for Output checkpoint is working good for me. Right now it store the values in Datatable only during RunTime...

So now i would like to write the code for how to get and store the RunTime value in variable.

Actually i want test the difference between two PDF's (as having little difference) And want to check that both are Same or have any differences.

So my planning for that is:
(1) First i would like to store PDF1 value in one variable (ex A)
(2) Then will open Second PDF and will get the value and store it in varaiable (ex B)

then want to test A = B Or A <> B

Please suggest if you have any idea regarding this plan and if you already have code for that (getting RunTime data into variable, if possible?) then please send....

Thanks
Shrini