簡體   English   中英

如何使用為Cucumber JVM中的每個新運行設置的不同數據(語言)多次運行相同的功能文件

[英]How to run the same feature file multiple times with different data (language) set for every new run in Cucumber JVM

我在Cucumber JVM中的情況,我需要運行整個“case.feature”文件, 首先在語言1,語言環境1上設置 5個方案,然后在語言2上運行相同的整個“case.feature” ,Locale 2秒時間 ,有沒有辦法設置它?

例:

  1. 語言1>英語,地區1>英語(美國)
  2. 語言2> Deutsch,Locale 2> Deutsch

在黃瓜中使用場景大綱 ,其中您想要的輸入可以是表格格式,如下所示。

Scenario Outline: eating
  Given there are <start> cucumbers
  When I eat <eat> cucumbers
  Then I should have <left> cucumbers

  Examples:
    | start | eat | left |
    |  12   |  5  |  7   |
    |  20   |  5  |  15  |

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

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