what is mercury.clipboard in qtp.where we can get this in
qtp tool i.e tabs
Answer / nanda
HI,
"mercury.clipboard" is method to create a clipboard
object. and use to copy and paste the text.
The below Example will copy the text from PDF file to
notepad file:
note : the given files paths are in my local system. Please
give paths in ur local system.
Set clipboard = createobject("mercury.clipboard")
'Give notepad file path according to ur local system path.
filepath = "C:\Documents and Settings\Madhu
Sudhan\Desktop\example.txt"
for_reading = 1
for_appending = 8
'Please Open any pdf file in ur system. at the time of
running it should be opened and in maximize.
Window("Adobe Reader").WinMenu("Menu").Select "Edit;<Item 8>"
Window("Adobe Reader").WinMenu("Menu").Select "Edit;<Item 4>"
Set fso = createobject("scripting.filesystemobject")
Set notepad = fso.createtextfile(filepath,for_appending)
nanda = clipboard.gettext
notepad.write nanda
notepad.close
Set notepad = fso.opentextfile(filepath,for_reading)
reading=notepad.readall
msgbox reading
With Regards..
Nanda
Is This Answer Correct ? | 5 Yes | 0 No |
QTP WAS WORKING FINE BUT TODAY I GOT THE ERROR , THE MEMORY COULD NOT BE READ -REFERENCE MEMORY ,pPLEASE REPLY URGENT WHAT IS THE SOLUTON
Hi Friends, I have an application that is having some options to choose. While doing business transaction I need to select one option among from available options. But here the thing is, we won't get one option which we've chosen already and the available options will get automatically from the system with time basis, moreover each and every option having with various label names respective to that option. So obviously if I run my recorded script will automatically gets fail, even though it got pass at first time. Could anyone please give me appropriate solution for this. I would be greatly obliged with you if you give the solution as soon as possible.
can we do load testing , by using QTP......?
WHAT IS ENVIRONMENT VARIABLES?
7 Answers AZTEC, CTS, Ready Test Go,
Is it possible to change the name of a test object. I mean when we are recording the script for an object (for Ex: Username is a text field which has value "Babu",i am recording that). Then the Name of the object will become "Babu" in object repository. If i want to change "babu" as "xxxxx" .. is it possible to do? Pls help me in this .. if you didn't understand the question, pls let me know.
how to automate standalone infopath forms using QTP? (it is not a dotnet or a web form)
What is the entry and exit point of automation testing
i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0
What is TOM in QTP?
What is environment variable in qtp and why to use it?
This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording
what is the frame work in J-meter?