lundi 25 septembre 2017

Test NG annotation extension

I have some unstable tests in project with annotation like '@Test(retryAnalyzer = RetryAnalyzer.class)'(runner-TestNG). In RetryAnalyzer class implemented retry logic.

How to create custom annotation which will extend @Test annotation and will have default value of retryAnalyzer? (@Test(retryAnalyzer = RetryAnalyzer.class) -> @UnstableTest)

Thanks.

Aucun commentaire:

Enregistrer un commentaire