I would like to know if there is a way of having different configuration methods (let\'s say at class level, @Before/AfterClass) that will enable the user to select which co
Depending on your test setup you might just use groups:
public class Test {
@BeforeClass(groups = {"A"})
public void configuration1() {...}
@BeforeClass(groups = {"B"})
public void configuration2() {...}
@Test(groups = {"A", "B"})
public void testFoo() {...}
@Test(groups = {"A"})
public void testFoo() {...}
}
Or you might think about parameterizing your tests/use data providers.