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.