Assertions in TestNG are a way to verify whether expected and actual results match or not.
The syntax of assert is as below:
Assert.Method(actual, expected)
How to write the TestNG tests using Assertions?
Here I am verifying the title of the Facebook page using the assertEquals method.
Comments