......
And I will see the providerName <providerName> for Providerone
.......
Examples:
| providerName |
| 'St. Edward's School' |
以上方案大纲生成了以下测试存根。它表示黄瓜考虑了单引号内的第一个值。如何在cucmber中声明示例语句,以便将整个值读取为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';
答案 0 :(得分:0)
您需要在步骤中在提供商名称两边加上引号:
And I will see the providerName "<providerName>" for Providerone
然后,examples表不需要任何多余的引号:
Examples:
| providerName |
| St. Edward's School |