What is the generic way to continue executing the code even after encountering the first failure in Selenium Python and Pytest?

Viewed 51

What is the generic way to continue executing the code even after encountering the first failure in Selenium Python and Pytest?

Expectation: Execution should not be stopped after encountering the failure and the failed test cases should also be reported in the report as failed.

1 Answers

As there is no code so, maybe soft assertions pytest-soft-assertions will help you. Soft assertions are assertions that do not terminate the test when they fail but their results are included in the test execution report. For more detail checkout the Link

Related