How to capture screen shots when an error occurs?

Answer Posted / lak

Objectheirarchy.CaptureBitmap "path"

for ex

to capture any window

Window("Flight Reservation").CaptureBitmap "C:\pic1.bmp"

to capture combo box(tool)

Window("Flight Reservation").WinComboBox("Fly
From:").CaptureBitmap "C:\pic2.bmp"

This is used in QTP.

www.funandknowledge.blogspot.com

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Both static and dynamic arrays are handled by the vb script. Is it true?

553


Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u

1367


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1634


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

1478


Difference between copy to action and call to action?

583






What is the script for database check point, bitmapchek point, regular expression ?

1547


I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2

1488


Suggest and Define a solution for an application whose objects are not recognized by UFT?

660


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

1496


How to interact tool & application build in QTP?

1456


What is the extension of the recovery scenario file in qtp?

533


How many tabs are available in debug viewer pane?

641


What is Cross browser testing? Does UFT support it?

613


How many types of Automation frameworks are there in UFT? Describe them.

552


How do you create new test sets in td?

528