【发布时间】:2019-01-10 15:31:19
【问题描述】:
所以我想使用 jBehave 的表格参数功能,但出于某种原因只考虑了第一列。
故事
Given I login using the users $userTable
|url |userRole |
|http://localhost:3000 |Administrator |
|http://localhost:3000 |User |
步骤
@Given("I login using the users $userTable")
public void givenUrlIsAccessedUsingTable
(@Named("userTable")ExamplesTable userTable) {
List<Map<String, String>> rows = userTable.getRows();
for (Map<String, String> row : rows) {
setupPreconditions(row.get("url"), row.get("userRole"));
}
用户列不存在。
我不明白我做错了什么?
【问题讨论】:
标签: java bdd browser-automation jbehave