假设我有两个这样的场景:
Scenario: scenario 1
Given foo
When "meh"
Then the output should be "hello"
Scenario: scenario 2
Given foo
When "blah"
Then the output should be "hello "
我尝试将它们转换为这样的场景大纲
Scenario Outline:
Given foo
When <bar>
Then the output should be <output_string>
Examples:
| bar | output_string |
| meh | hello |
| blah| hello |
事情失败了,因为小黄瓜表格单元格在处理之前已经修剪了它们的空白。有什么方法可以捕获第二个示例中“hello”的尾随空格?