How to take screenshot of failed QTP step?
Guys,
always take screenshot of the failed steps when creating a QTP test, it will saves
your time in identifying the issue thru Result Viewer, and reduce the result
analysis time. Below is the simple code to achieve that
screenShot = “TestScreenShot”+ ".bmp"
Browser("Test").CaptureBitmap screenShot
Reporter.ReportEvent micFail, “Failed Reason”, “Failed Reason in Detail”, screenShot
Comments
Post a Comment