import soft assert testng code example
Example: soft assert
soft assert:
- Soft assert: won't stop the execution
if assertion fails.
- Soft assert methods are not static,
so we must create the object of the class.
- It displayS the recorded result at the end.
I use soft assertion when functionality is NOT
very critical.