cypress cucumber error Step implementation missing for: Given User 检出角色 TestRole 和 auth testAut 的用户
cypress cucumber error Step implementation missing for: Given User checks out user with role TestRole and auth testAut
我收到 cypress 错误 Step implementation missing for:
给定用户签出具有角色 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!!!!!')
})
{string} 是 quoted 字符串的黄瓜表达式。所以你可能必须在你的场景中写
Given User checks out user with role "<role>" and auth "<aut>"
你能试试吗?
另一种选择是在 table 中包含引号:
Examples:
| role | aut |
| TestRole | "testAut" |
我收到 cypress 错误 Step implementation missing for: 给定用户签出具有角色 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!!!!!')
})
{string} 是 quoted 字符串的黄瓜表达式。所以你可能必须在你的场景中写
Given User checks out user with role "<role>" and auth "<aut>"
你能试试吗?
另一种选择是在 table 中包含引号:
Examples:
| role | aut |
| TestRole | "testAut" |