我得到了柏树错误步骤实现,因为:给定的用户签出了角色TestRole和auth testAut的用户。
特征文件:
Feature: Initial Test
Scenario Outline: Test file to test feature files.
Given User checks out user with role <role> and auth <aut>
And User visit home page
Then User click sign in link on the top right of the page
Examples:
| role | aut |
| TestRole | testAut |步骤定义文件:
Given('User checks out user with role {string} and auth {string}', (role,aut) => {
cy.log('Inside check out user step!!!!!')
})发布于 2020-11-11 13:35:35
{ string }是引号字符串的黄瓜表达式。因此,您可能需要在您的场景中编写
Given User checks out user with role "<role>" and auth "<aut>"你能试试吗?
另一种选择是将引号包含在表中,而不是:
Examples:
| role | aut |
| TestRole | "testAut" |https://stackoverflow.com/questions/64775612
复制相似问题