Adding test to suite

As described in the section called “Test-NG configuration”, each test case must be included in Test Suite configuration.

  1. create new xml file under src/test/resources/, for example example.xml
  2. in the created xml file add new test case as follows, creating new Suite (specifying name) with a list of tests (specifying names), and each test can contain multiple classes (for details please refer to TestNG documentation)

    <!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd" >
    
    <suite name="Tigase Various Tests" verbose="1">
    	<test name="Example Tests">
    		<classes>
    			<class name="tigase.tests.ExampleJaxmppTest" />
    		</classes>
    	</test>
    </suite>
  3. include created xml file in the Test Suite (see the section called “Test-NG configuration”)