You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem appears in Linux more often than Windows.
cucumber-jvm.version=1.1.8
Feature file clause:
Then the email contents will list the failed and still-processing transaction references with the following trade details
|TradeDetails||12345-FAIL-PCHKFailed due to invalid party |
Step definition:
Then("""^the email contents will list the failed and still-processing transaction references with the following trade details$""") { (tradeDetails: DataTable) =>valexpectedResult= tradeDetails.asMaps(classOf[String],classOf[String]).map(_.get("Trade Details")).toList
//some simple assertion
}
Error thrown:
cucumber.runtime.CucumberException: Arity mismatch: Step Definition 'ThirdPartyClearingFileDownloadSteps.scala:56' with pattern [^the email contents will list the failed and still-processing transaction references with the following trade details$] is declared with 0 parameters. However, the gherkin step has 1 arguments [Table:[[Trade Details], [12345 - FAIL - PCHK Failed due to invalid party]]].
10:14:00 Step: And the email contents will list the failed and still-processing transaction references with the following trade details
10:14:00 at cucumber.runtime.StepDefinitionMatch.arityMismatch(StepDefinitionMatch.java:100)
10:14:00 at cucumber.runtime.StepDefinitionMatch.transformedArgs(StepDefinitionMatch.java:60)
10:14:00 at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)
10:14:00 at cucumber.runtime.Runtime.runStep(Runtime.java:298)
10:14:00 at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
10:14:00 at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
10:14:00 at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:48)
We think the .head method returns wrong function sometimes and cause the error. Unfortunately we cannot figure out how to fix this. Any help will be appreciated=)
The text was updated successfully, but these errors were encountered:
This problem appears in Linux more often than Windows.
cucumber-jvm.version=1.1.8
Feature file clause:
Step definition:
Error thrown:
cucumber.runtime.CucumberException: Arity mismatch: Step Definition 'ThirdPartyClearingFileDownloadSteps.scala:56' with pattern [^the email contents will list the failed and still-processing transaction references with the following trade details$] is declared with 0 parameters. However, the gherkin step has 1 arguments [Table:[[Trade Details], [12345 - FAIL - PCHK Failed due to invalid party]]].
10:14:00 Step: And the email contents will list the failed and still-processing transaction references with the following trade details
10:14:00 at cucumber.runtime.StepDefinitionMatch.arityMismatch(StepDefinitionMatch.java:100)
10:14:00 at cucumber.runtime.StepDefinitionMatch.transformedArgs(StepDefinitionMatch.java:60)
10:14:00 at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)
10:14:00 at cucumber.runtime.Runtime.runStep(Runtime.java:298)
10:14:00 at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
10:14:00 at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
10:14:00 at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:48)
Investigation:
We think the .head method returns wrong function sometimes and cause the error. Unfortunately we cannot figure out how to fix this. Any help will be appreciated=)
The text was updated successfully, but these errors were encountered: