1.

What Is Testng Assert And List Out Common Testng Assertions?

Answer»

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)

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:



Discussion

No Comment Found