如何解决找不到黄瓜.api.junit.Cucumber的cucumber.api.junit.Cucumberclass文件
我正在学习如何自动化测试,并创建了RunTest类来使用Cucumber运行我的方案,但是IDEA向我显示了此消息:
Error:(7,30) java: cannot access cucumber.api.junit.Cucumber
class file for cucumber.api.junit.Cucumber not found
我添加了这两个依赖项:
implementation 'io.cucumber:cucumber-java:6.6.0'
testImplementation 'io.cucumber:cucumber-junit:6.6.0'
它不显示编译错误,仅在运行测试时才会显示错误消息。
This is the message and the runner
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。