Selenium Java - TestNG Integration
You have three test methods:
@Test(groups = {"sanity"})
public void testLogin() {}
@Test(groups = {"regression", "sanity"})
public void testCheckout() {}
@Test(groups = {"regression"})
public void testSearch() {}How would you run only the tests that belong exclusively to the "sanity" group, excluding those that also belong to "regression"?