当我从功能文件开始时,我有一个简单的3步或4步功能文件。当我运行Runner文件并由JUnit在控制台中生成步骤定义存根方法时,我将其复制并粘贴到步骤定义文件中。我的特征文件是
Scenario Outline: Navigate to Extract History page from the List
page
Given the User logs into the PRAMA Datahub website successfully with
userId "" and passcode "<pacman_passcode>"
Then the User lands on page “<title>”
When status column-cell has value “Ready”
When last run column-cell has “uId” and “some date” populated
Then the User is redirected to the extract page
Examples:
| uId | pacman_passcode | title |
| pnxxxutala | UL#3aLm@Qs%fT#%_@n_!47l | Datahub|
稍后,我添加了一个附加的@then步骤,该步骤如下报告,我将其复制到步骤定义文件中并实现了操作。但是我仍然一次又一次收到相同的消息。为什么它无法识别已添加的@then步骤?
You can implement missing steps with the snippets below:
@then("^the User lands on page “Datahub”$")
public void theUserLandsOnPageDatahub() { .
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
此外,我不明白为什么字符串“ Datahub”没有作为参数传递。
我们非常感谢您的帮助。