尝试搜索但没有找到类似的东西。有没有人遇到过这个黄瓜错误?
cucumber.runtime.CucumberException: Arity mismatch: Step Definition 'ExecutionDownloadSteps.scala:50' with pattern [^(\d+) execution report messages are received with the following attributes$] 声明为 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
}