Skip to content
This repository has been 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

Open
ayan56321 opened this issue Nov 29, 2018 · 0 comments

Comments

@ayan56321
Copy link

ayan56321 commented Nov 29, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant