mercredi 16 septembre 2015

TestNG @BeforeGroups : possible to use wildcard characters?

I have the following 3 classes :

enter image description here

The aim is to be able to easily add further tests, group them, and of course the setup and tearDown methods.

However, I don't want that people have to update the superclass -> AbstractTestContext.

My question : is it possible to use wildcard chars in order to avoid the list of groups within @BeforeGroups annotation ?

I tried several combinations but none of them worked (eg. : *, no parameter, empty list, etc ...)

Thanks

Aucun commentaire:

Enregistrer un commentaire