-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console output reporting all examples as failed after 1st failed example #1224
Comments
Thanks for raising this. I suspect that in this case Serenity is logging the overall result rather than the individual results. If you would like to have a go at troubleshooting, the class in question is ConsoleLoggingListener. |
Here is the feature file: Feature: Login and Authentication Background:
@yyy
Example 1 and 3 are setup to pass and example 2 is setup to fail Here is the console output. [main] INFO net.serenitybdd.core.Serenity -
| (---- News and tutorials at http://www.serenity-bdd.info |_ | / | _| / | |/ \ | _ _ | | _ \ TEST STARTED: Login test with valid credentials TEST PASSED: Login test with valid credentials[main] INFO net.serenitybdd.core.Serenity - TEST PASSED: Login test with valid credentials[main] ERROR net.serenitybdd.core.Serenity - TEST FAILED: Login test with valid credentials[main] ERROR net.serenitybdd.core.Serenity - TEST FAILED AT STEP Logged on with credentials: User2, Password2 TEST FAILED: Login test with valid credentials[main] ERROR net.serenitybdd.core.Serenity - TEST FAILED AT STEP Logged on with credentials: User2, Password2 TEST FAILED: Login test with valid credentials[main] ERROR net.serenitybdd.core.Serenity - TEST FAILED AT STEP Logged on with credentials: User2, Password2 TEST FAILED: Login test with valid credentials[main] ERROR net.serenitybdd.core.Serenity - TEST FAILED AT STEP Logged on with credentials: User2, Password2 Failed scenarios: 3 Scenarios (1 failed, 2 passed) |
If you have a scenario outline with multiple examples, the console output will report test passed for each successful example untill it reaches the first example which fails and then the console output says failed.
This is expected. But after that, each example is reported as failed after it executes even if it is successful.
The serenity report is displaying the results correctly/with no problems.
<serenity.version>1.9.10
<serenity.cucumber.version>1.9.5
The text was updated successfully, but these errors were encountered: