O'Reilly logo

TestNg Beginner's Guide by Varun Menon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dependency test

Dependency test is another feature of TestNG where group dependency can be defined using the testng XML configuration. You can also achieve the same configuration using the API provided by TestNG. In this section we will write a sample program, which contains multiple test methods that belong to different groups. Through code we will define dependency of a group onto another group and will run the tests using this configuration.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required