Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Extent Report does not show test as fail if it fails before logging pass status of test to extent report OR if extent end test is not executed in Selenium C# #1132

@ayan56321

Description

@ayan56321

Extent Report does not show test as fail if it fails before logging pass status of test to extent report OR if extent end test is not executed

In general: Please provide as much information as you can to help us solving your problem -->

Summary

The ExtentTest Report is showing as Failed but the status is showing as Passed.
status = TestContext.CurrentContext.Result.Outcome.Status;
This shows as passed.

Expected Behavior

Both the Test status and Test Report status should be same.

Current Behavior

Sample

catch (Exception ex)
{
String ErrVal = ex.ToString();
test.Log(LogStatus.Error, reportVal + " is Not Present" + test.AddScreenCapture(GenericUtilities.Capture(driver, reportVal, newFolder)));
}

and the Report shows as Passed

Environment Details

  • Extent report Version used:
  • Operating System and version:
  • JDK Version:

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions