Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

write vbscript on veb applications in qtp with exapmles?

1 Answers  


Explain about merging of two repositories?

3 Answers  


Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.

5 Answers   Lehman Brothers, rsystems,


IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp GIVE CODE TO IT USING qtp

2 Answers  


What is the purpose of loading qtp add-ins?

0 Answers  


How the exception handling can be done using QTP

6 Answers  


If you are testing a web application then what will you test in that application?

0 Answers   Infosys,


what the diffference between test data and test cases what is meant by object hierarchy in qtp

4 Answers   Virtusa,


I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini

1 Answers  


what is automation(qtp)bug pls giv me one ex?

1 Answers  


you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani

4 Answers   Oracle,


can any one tell me how to select some text.i need the script for that

1 Answers  


Categories