自从从 info.cukes 更新到 io.cucumber 以来,我似乎无法导入 raw() 并依次打印存储在功能文件中的 DataTable 的值,有什么想法吗?Scenario: Validate Review CountGiven I access the testimonials homepageThen the reviews count on the testimonials page should be great than the listed total| specified total || 100 |public void test(DataTable total) throws Exception { List<List<String>> data = total.raw(); //the problem System.out.println(data.get(1).get(0));}
1 回答

杨__羊羊
TA贡献1943条经验 获得超7个赞
以下方法在 io.cucumber 中具有相同的目的:
public void test(DataTable total) throws Exception {
List<List<String>> data = total.asLists();
System.out.println(data.get(1).get(0));
}
添加回答
举报
0/150
提交
取消