Open topic with navigation

Init Method (IReporter)
Initializes the specified ReportConfiguration.
Remarks
Required only when using IReporter in a test class that does not inherit from UnitTestBase.

C# Syntax

    void Init(
       ReportConfiguration configuration
    )

Parameters

configuration
  The configuration to use for the report.

Example

    //
    // Use the Reporter.Init() method to intialize the Reporter before using it.
    //
    Reporter.Init(new ReportConfiguration
    {
        Title = "WinForms",
        Description = "Using Report in Console application",
        IsOverrideExisting = true,
        ReportFolder = "WinFormsResults",
        ReportLevel = ReportLevel.All,
        SnapshotsLevel = CaptureLevel.OnError,
        TargetDirectory = "."
    });