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

How to integrate the qualitycenter with qtp

1762


How to use Environment parameterization? Explain with an example.

1467


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

1712


Explain different types of action in qtp?

563


Define object spy ?

554






How you debug your script?

556


What are the various types of Actions in UFT?

579


What is quicktest professional (qtp)?

556


hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....

2421


what type of run time errors you get while you ar edoing rpg program?

1500


Hi Samrat, Thank u very much, what u said it is right.

1335


Have you done batch testing in qtp? If yes how you are doing?

495


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1291


your coming from electrical backgroung..but y ur coming to software side?

1374


How to give a call to another action from one action?

616