Cucumber 使用标记设置黄瓜场景中的优先级

Cucumber 使用标记设置黄瓜场景中的优先级,cucumber,cucumber-java,Cucumber,Cucumber Java,我正在尝试按顺序执行黄瓜场景。我有多个不同区域的功能文件,希望根据以下优先级执行我的方案 功能文件:1 @IE priority=1 Scenario: A new user can place a Contact Lens order with WorldPay Given the Guest user trying to buy a mobile phone When user pay using a card Then the product is add

我正在尝试按顺序执行黄瓜场景。我有多个不同区域的功能文件,希望根据以下优先级执行我的方案

功能文件:1

  @IE  priority=1
  Scenario: A new user can place a Contact Lens order with WorldPay
    Given the Guest user trying to buy a mobile phone
    When user pay using a card
    Then the product is added into the basket

  @IE  priority=2
  Scenario: A returning customer can place a express order
    Given The returning customer trying to buy a mobile phone
    When user pay using a card
    Then the product is added into the basket


  @IE  priority=3
  Scenario: A returning customer can place an order 
    Given The returning customer trying to buy a mobile phone
    When user pay using a card
    Then the product is added into the basket
功能文件:2

  @GB  priority=1
  Scenario: A new user can place a Contact Lens order with WorldPay
    Given the Guest user trying to buy a mobile phone
    When user pay using a card
    Then the product is added into the basket

  @GB  priority=2
  Scenario: A returning customer can place a express order
    Given The returning customer trying to buy a mobile phone
    When user pay using a card
    Then the product is added into the basket


  @GB  priority=3
  Scenario: A returning customer can place an order 
    Given The returning customer trying to buy a mobile phone
    When user pay using a card
    Then the product is added into the basket

我也尝试过cucumber,但无法按顺序执行。

这是否回答了您的问题?