【问题标题】:The type CucumberOptions is deprecated how can i resolve the issue不推荐使用 CucumberOptions 类型如何解决此问题
【发布时间】:2020-01-16 00:14:12
【问题描述】:
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

版本 任何解决查询的建议..

【问题讨论】:

  • 你读过java文档吗?

标签: java selenium cucumber


【解决方案1】:

而不是 import cucumber.api.CucumberOptions;

使用这个import io.cucumber.junit.CucumberOptions;

还有@CucumberOptions( monochrome = true,plugin = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json" })

【讨论】:

    猜你喜欢
    • 2017-10-07
    • 1970-01-01
    • 1970-01-01
    • 2020-10-23
    • 1970-01-01
    • 2019-02-07
    • 2020-03-12
    • 2020-08-24
    • 1970-01-01
    相关资源
    最近更新 更多