我正在尝试创建一个测试运行器类,但是我得到错误‘类不能被解析为类型’ 早期的JRE默认设置为1.5,但后来我将其更改为12,因为在某些答案中,它是由于JRE而写的。@RunWith(Cucumber.class) features = "C:\\Users\\abhin\\eclipse-workspace\Users\\abhin\\eclipse-workspace\\FreeCRMBDDFramewor
我正在尝试执行一个maven项目,我已经在pom文件中添加了依赖项,并且在maven依赖项中也可以找到cucumber-junit jar。但是我仍然不能导入适当的jar。获取" The import cucumber.api.junit cannot be resolved "。请找到附件中的截图<dependency> <artifactId>cucumber
在使用@RunWith(Cucumber.class)时,我得到了:
Cucumber cannot be resolved to type and class <Cucumber>cannot resolved如果我使用import cucumber.api.CucumberOptions手动导入,则获取Cucumber.api不能解析为该类型。是否有任何依赖项或任何需要添加的外部jars?
enter image description here 错误是“类型不匹配:无法从String[]转换为字符串”。但这是黄瓜网页中的指南: package com.example;
import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class)