Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

TESTNG

Set Test Dependency in TestNG


TestNG: Test Execution Engine

➤ Test Dependency Order : Dependency is a feature in TestNG that


allows a test method to depend on a single or a group of test
methods.
➤ TestNG allows you to specify dependencies either with:

Using attribute dependsOnMethods in @Testannotations.

Using attribute dependsOnGroups in @Testannotations.
➤ Important Notes on Test Dependency:
➤ The dependency on multiple test methods are configured for a
test method by providing the comma separated dependent test
method names.
➤ If a dependent method fails, all the subsequent test methods will
be skipped, NOT failed.
Will see you in Next Lecture…

See you in next lecture …

You might also like