In this chapter we have covered the feature of configuring or defining tests and test suites in TestNG. We have covered different options of including classes and methods groups. Also we have written a sample program to pass different parameters to the test at suite or test level. We have also seen how to define a group dependency through code and run it. This feature is very useful when the tests have to be configured or defined at runtime based on some external data.
In the next chapter we will cover how to run your existing JUnit tests through TestNG and how to migrate your existing JUnit tests to TestNG.