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

how to get the object property

4 Answers   Covansys,


How to do Batch run in qtp? provide the steps?

5 Answers  


What is the difference between QTP 8.2 and QTP 9.2

0 Answers   Nokia,


How can you pass value one action to another action?

0 Answers  


What is Descriptive Programing? In which cases, we will go for descriptive programing?

2 Answers   CTS,






How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

0 Answers  


Differentiate the two Object Repository Types of QTP.

5 Answers  


is it possible to change the date format like MM/DD/YY into DD/MM?YY through script in QTP

5 Answers   IBM,


plz anybody tell me how to explain the architecture of one particular project.plz give me answer for this.....RAJESH

7 Answers   TCS, Wipro,


what is impact analysis on regression testing?

0 Answers   L&T,


I want to know how to execute the descriptive programming in qtp for the webedit object which does not contain attached text property. but i have checked it with name and html id property. Even though it is not executing. it is giving error in object's physical description.

2 Answers  


Is it possible to call win runner script in qtp?

0 Answers  


Categories