InterviewSolution
| 1. |
What Is Soft Assert In Testng? |
|
Answer» Soft Assert COLLECTS ERRORS during @Test. Soft Assert does not throw an exception when an assert fails and would continue with the next STEP after the assert statement. If there is any exception and you WANT to throw it then you need to use assertAll() method as a last statement in the @Test and test suite again continue with next @Test as it is. Soft Assert collects errors during @Test. Soft Assert does not throw an exception when an assert fails and would continue with the next step after the assert statement. If there is any exception and you want to throw it then you need to use assertAll() method as a last statement in the @Test and test suite again continue with next @Test as it is. |
|