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", "<<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
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...
What are the technics follow in writing VB script?
How do you know the location Id of an object if you know its index id?
describe some problems that u had with automating testing tool?
Explain more about the Test Fusion Report of QTP?
Define Error Pane of UFT?
Explain about the quicktest professional (qtp) automation object model?
Tell me about your project? please help me how to tell about insurance project
What is the difference between Keyword Driven test and Data Driven test?
Output values? i want a practical example
Explain in brief about the qtp automation object model (aom).
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?
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
what is the difference between development and testing
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..