what is the code in QTP to take screen shot?

Answers were Sorted based on User's Feedback



what is the code in QTP to take screen shot?..

Answer / reddy prasad

syntax:
object hierarchy.capturebitmap "path to save the bitmap"

eg:

Browser("Flight").Page("Flight").ActiveX
("Calendar").CaptureBitmap "D\extra\screen_short\defect.bmp"

Is This Answer Correct ?    9 Yes 0 No

what is the code in QTP to take screen shot?..

Answer / litan

Desktop.Capturebitmap "D:\ImageName.JPG"

Is This Answer Correct ?    5 Yes 5 No

what is the code in QTP to take screen shot?..

Answer / din

This is a good answer. It is working fine for me but How can I make it as function and pass screenshot name as a parameter for different screenshots?

Is This Answer Correct ?    0 Yes 0 No

what is the code in QTP to take screen shot?..

Answer / aruna

Capture Bitmap Function

Browser("Flight").Page("Flight").ActiveX
("Calendar").CaptureBitmap "calendar.bmp"

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More QTP Interview Questions

I am using Shared OR, and my collegues are also using Shared OR. How to merge Object Repositories?

6 Answers  


WHAT ARE THE SHORTCUT KEYS IN QTP?

4 Answers   TCS,


How many types of object repository in qtp?

0 Answers  


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

0 Answers   Covansys,


Give me brief idea about QTP automation object model?

5 Answers   TCS,






What is a Run Time Data table?

1 Answers  


How are actions and functions different in QTP?

0 Answers  


1.how can we report the QTP test result in a different excel sheet 2.

3 Answers   Aurigo,


Explain the features of quick test pro(qtp)?

0 Answers  


What do you do if QTP doesn't recognize object ,what action should be taken

11 Answers   Lehman Brothers,


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,


what is the defference between QTP 8.2 and 9.0and 9.2? plz tell me

6 Answers  


Categories