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

How do you delete unwanted results in qtp?

0 Answers  


when we apply the daily build each and every day,the property may change in the application.so that the created script is not reusable in winrunner and qtp.for ex for date field it is taken dtpicker.at another time it is taken some other name.how can i solve it.

0 Answers  


I had created the new virtual objects for web application buttons. how to add those virtual objects into object repository. Previously i had used Gui map in winrunner for capturing virtual objects for web application. Please help me regarding this. need your answer quickly

1 Answers  


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

0 Answers  


if my application shows 100 records and in my database having 200 records how i can validate using QTP tool?plz exp. in detail?

2 Answers   Wipro,






what is the extension for QTP files?

11 Answers   AppLabs,


Older version QTP is 8.2 and New version QTP is 9.2. My question is, Why it is QTP 9.2, why not 8.3,8.4 .... why it is not something ?

1 Answers  


How to load a object repository in QTP during runtime?

2 Answers   BNP Paribas, Virtusa,


hen do start automation testing after manual testing

1 Answers   Infosys,


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

0 Answers  


can we call runaction in the funcion

1 Answers  


What is meant by Environmental variables?2 types r there know…can u pls explain clearly?

1 Answers  


Categories