user2270832
user2270832

Reputation: 21

How to Fail TestNG test case and continue running test cases

If one Assert fails or I manually fail test cases using Assert.Fail(); function it will raise an exception and the rest of the test cases will not run. Hoe do I force execution of the entire test suite if one or more Asserts are failing. Thanks!!!

Upvotes: 0

Views: 1199

Answers (1)

Infern0
Infern0

Reputation: 2814

If set to true, this test method will always be run even if it depends on a method that failed.

@Test(alwaysRun=true)

Upvotes: 1

Related Questions