InterviewSolution
Saved Bookmarks
| 1. |
What is Reporter.ReportEvent? |
|
Answer» Although, QTP provides four types of result status; Pass, Fail, Done, and Waiting, a standard method of QTP “Reporter.Reportevent” sends custom messages to the test results window. “Reporter.Reportevent” can also send screenshot of result status to the test result window. Syntax Reporter.ReportEvent EventStatus, ReportStepName, Details [, ImageFilePath] Whereas EventStatus = 0 or micPass, 1 or micFail, 2 or micDone, and 3 or micWarning ReportStepName = (String) Name of the intended step in the report (object name). Details = (String) Description of the report event. The string will be displayed in the step details frame in the report. |
|