During test run,How will you copy/paste from/to clipboard?

Answers were Sorted based on User's Feedback



During test run,How will you copy/paste from/to clipboard?..

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

During test run,How will you copy/paste from/to clipboard?..

Answer / akshara

we will take a snap shot of that one. that is

Is This Answer Correct ?    1 Yes 3 No

During test run,How will you copy/paste from/to clipboard?..

Answer / nanda.d reddy

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

Post New Answer

More QTP Interview Questions

1.what is the extension of action template? 2.what are the strengths and weaknesses of Keyword driven framework? 3.how qtp identify runtime objects?

1 Answers   Satyam,


While testing .net applications with QTP 9.1 in normal recording mode, QTP records my unintentional mouse clicks and window dragging which I don't want. But I can't stop QTP recording those mouse clicks and window dragging. Can somebody let me know how I can get rid of it, please ! Thanks.

1 Answers  


What are the different types of Database checkpoints in QTP? when they are used?

2 Answers  


what is the extension for QTP files?

16 Answers   American Solutions,


Suppose i have some records in database now i want to use first 1000 records for one test and next 1000 to 2000 records for another test how can we do this just for ex oracle database pls tell me

1 Answers  






What is your role and responsibilities in QTP with your current organization?

1 Answers   Oracle,


Brief the process of testing with UFT?

0 Answers  


I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?

1 Answers   FAI,


Define Error Pane of UFT?

0 Answers  


what is the difference between Reusable action and external action?

2 Answers   HCL,


How to call script1 into script2?

3 Answers  


Suppose u write test case in Excel sheet . how u open that test case in Test Director?

4 Answers   Ordain Solutions,


Categories