How to checkpoint a PDF document/output in QTP

Hi Guru's,
I am currently testing an application which generates PDF & XLS reports and I would like to validate some text and data values within the PDF output to ensure an "expected result" is produced by the reporting system.

I am able to check cell values of the XLS spreadsheets, however it seems to only recognise the PDF document as a single object. Does any one have any leads/ideas on how I can identify/validate some specific text strings within this PDF output type?

Thank you in advance

Questions by QTPnewbie   answers by QTPnewbie

Showing Answers 1 - 12 of 12 Answers

Hi Nawab,
Thanks for your response, however I apologise but i'm not savvy enough to get the full benefit of your advice! Could you possibly break this down a little more for me? How do I integrate Shell with the QTP VB?

Help!

Regards,
QTP Newbie

  Was this answer useful?  Yes

CreateObject method is used for integrating Shell operations.


Set SH_OBJ = CreateObject("wscript.shell")

SH_OBJ.SendKey "ctrl" + "F"  '''emulate Find Feature i.e hitting Control & F keys.

SH_OBJ.SendKey "Down"


Set SH_OBJ = Nothing

regards,
Nawab

  Was this answer useful?  Yes

gsh302

  • Jan 11th, 2010
 

Save the pdf file in the local system use File System object and adobe acrobat object model to retrieve the data from PDF files.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions