In this chapter we have learned about dependency feature in TestNG. We have learned multiple ways to define/configure test methods to be dependent on other test methods.
The dependency can be configured for both test methods and also for groups. We can even configure/define a dependency through the testng XML suite file. Use of regular expressions is supported for groups and can be used for name-based search to add groups to dependency.
In the next chapter we will cover the
Factory annotation provided by TestNG. We will learn about its usage and how it's different from the