There are two different types of assertions, hard assert and soft assert:
- Hard assert: When a hard assert is used and the test case fails, the statements following the assert will not get executed and the test execution will abort.
- Soft assert: When a soft is used and the test case fails, the statements following the assert will get executed and the test execution will pass.
The normal assert is a hard assert, which we have already seen. We will see how to use a soft assert next.