cucumber (in Java): How can I run scenarios with both tags only

耗尽温柔 提交于 2019-12-22 17:39:37

问题


I have some feature files with multiple tags for each scenario. But I would like to run those who has both @a AND @b scenarios. How can I do that?

    tags = {"@a, @b"},  --> this will do @a OR @b scenarios

Thanks.


回答1:


I figured it out: tags = {"@a, @b"}, --> this will do @a OR @b scenarios tags = {"@a", "@b"}, --> this will do @a AND @b scenarios



来源:https://stackoverflow.com/questions/39968139/cucumber-in-java-how-can-i-run-scenarios-with-both-tags-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!