Skip to content

Is there any way to soft assert in MSTEST just like verify assert in TESTNG #571

@shirishnagarnz

Description

@shirishnagarnz

Description

I need to perform some UI sanity check under a single TestMethod. Out of 10 validation check in 1 TestMethod, if 3rd got failed, I want it to continue with 4th, 5th and so on instead of not executing rest of the code.

For a defect specific to the MSTest V2 test framework, describe the issue you've observed.

Steps to reproduce

Tried with try/catch block and without that but unable to perform soft assert in any way.

Expected behavior

Out of 10 validation check in a 1 TestMethod, if any inbetween validation fails, I want script continue to execute rest of the validation checks

Actual behavior

As any of the inbetween script/validation check fails, execution come out of TestMethod and not executing rest of the script

Environment

MSTest1.4

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions