During test run,How will you copy/paste from/to clipboard?
Answers were Sorted based on User's Feedback
Answer / 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 |
use the shell scripting sendkeys method:
set oShell = CreateObject("wscript.shell")
oShell.Sendkeys "^A" (Pressing the Ctrl+A keys)
oShell.sendkeys "^C" (Pressing the Ctrl+C keys)
OShell.sendkays "^V" (Pressing the Ctrl+V keys)
| Is This Answer Correct ? | 4 Yes | 6 No |
How can i check items sorted or not in a weblist ? Give me the script for this...
datatable.Import("E:\Programming Samples\QTP Samples\OrderNumbers.xls") Asume we have 4 records in datatable Code reads the 4 rows in the sheet ok, but does it 5 times? It doesn't sound like closing the datasheet is the problem Can we close the datasheet runtime ?
why we use sendkey method in qtp?
Analyzing the Checkpoint results ?
Can we test the Word Document using QTP Tool? We should test the page size,page set up, paragraph indentation and spacing, font size of the the character int the page.
Explain the difference between call to action and copy action?
Can u Reduce the size of Object repository? What are the problems u have faced in Qtp tool?
What is the difference between Keyword Driven test and Data Driven test?
Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?
how can i count the number of links???
Batch testing in howmany ways u perfrom in QTP
After the execution of a script how do u upload the results to Quality Center. Pls anyone explain in detail. It is very urgent._______Thanks a lot!!