Is it possible to skip a scenario with Cucumber-JVM at run-time

后端 未结 7 603
面向向阳花
面向向阳花 2020-12-30 12:54

I want to add a tag @skiponchrome to a scenario, this should skip the scenario when running a Selenium test with the Chrome browser. The reason to-do this is because some sc

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-30 13:23

    If you're using Maven, you could read use a browser profile and then set the appropriate ~ exclude tags there?

    Unless you're asking how to run this from command line, in which case you tag the scenario with @skipchrome and then when you run cucumber set the cucumber options to tags = {"~@skipchrome"}

提交回复
热议问题