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 the Factory feature provided by TestNG. Factory allows users to create tests at runtime. We can create n number of tests at runtime depending upon some data sets. We have learned the differences between DataProvider and the @Factory annotation and how each of them executes the tests. We also learned on how to use DataProvider along with the factory implementation for defining tests at runtime.

In the next chapter we will cover the parallelism feature of TestNG, which allows users to configure their tests to be run in a parallel/multithreaded environment.

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