How to filter the scenarios that will run @Beforescenario?

Asked

Viewed 182 times

3

I have a number of scenarios in Démoiselle-behave, and I want to filter those who should perform a method marked with @BeforeScenario.

In the Cucumber-jvm, I do so:

Funcionalidade: Acesso
@web
Cenário: Autenticar com sucesso
    // Passos

...

@Before("@web")
public void antesDosCenariosWeb() {...}

And he understands that all scenarios/features marked with that tag, will execute that method.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.