Earlier we learned about creating test suites, suites with multiple tests, and running them through TestNG. Now we will learn how to create and configure suites to execute only the tests belonging to a particular class or a package or just a particular test method.
In earlier examples you may have noticed tests with a single class. In this section we will learn how to add multiple classes to a test.
Before going ahead with creation of test suite with classes, packages, and test methods, we will need a sample project in place for defining test suites for test execution. Let's create a sample project first: