GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 630 of 684    Print  
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



  
Total Answers and Comments: 3 Last Update: April 28, 2008     Asked by: QTPnewbie 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 27, 2008 01:56:01   #1  
NawabShaikh Member Since: January 2007   Contribution: 238    

RE: How to checkpoint a PDF document/output in QTP
You need to automate the Find Feature of PDF Docs for validating the Strings.

Shell Programming for Key Events is required.

Regards
Nawab

 
Is this answer useful? Yes | No
April 27, 2008 20:44:25   #2  
QTPnewbie Member Since: April 2008   Contribution: 3    

RE: How to checkpoint a PDF document/output in QTP
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

 
Is this answer useful? Yes | No
April 28, 2008 00:37:39   #3  
NawabShaikh Member Since: January 2007   Contribution: 238    

RE: How to checkpoint a PDF document/output in QTP
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

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape