How to capture a window in qtp or how to take snapshot of
any window while writing script in qtp

Answers were Sorted based on User's Feedback



How to capture a window in qtp or how to take snapshot of any window while writing script in qtp..

Answer / kishore

object.CaptureBitmap FullFileName

Is This Answer Correct ?    3 Yes 3 No

How to capture a window in qtp or how to take snapshot of any window while writing script in qtp..

Answer / tvsramakrishnachowdary

ObjectHeirarchy.capturebitmap "path of the file to be
saved",true/false

true=for overwritting
false=it create new file if that file already existed it
shows an error that file already existed

Is This Answer Correct ?    0 Yes 2 No

How to capture a window in qtp or how to take snapshot of any window while writing script in qtp..

Answer / naaz

Select Tools > Options > Active Screen.

There are several options. You can select them and get the
snapshot of any window.

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More QTP Interview Questions

How QTP recognize the object??how to add objcts into object repository??

3 Answers  


Explain different checkpoints in qtp.

0 Answers  


if there r 10 windows open in QTP write a command to close all 10 windows at a time ?

10 Answers   Wipro,


I have two actions in my QTP test and two iterations in my DataSheet. I want to execute the Action 1 for the two iterations only after which i want to exceute the next Action2. How is this possible?

4 Answers  


i have qtp 9.4 ver software.but i don't know the license key. if anyone have license key please send it to my personal mail id(munir.reddy@yahoo.com

0 Answers   Wipro,






I m trying to automate one vb desktop application in that there is vblist vbcombobox many other vb tools are there ,when i m trying to find some unique property to identify the object (take example of vbcombobox ) I cannot find any unique property, all the combobox belong to same nativeclass same name no ids are available ,only the distinct property is there x and y coordinates so i m using some code like this "vbbutton "nativeclass:=ThunderRT6CommandButton","x:=304","y :=443").exist(2)" but i dont find them reliable .Can anyone suggest me some other way to identify those objects with some unique property or is there any way to register our own property .I m using descriptive programming to write the code .Thanks in advance

6 Answers   Cimcon,


if our qtp vb Script may be Currepted then What we want do?

0 Answers   IBM,


what skills needed to be good test automation?

3 Answers  


What is QuickTest Automation Object Model? Where we can use AOM?

1 Answers  


What are the advantages of parameterization ?

0 Answers  


Explain about invoking of application?

2 Answers  


hou can we use vb script in qtp could u tell me breafly

0 Answers  


Categories