例外:没有.步骤定义和小黄瓜参数不匹配



尝试搜索,但未找到类似内容。以前有人遇到过这种黄瓜错误吗?

cucumber.runtime.CucumberException: Arity mismatch: Step Definition"ExecutionDownloadSteps。Scala:50' with pattern [^(d+) execution收到的报告消息具有以下属性$]is用0个参数声明。但是,小黄瓜步骤有两个参数

特征文件子句:

  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
}

这个问题已经在cucumber jvm 1.2.0中修复了

最新更新