步骤之间传递参数我有多个示例场景轮廓看起来像这样: Examples:
| country | type | number |
| Poland | An individual | - |
| Poland | Company | 8971660890 |
| Germany | An individual | - |
| France | Company
的子情况我有一个sample.feature文件以下情形定义,场景与使用Examples语法两个子情况: @ninja
Scenario Outline: this is a sample scenario
Given ...
And ...
And ..
When ...
Then ...
Examples:
|
@then('I should be able to able to print with id "{el_id}"')
def step_impl(context, el_id):
if is_element_id_there(context, 'el_id'):
print(get_element_text_id(context, 'el_id'))
else