gpt4 book ai didi

java - CucumberOptions 类型已弃用 我该如何解决该问题

转载 作者:行者123 更新时间:2023-11-29 04:06:59 26 4
gpt4 key购买 nike

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

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

最佳答案

代替 导入 cucumber.api.CucumberOptions;

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

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

关于java - CucumberOptions 类型已弃用 我该如何解决该问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57935146/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com