vendredi 12 août 2016

How can I invoke @after once for many scenarios?

I have different tests scenarios written in cucumber/selenium using java, and usually I run tests from different features files using Tags like this mvn test -Dcucumber.options="src/test/resources/step_definitions --tags @Tagname"

What I want to do is close browser instance after all my tagged tests are run. How can I do that? @AfterSuit is not helping.

Aucun commentaire:

Enregistrer un commentaire