Could you tell me what error are you getting when you try to edit the testng.xml file that way (to include some test groups)? Have you edited the testng.xml file like in this example (lets say you have the group1 marked test in TC2 class)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Tests" verbose="5">
<exclude name="group2" />
<include name="group1" />
<class name="uitest.tests.TC2" />
For showing information about groups in the report, I would have to discuss with the team, but an interesting proposal.
The issue here is that the driver does not get instantiated in the specific group provided trough testng.xml file. Most probably due to a known TestNG bug, and if you want to find out more details, please visit this topic.
The solution here would be to place the
(alwaysRun=true) parameter on all
@BeforeMethod, @BeforeSuite and
@AfterMethod, @AfterSuite in the TestNGTestBase.java file and you should be fine! Kind Regards,