[英]How to implement AND OR relation in Cucumber-JVM
我有一個如下所示的功能文件:
Feature: This is a sample feature file
@tag1
Scenario: This is a scenario one.
Given scenario one
When @tag1
Then execute @tag1
@tag2
Scenario: This is a scenario two.
Given scenario two
When @tag2
Then execute @tag2
@tag3
Scenario: This is a scenario three.
Given scenario three
When @tag3
Then execute @tag3
@tag2 @tag3
Scenario: This is a scenario two and three.
Given scenario two and three
When @tag2 @tag3
Then execute @tag2 @tag3
現在我只需要運行@tag1
和@tag2 @tag3
不跑單@tag2
和單@tag3
標簽
那么我怎么能提到@CucumberOptions
上的標簽,只有@tag1
和@tag2 @tag3
場景將運行其他不會運行。
創建一個新標簽來表示2和3的組合,例如@tag2and3
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.