import cucumber.api.java.en.When; : After importing error message The type When is depreciated .This occur for all the annotataion & in Test Runner file its shows"The type CucumberOptions is deprecated".我已经安装了带有POM的Java 12
cucumber-java :4.7.2
cucumber-junit: 5.5.1
junit:4.12对解决查询的任何建议进行版本化。
发布于 2019-09-18 03:39:43
代替import cucumber.api.CucumberOptions;
使用此import io.cucumber.junit.CucumberOptions;
和@CucumberOptions( monochrome = true,plugin = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })
https://stackoverflow.com/questions/57935146
复制相似问题