Powered By Blogger

Monday, February 23, 2009

Enhanced ReportEvent Method in HP QTP 10.00

ReporterEvent is extended so that we can specify an image file as the fourth argument. (which was not useful in earlier versions)

Syntax 
Reporter.ReportEvent EventStatus, ReportStepName, Details [, ImageFilePath]  

ImageFilePath
Path and filename of the image to be displayed in the Results Details tab of the Test Results window. Images in the following formats can be displayed: BMP, PNG, JPEG, and GIF.

Example:

Reporter.ReportEvent micDone, "Sample Logo", "This is a sample logo", "Logo.bmp"

No comments:

Post a Comment