我正试图在Intellij中用Java建立一个Selenium + Cucumber项目(我是Java的初学者)。这是我使用Cucumber JUnit运行程序的类:
package runtest;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions (
features = "C:\\Users\\my-feature.feature",
)
public class RunTest {
}
我收到这些错误:
Error:(8, 1) java: annotation @org.junit.runner.RunWith is missing default values for elements annotationType,<init>
Error:(8, 2) java: org.junit.runner.RunWith is not an annotation type
我不知道如何解决这个或正在发生的事情。请帮忙。