In our application (Web based application)we will get a pdf
file and we have check a particular text in that pdf. Can
any one tell how to check text in a pdf file.

In the same pdf file it generating some links and I have to
click that links. QTP unable recognizing that links, even
id did record and playback qtp does not generating any
script.

Can any one help me….?

Answers were Sorted based on User's Feedback



In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / ravi

In virtual object we cannt get the text what we want to
check. Plz tell how to check the text.

Is This Answer Correct ?    2 Yes 0 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / nanda

Hi...we should have add in for it. but with add in also we
do it..by copieng pdf test to a text file.

for this...
string1 = "nanda"
len_data = len(string1)
i=0
file_path = "C:\Documents and Settings\Madhu
Sudhan\Desktop\pdftotext.text"
Set clipboard = createobject("mercury.clipboard")

Set fso = createobject("scripting.filesystemobject")
Set notepad = fso.createtextfile(file_path,8)

'*********Start recording click on Edit menu--select all,
'click on Edit menu--copy, click on pdf file to get deselect
'the text...************
Window("Adobe Reader").Activate
Window("Adobe Reader").WinMenu("Menu").Select "Edit;<Item 8>"
Window("Adobe Reader").WinMenu("Menu").Select "Edit;<Item 4>"
Window("Adobe Reader").Activate
get_text = clipboard.gettext
notepad.write get_text
notepad.close

set notepad = fso.opentextfile(file_path,1)

do while notepad.AtEndofStream <> true

get_data = notepad.readline

search_data = instr(get_data, "nanda")
capture_data = mid(get_data,search_data,len_data))
if capture_data = string1 then

i = i+1
else
end if

loop

msgbox "the text is found in "& i" rows"

for any queries...
nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 1 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / pankaj

better we create instances for
learnquicktest.manipulatepdf
this can help to do operation on pdf files

Is This Answer Correct ?    0 Yes 0 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / stephen

Do you have a full copy of Adobe Acrobat installed?

Is This Answer Correct ?    0 Yes 2 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / sunny

haha......... it's too funny answers.........

Sorry 4 that
actually u should buy the adobe ad-in component........

correct me if I am wrong.

Is This Answer Correct ?    0 Yes 3 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / swathi

I think u know it before hand.
Qtp cant recognize some objects . So we have to make that
object to be recognized by the qtp using virtual object
wizard.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More QTP Interview Questions

In QTP what is the difference between Step-in, Step-out, Step-over ?

3 Answers   CTS,


What is Step generator in qtp? wt is the use? can u any body explain me? plz

1 Answers  


what could go wrong with test automation?

0 Answers  


If QTP not recognizing using repository while executing, how can we go forward

3 Answers  


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

0 Answers  






I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

0 Answers   ADITI,


Is QTP Object Oriented language or Object Based language? What are the OOPS concepts it will support? Why it wont support all the OOPS concepts?

1 Answers   CTS,


What is test object?

0 Answers  


how can we handle errors other than using recovery scenerios in qtp

0 Answers  


what are the challenges do we face while testing webbased applcations using the automation tool QTP or any?

4 Answers   BirlaSoft,


How can I deploye a 'QTP Runtime environment only'

1 Answers   Indexis,


What is the parameterization? Give one example?

0 Answers  


Categories