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 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
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Screenshots
The text was updated successfully, but these errors were encountered: