We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to attach a screenshot to the report after each step fails but only the screenshot for the first failed step is being attached to the report.
I want to attach only each failed step screenshot to the report.
4.x.x
17
windows
Github link: https://github.com/ak270296/Serenity-bdd
The text was updated successfully, but these errors were encountered:
You would need to use soft assertions for that. A test will stop executing when it fails, and go through the following steps in dry-run mode.
Sorry, something went wrong.
After adding soft assertion.
@Before public void setSoftAssertion(){ Ensure.enableSoftAssertions(); } @After public void reportSoftAssertion(){ Ensure.reportSoftAssertions(); }
But it doesn't work. I have added serenity.take.screenshots=FOR_FAILURES in serenity properties.
@wakaleo please help.
No branches or pull requests
What happened?
I want to attach a screenshot to the report after each step fails but only the screenshot for the first failed step is being attached to the report.
What did you expect to happen?
I want to attach only each failed step screenshot to the report.
Serenity BDD version
4.x.x
JDK version
17
Execution environment
windows
How to reproduce the bug.
Github link: https://github.com/ak270296/Serenity-bdd
The text was updated successfully, but these errors were encountered: