-
-
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
StepEventBus.getEventBus.enableSoftAssert() is not working for cucumber test #2858
Comments
Can anyone help on this. Appreciate some inputs |
Soft assertions across steps are not supported. |
@wakaleo is it only with the version. How can I use soft assert in cucumber in this case. Please provide some guidelines |
Cucumber does not support this either. If you want soft asserts you can place all of your expectations in a tabular format, e.g.
If you have many steps with verifications your scenario may be a bit long. |
Closing presumed answered |
@wakaleo
I have a cucumber test in which we want to validate some negative scenarios but with enableSoftAssert() and didableSoftAssert(). Expectation is even though one step fails the test will continue, but actual is the first assertion fails, the test failed and skipped rest of the lines.
We have same scenarios written in jUnit and enableSoftAssert() and disableSoftAssert() working as expected.
We are using serenity-cucumber 6 : version 2.3.10
Need some help on how to make this work for cucumber tests.
The text was updated successfully, but these errors were encountered: