jeudi 30 juillet 2015

Skip certain steps in a scenario in Cucumber

I have a cuke scenario,

Scenario: Hello World
Then do action one
Then do action two
Then do action three
Then do action four
Then do action five

But depending on the environment variable, I want to skip action three and action four. I know I can go in the step and do a if-else check, but it's not very elegant. Is there any better solution? Thanks :)

Aucun commentaire:

Enregistrer un commentaire