Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to capture screenshots of Exceptions/Errors during run-
time?

Answers were Sorted based on User's Feedback



How to capture screenshots of Exceptions/Errors during run- time?..

Answer / julia

Hello,

In QTP8.2, we can choose the run setting:
Test -> settings -> Run tab -> set ON save image of desktop
when error occurs checkbox

In QTP 9.2, follow the below navigation:
Tools -> Options -> Run tab -> In the drop down list
box "On Error"(default) is selected for "Save step screen
capture to results"

Is This Answer Correct ?    15 Yes 2 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / anil

There will be a syntax in QTP for capturing
the Exceptions in Runtime by
if (error occurs...) then
capturebitmapimage("c:\....")
end if

Is This Answer Correct ?    9 Yes 0 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / ravi_kanakam

When error occurs you can take screenshot of the desktop
and send the bitmap to result file.

if error occurs then

Desktop.CaptureBitmap("c:\bitmap.bmp")

Reporter.ReportEvent micFail, "Error Name", "&lt;<img
src="c:\bitmap.bmp>"

end if

The above code will send the screen shot to the Result File.

Is This Answer Correct ?    8 Yes 1 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / arunsingh

By using object.capturebitmap("c:\snap.bmp")
we can capture the screenshots of any screen at runtime.

Is This Answer Correct ?    6 Yes 0 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / srikanth

Thanks Sridhar,

But im asking in QTP through script without tester
interaction

Is This Answer Correct ?    5 Yes 2 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / giridhar reddy

if you QTP is associated with Quality Center then it will
take the screen shot automatically by setting an option in
the settings/run... but I am also looking for with out
Quality center I have come across with an option in
checkpoints properties to capture the screen Image... I am
doing some sort of research once I get thru it I will
definetly let you guys know..

Is This Answer Correct ?    2 Yes 1 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / dilip

thanks julia

Is This Answer Correct ?    0 Yes 0 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / amita

Can any one explain the same with qtp10

Is This Answer Correct ?    0 Yes 0 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / mangesh

YOU CHECK IN RESULT OF YOU QTP SCREEN SHOT IS THERE

Is This Answer Correct ?    0 Yes 4 No

How to capture screenshots of Exceptions/Errors during run- time?..

Answer / guest

Hey I don't think that it is possible.
After all QTP is automation tool...it doesn't think like
human brain...you have to feed it all the scenarios,then
only it will follow the instructions.

Go to Tools>Recovery scenario manager : here you can give
the instructions to QPT to respond to errors.

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More QTP Interview Questions

Explain the views in the QTP GUI?

0 Answers  


what is main difference between QTP 8.2 AND QTP 9.0/9.2 HOME PAGE?i mean what are extra thing in QTP 9.0 than in QTP 8.2?

1 Answers   Infosys,


How to get all the objects count and objects names in webpage using QTP ?

6 Answers  


How to build scripts that access data from external sources?

0 Answers  


What is the difference between property and method?

2 Answers  


Definationions for keyword view and tree view?

1 Answers  


explain keyword driven framework?

2 Answers   Mindlance,


hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?

2 Answers  


how to test Web application using QTP software

0 Answers   Google,


I want to clear the webedit field without using set"" in qtp script

1 Answers  


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

0 Answers   ABC,


what is the difference between function and subroutine ....here every one knows theoretically...here my QUESTION IS WHAT IS THE MEANING OF FUNCTION CAN RETURN A VALUE AND SUB CAN NOT RETURN A VALUE .....WHAT DOE'S IT MEAN FUNCTION CAN RETURN A VALUE HOW FUNCTION CAN AND SUB CAN'T ....GIVE A EXAMPLE FOR BOTH ....HOW IT CAN AND CAN NOT...HELP ANDY ONE....

1 Answers   HCL,


Categories