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

Summary

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 DataProvider annotation.

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