top of page
pradnyasg94

TestNG Asserts

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.







1 view0 comments

Recent Posts

See All

Commentaires


bottom of page