During test run,How will you copy/paste from/to clipboard?
Answer Posted / zayed
Customise the below function for the object and c if this
is useful.
Function f_CopyAllToClipBoard ()
Dim vText, vWindow_PuTTY_WMenu_CopyAllToClipboard
Set vWindow_PuTTY_WMenu_CopyAllToClipboard = Window
("nativeclass:=PuTTY").WinMenu("menuobjtype:=4")
vWindow_PuTTY_WMenu_CopyAllToClipboard.Select "Copy All
to Clipboard"
'Clipboard object
Set cb=CreateObject("Mercury.Clipboard")
' Get the text on the system clipboard.
vText=cb.GetText
' Release the Clipboard object.
Set cb=nothing
f_CopyAllToClipBoard = vText
End Function
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma
how did u use automating testing tools in ur job?
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
what is the difference btn risks & Therads in the Test plan documentation?
If I give some thousand tests to execute in two days what do you do?
What are the five challenges you faced in QTP?
Give the syntax to load function at run time.
how to prepared for first for the first interview?
What is the difference between the design-time and run-time data tables?
Can launch two instances of qtp on the same machine?
Write a QTP script to enter a keyword in to Google search engine?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
how do u plan test automation?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?