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
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 |
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 |
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 |
Answer / stephen
Do you have a full copy of Adobe Acrobat installed?
| Is This Answer Correct ? | 0 Yes | 2 No |
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 |
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 |
How to check feasibility of the appliction?in automation testing?
tell me about framework types and most used framework in real time. types of output value in details. diff between wr and qtp in detail.
What is file database?
Hi, Can anyone help me with: How to select a value from combobox and check the checkbox and set the filter. I have to set a filter by selecting a value from dropdown. Also, im using UFT 11.5 so can anyone help me with code for UFT. Thanks Sreevidya
Hi guys, can anyone explain me whats the method for reporting the QTP test results to teamlead or non-QA member (developer/PM)? Thanks in Advance!!!!!
Please clarify Automation and QTP both(names) are same or diff?
can u explain about QTP Frameworks? what are the framework types are available? and How to set or create frame work for a application? Explain briefly?(Also give me one example)
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
hi study this carefully,WHO ARE TEACHING WITH THE HELP OF FLIGHT RESERVATION WINDOW...THOSE FACULTIES ARE VERY BAD...BUT WHO ARE TELLING WITH PROJECT ORIENTED MEANS(NOT FR WINDOW) DIRECTLY OPEN THE BANK WEB PAGES OR ANY OTHER REAL TIME WEB PAGES... BASED ON THAT WEB PAGES, FACULTY TEACH, IN THIS WEB PAGE WHEN UR USING QTP , WHEN UR USING MANUAL... WHERE UR WRITING THE SCRIPTS FOR THIS WEB PAGE.. .LIKE THIS ................THIS IS THE TEACHING FORMAT FOR QTP... 1ST U FIND OUT WHO IS FOLLOWING THIS TYPE OF FORMAT THOSE PEOPLES ARE .BEST FACULTIES AND JOIN THAT INST. THIS IS 100 % TRUEEEEEEEEEEEEE REMEMBER IT........ NOW ONWADS U HATE FLIGHT RESERVATION WINDOW ONLY REAL TIME WEB PAGES........... THAN KU
How to run a script from lines 50 - 100 alone (if the script has 1- 200 lines of code)?
What is the parameterization?
what is difference between application testing and product testing?