简体   繁体   English

黄瓜(在 Java 中):如何仅使用两个标签运行场景

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

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.但我想运行那些同时具有 @a 和 @b 场景的人。 How can I do that?我怎样才能做到这一点?

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

Thanks.谢谢。

我想通了:tags = {"@a, @b"}, --> 这会做@a OR @b 场景tags = {"@a", "@b"}, --> 这会做@ a AND @b 场景

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何运行黄瓜方案跨浏览器? - How can I run cucumber scenarios crossbrowser? 如何告诉黄瓜执行功能文件,同时考虑功能标签和场景标签? - How do I tell cucumber to execute feature files taking into consideration both feature tags as well the scenarios tags? 如何在browserstack黄瓜java功能并行运行? - How can I run in browserstack cucumber java features in parallel? Java Cucumber 说 0 个场景 - Java Cucumber says 0 scenarios Eclipse Java Cucumber调试-如何在Cucumber Maven项目中配置和运行调试? - Eclipse Java Cucumber debug - how can I configure and run debug in cucumber maven project? 使用 Gradle 启动 cucumber android 运行时如何传递标签? - How can I pass tags when starting a cucumber android run using Gradle? 无法使用 TestNG 测试运行器运行单个 Cucumber 场景 - Can't run individual Cucumber scenarios using TestNG test runner 黄瓜方案按顺序运行 - Cucumber Scenarios to be run in Sequential Order 如何使用Maven和小胡瓜并行运行黄瓜jvm测试方案? - How to run cucumber jvm test scenarios in parallel using Maven and courgette? 如何使用Gradle并行运行黄瓜jvm测试场景? - How to run cucumber jvm test scenarios in parallel using Gradle?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM