cucumber(在Java中):我如何只使用两个标签运行场景 [英] cucumber (in Java): How can I run scenarios with both tags only
本文介绍了cucumber(在Java中):我如何只使用两个标签运行场景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些功能文件,每个场景有多个标签。但我想运行那些有@a和@b场景的人。
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
谢谢。
推荐答案
我想出了:
tags = {@a,@b}, - >这将做@a OR @b场景
tags = {@a,@b}, - >这将执行@a AND @b情境
这篇关于cucumber(在Java中):我如何只使用两个标签运行场景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文