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

How will you find the current time of the remote machine using QTP script?

1067


what is supply chain management?

2585


How the exception handling can be done using quicktest professional?

1029


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

2047


Where is the Bitmap checkpoint information stored?

2317


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

2143


what is the difference btn risks & Therads in the Test plan documentation?

2123


Explain the features of quick test pro(qtp)?

1037


what is the diff b/w assistive and mandatary rules of object repository in QTP???

2188


HOw to add the recovery file at runtime to the test file .

2190


Are Shared ORs read-only?

1068


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

2090


what function you write to do database testing with the help of qtp?

1834


What does mean by Scope of Automation?n How we defined it?

2046


How many ways is to parameterize the value?

1143