}}
Would anyone suggest what's wrong? I've noticed that if there are 2 Scenario Outline in one feature file, the second scenario outline is failing with the above error.
Versions:
Serenity-Core: 1.0.35
Serenity-Cucumber: 1.0.8
JUnit version: 4.11
Intellij IDEA:14.0.3
Thanks in advance!
Andy
I've figured out why I got the above exception, after hours of debugging I caught the root cause of exception(cucumber.runtime.CucumberException: Expected step: "I want to purchase <amount> widgets" got step: "I want to purchase 6 widgets");
So, a little breakdown, there is a method in "SerenityReporter" class => private synchronized void generateReports() {getReportService().generateReportsFor(getAllTestOutcomes());}
If we go into the getReportService, then into getDefaultReporters(), then into FormatConfiguration(EnvironmentVariables environmentVariables), we'll see the Splitter class => Splitter.on(",").trimResults(), this Splitter is not available in 13.0, but in higher versions of guava, and in the debugging I got the MethodNotFoundException, although the IDE console was not generous to cry out this exception. After I upgraded to the version guava 18.0 all tests executed properly without the exception mentioned above.
So, what is the lesson learned? To pay rigorous attention to the POM dependency management of my project.
That's it.
Andy