How to verify that links within a PDF document are working using QTP
Question ID: 104564
0
0

Scenario
I have a situation where, after clicking an image, a PDF file is displayed within a browser window.
I have been tasked to verify the correct page is being displayed and that the embedded links are working.

Status
I am able to verify the document by searching for strings of text using + + F and executing a checkpoint on the results inside of the search panel.

Problem
My problem is being able to verify that the embedded links are valid and active.

Results
The links are highlighted in the normal manner so Adobe is aware that they are links. If I record a click on the link I get Browser("Browser").WinObject("AVPageView").Click 240,198 When I replay the recorded statements it hangs on the following checkpoint because the link was never executed.

I installed AcroQTP to see if there was any functionality that would help me. The only significant change is that it no longer records Browser("Browser").WinObject("AVPageView").Click 240,198

Am I attempting the impossible? Has anyone else met this requirement?

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on August 15, 2012 7:00 pm
71 views
Answers (3)
2
Private answer

PDF files are pretty tricky with QTP. Your best bet would be to use the PDF API. Adobe Labs has a toolkit that you might be able use with the CreateObject method:

http://labs.adobe.com/technologies/aptt/

The API is a little complex, but if you are comfortable with this, it might be an option.

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on August 15, 2012 7:43 pm
0
Private answer

UFT 11.5 does provide FLEX support which will give you text verification in PDF files.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on April 30, 2013 8:03 pm
0
Private answer

Can you please tell me if PDF test toolkit works on UFT12.X ? (PS :for me it's not working on UFT 12.5)

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on December 21, 2016 2:36 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top