Most Commonly used Assertions in TestNg for automation testing are :
Asserts
that two booleans are equal. If not, assertions fails.
Asserts
that two booleans are equal. If not, assertions fails, & message is
displayed.
Asserts
that two Strings are equal. If not, assertions fails.
Asserts
that two Strings are equal. If not, assertions fails.
Asserts
that two Strings are equal. If not, assertions fails, & message is
displayed.
Asserts
that a condition is false. If not, assertions fails.
Asserts
that a condition is false. If not, assertions fails, & message is
displayed.
Asserts
that an object isn't null. If not, assertion fails
Asserts
that an object is null.
Asserts
that an object is null. . If not, assertion fails, & message is displayed.
Asserts
that a condition is true. If not, assertion fails.
No comments:
Post a Comment