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.
In this section we will write a simple XML configuration file to define a simple group dependency for a test method.