Skip to content
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

[Feature] Soft assertions in playwright java , so that all steps will run after that i can check which steps got failed #18930

Closed
TannuBansal56 opened this issue Nov 19, 2022 · 2 comments

Comments

@TannuBansal56
Copy link

I have a scenario where we have multiple scenarios to assert. I want to finish off all assertions irrespective of their status and need to see what all assertions got passed or failed once all validations steps were done.
Is there any way to do this in Playwright in java

@dartyuhov
Copy link

You can use 3rd party tools like assertJ or built-in assertions based on test-runner that you're using Junit5 (assertAll) or TestNG SoftAssert

@dgozman
Copy link
Contributor

dgozman commented Nov 21, 2022

As @dartyuhov says, this heavily depends on your test runner. You can already use soft assertions available in your framework, but most likely they will not work with Playwright's own assertions.

I'll close this issue in favor of microsoft/playwright-java#819.

@dgozman dgozman closed this as completed Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants