Two different types of asserts 

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 assertWhen 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.196.175