TestNG groups annotation is declared at test method level, that is, you can specify which group or groups a specific test method can belong to.
eg.
@Test(groups = { "group1", "group2" }, priority = 10, enabled = true)
public void doTest() {}
For a given scenario where all test methods only belong to a single group, it almost seems like an overhead to specify the group name in each test method. Is there a way, in this case, to set the group name at a higher (class) level?
Aucun commentaire:
Enregistrer un commentaire