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

XML-based dependency configuration

TestNG also allows group-based dependency to be defined inside the testng XML configuration file. This can be done when defining a test inside a suite. We write some similar dependency programs that we have written earlier using XML configuration.

Simple group dependency

In this section we will write a simple XML configuration file to define a simple group dependency for a test method.

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