Perform the following steps to run a TestNG group using the
testng.xmlin the previously created project.
<suite name="Time test Suite" verbose="1"> <test name="Timed Test"> <groups> <run> <include name="test-group" /> </run> </groups> <classes> <class name="test.groups.TestGroup" /> </classes> </test> </suite>
The preceding XML file contains only one test inside a suite. This contains the groups section defined by using the
groups tag as shown in the code. The
run tag represents the group that needs to be run. The
include tag represents the name of the group that needs to be executed. ...