ReportEvent(String,String,Status,Exception,String) Method
Adds a custom step to the UFT Developer including exception details and the image from the specified path.

C# Syntax

public static void ReportEvent( 
   string stepName,
   string description,
   Status status,
   Exception ex,
   string imagePath
)

Parameters

stepName
The name of the reported step. This name is the label of the step node in the report.
description
The description of the reported step. The description is displayed in the Details pane of the report.
status
The Status for the step.
ex
The exception that occurred.
imagePath
The full path of the image to display for the step. Supported image types: BMP, GIF, JPEG, PNG, TIFF