私は、BDDアプローチによって、異なる国の製品の作成をテストする必要があります。私はキュウリのシナリオの概要を使用しました。キュウリのベストプラクティス:サンプル表に列を追加するか、手順を追加しますか?
私は通貨が作成に必須ではなく、国にリンクされていることを言及する必要があります。
私は次のテストを書いた:
Scenario outline: I am able to create a product in different countries
Given a product that costs <price> in <country>
When I create this product
Then the price is <price>
And the currency is <currency>
Examples:
| country | price | currency |
| England | 3 | Pound |
| Spain | 32 | Euro |
同僚がこれを書いた:
Scenario outline: I am able to create a product in different countries
Given a product that costs <price> in <country>
When I create this product
Then the price is <price>
And the currency is Pound if country is England
And the currency is Euro if country is Spain
Examples:
| country | price |
| England | 3 |
| Spain | 32 |
のベストプラクティスは何ですか?
ありがとうございます。
ありがとうdiabolist。 – VIJ