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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...

8058


What are the technics follow in writing VB script?

1922


How do you know the location Id of an object if you know its index id?

1006


describe some problems that u had with automating testing tool?

1768


Explain more about the Test Fusion Report of QTP?

995


Define Error Pane of UFT?

1069


Explain about the quicktest professional (qtp) automation object model?

951


Tell me about your project? please help me how to tell about insurance project

1951


What is the difference between Keyword Driven test and Data Driven test?

2188


Output values? i want a practical example

1706


Explain in brief about the qtp automation object model (aom).

956


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1700


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1868


what is the difference between development and testing

3582


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1737