In the previous chapter we learned about defining the dependency of tests on other tests or a group of tests. In this section we will learn about the
@Factory annotation provided by TestNG. Factory allows tests to be created at runtime depending on certain datasets or conditions.
In this chapter we'll cover the following topics:
DataProviderannotation with the
Sometimes we may need to run a set of tests with different data values. To achieve this we may define a separate set of tests inside a suite in the
testng XML and test the required scenario. ...