I have to test the creation of a product in different countries by a BDD approach. I used cucumber scenario outline.
I have to mention that currency is not mandatory for the creation, it is linked to the country.
I wrote the following test:
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 |
A colleague wrote this one:
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 |
What is the best practice ?
Thanks in advance.