ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins.Read more for important details.
Absent Member.
Absent Member.
6721 views

HP QTP: How to perform validation on pdf opened in IE

Greetings, I would like to know if there is a way to perform validation for pdf that is opened by IE. I have tried checkpoints, QTP recognize it as activeX  WinObject but unable to perform validation. Please advice.

.-asd-.
Tags (3)
0 Likes
3 Replies
Absent Member.
Absent Member.

Hello,

 

QTP 9.2 - 11 does not have special support for PDF, but here are some workarounds with example code:

(Let me know if you cannot view the documents)

 

Sarting with UFT 11.5*, you can use the File Content Checkpoint to compare the textual content of a file that is generated during a run session with the textual content of a source file.

 

Regards,

Ana

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”
Absent Member.. Absent Member..
Absent Member..

By using 11.52 you will be able to check the text content of PDF document, but you need get the PDF ready for test first. If it is opened by IE, you have to first save the pdf on your local drive. And then use the saving path in the pdf checkpoint for the compared document location. 

 

If so, another question is how to save that if the pdf will only be recognized as on ActiveX object. My solution is mouse movement command, since pdf format itself is not a defined object in QTP by now, you have to use the common action like mouse and keyboard which don't rely on any object type. 

 

<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

If my post helps to resolve your issue or query, please accept this as solution and give KUDOS on this page.

 

 

Absent Member.
Absent Member.

Ana,

Unable to view the 3 document links that you sent across. Can you mail them to prasadtsn@gmail.com please?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.