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

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