尝试搜索但没有找到类似的东西。有没有人遇到过这个黄瓜错误?
cucumber.runtime.CucumberException:Arity不匹配:步骤定义 ' ExecutionDownloadSteps.scala:50'用模式[^(\ d +)执行 收到的报告消息具有以下属性$] 用0参数声明。但是,小黄瓜步骤有2个参数
特征文件子句:
When 5 execution report messages are received with the following attributes
| MsgSeqNum | ExecTransType | PossDupFlag | TransactTime |
| 111 | 0 | | 20140301-00:00:11.001 |
步骤定义:
When( """^(\d+) execution report messages are received with the following attributes$""") {
(numberOfExecutions: Int, dataTable: DataTable) =>
//some codes
}
答案 0 :(得分:0)
这已经在黄瓜jvm 1.2.0中修复了