【发布时间】:2019-11-25 22:57:58
【问题描述】:
......
And I will see the providerName <providerName> for Providerone
.......
Examples:
| providerName |
| 'St. Edward's School' |
上面的场景大纲生成了下面的测试存根。它描述了黄瓜考虑了单引号中的第一个值。如何在 cucumber 中声明示例语句,以便将整个值读取为 1 个字符串
When('I will see the providerName {string}s School\' for Providerone', function (string) {
// Write code here that turns the phrase above into concrete actions
return 'pending';
【问题讨论】:
-
尝试使用双引号 -
"St. Edward's School"或转义单引号 -'St. Edward\'s School'
标签: cucumber