Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to test PDF format report using QTP
#1
Not Solved
Hi,

The project which i am currently working contains PDF reports.
Can anyone of you give a solution to test this using QTP

Thanks,
Shilu
Reply
#2
Not Solved
Here's a link to an API I found to be VERY useful! Install the API and review its docs and your set.

I wanted to verify a proper PDF was being created, so once the API was installed, here's what I did with their code:

' This is to verify that the PDF is the Master Report document. It should have "Master Report" for its first 13 characters.
' *** Initialize the API ***
Set oPDF=createobject("LearnQuickTest.ManipulatePDF")
PDFText=oPDF.GetPDFText ("C:\NEW.pdf")

' *** Verify the first 13 characters ***
CheckedPDFText=Left(PDFText,13)

' *** Show me the first 13 characters ***
Print "PDFText=" & CheckedPDFText ' Just a visual check for me

' *** Document the test results ***
Code:
If (CheckedPDFText="Master Report") then
    Print "PDF verification SUCCEEDED!"
else
    Print "PDF verification FAILED!"
End if
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to change 24 hrs time format to 12 hrs time format Varsha Gupta 1 2,887 04-21-2018, 11:06 AM
Last Post: Ankur
  Need help on rdlc report automation using uft souvikghosh_diatm 0 1,365 05-25-2017, 09:51 PM
Last Post: souvikghosh_diatm
  How to validate a format of an alphanumeric string PrateepKaraval 2 6,041 11-08-2014, 10:26 AM
Last Post: vinod123
Rolleyes QTP 11 not identify PDF Browser laxminaranaya 1 2,423 02-25-2014, 01:34 PM
Last Post: guin.anirban
  Jasper Report Automation TAUSIF 0 5,027 10-03-2013, 03:30 PM
Last Post: TAUSIF

Forum Jump:


Users browsing this thread: 1 Guest(s)