簡體   English   中英

如何在Cucumber-JVM中實現AND OR關系

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM