我有一个场景大纲:specflow中的部分,我想在example:section中提供数据 问题是我有两个参数,一个在Given,另一个在Then ie。
Given: I have a value <input1>
And: trigger
Then: the result should be <input2>
并且两个输入的值都不相同,那么我应该如何将这些值放在表中?
|input1|input2|
|one |one |
|two |two |
|three |
|four |
我尝试在谷歌搜索但没有找到任何解决方案。
答案 0 :(得分:0)
这不起作用吗?我不确定我明白这个问题是什么
Scenario Outline:
Given I have a value <input>
And trigger
Then the result should be <expectedResult>
Examples:
|input | expectedResult|
|one | 1 |
|two | 2 |
|three | 3 |
|four | 4 |