You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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
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)));
}