Testing for a negative scenario

You might wonder what happens when you give incorrect text in the expected parameter. Suppose we give the string # Free CRM software in the cloud for sales and service , then the AssertEquals check will fail and the output shown here will get printed to the console:

FAILED: checkListeners
java.lang.AssertionError: expected [# Free CRM software in the cloud for sales and service] but found [#1 Free CRM software in the cloud for sales and service]

Next, we will understand what are soft and hard asserts.

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

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