1 Answer

0 votes
by
TestNG Asserts help us to verify the condition of the test in the middle of the test run. Based on the TestNG Assertions, we will consider a successful test only if it is completed the test run without throwing any exception.

Some of the common assertions supported by TestNG are

assertEqual(String actual,String expected)

assertEqual(String actual,String expected, String message)

assertEquals(boolean actual,boolean expected)

assertTrue(condition)

assertTrue(condition, message)

assertFalse(condition)

assertFalse(condition, message)

For Complete Post
Click here to read more about Selenium
Click here to read more about Insurance

Related questions

0 votes
asked Aug 22, 2019 in Selenium by john ganales
+1 vote
asked Aug 22, 2019 in Selenium by john ganales
0 votes
asked Aug 19, 2019 in Selenium by rahulsharma
0 votes
asked Aug 22, 2019 in Selenium by john ganales
0 votes
asked Aug 22, 2019 in Selenium by john ganales
...