I have Scenario outline with multiple examples looking something like this:
Examples:
| country | type | number |
| Poland | An individual | - |
| Poland | Company | 8971660890 |
| Germany | An individual | - |
| France | Company | 92511490856 |
I want to use this examples and pass it to one of step definitions in order to create conditional expressions, for example:
@step(check_sth)
def step_imp(country, type, number):
if county == Poland:
do sth
elif type == individual:
do other thing
is it possible in bahave?
Aucun commentaire:
Enregistrer un commentaire