How can we upload pdf files in qtp?



How can we upload pdf files in qtp?..

Answer / jeettu

Download ADOBE APTT plugin.
access the PDF file with its object model, for this u should have Acrobat installed in ur machine.
Find the sample example below.
Dim gApp, gPDDoc, jsoSet
gApp = CreateObject( "AcroExch.App" )1
Set gPDDoc = CreateObject( "AcroExch.PDDoc" )
If gPDDoc.Open( "c:MyPdfFile.pdf" ) Then
Set jso = gPDDoc.GetJSObject()
jso.console.Show
jso.console.Clear
jso.console.println ( "Hello, Acrobat for QuickTest!" )

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What are the different kinds of test steps?

0 Answers  


Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.

10 Answers   Apex,


How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)

5 Answers  


How do you create new test sets in td?

0 Answers  


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

0 Answers  






Tell me the situations where we will use Data Driven?

2 Answers  


diff between qtp versions from 8.5

0 Answers   Semantic Space,


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

0 Answers   TCS,


Can we do server automation by QTP? If you have any helpful links ,pls post it. Thanks Uma

1 Answers  


How do u write a regular expression for date (dd/mm/yyyy) field ?

4 Answers   Semantic Space,


Explain quicktest professional testing process?

0 Answers  


hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls.......

2 Answers   Vertex,


Categories