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

diff between qtp versions from 8.5

0 Answers   Semantic Space,


Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

0 Answers   IBM,


What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project

2 Answers   Yahoo,


when a test case is written how u test using qtp

0 Answers   Satyam,


how to get font size of a "WebEdit"

3 Answers   L&T,


1.In VB Script 100 lines Script. How can check the Syntax errors? 2. Write a VB Script for X = India/Srilanka/Australia/England/South Africa.I need the Output Country wise? [ 1st Msgbox India , 2nd Msgbox Srilanka] ---- 3. How can Choose these test cases to be automated?

5 Answers   HP,


QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop "

2 Answers   Livetek,


Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini

2 Answers   TCS,


1)what is the quality process in QTP? 2)how to add the .tsr file in qtp through scripting?

1 Answers   L&T,


qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?

2 Answers  


What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)

0 Answers   Tech Mahindra,


we r conduction testing on a project USING QTP, regarding that project the object repository is full ? Till that project having objects that r not recognised by repository, then what wil you do? How we wil recogine remailning objects? Is it possible to maintain another shared(or)peraction repository? what is the maximum capcity of object repository? How the technical people decide this much object repository is enoughf for this project?

7 Answers   AppLabs, CGI,


Categories