在inteliji中,我尝试从小黄瓜文件中生成步骤。
import cucumber.api.PendingException;
public class LoginStep {
@cucumber.api.java.en.Then("^I should see userform page$")
public void iShouldSeeUserformPage() throws Throwable {
throw new PendingException();
}
}在它抱怨的行@cucumber.api.java.en.Then中
Cannot resolve symbol 'java'这是我的pom.xml:
<dependencies>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-junit -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
</dependency>
</dependencies>我怎么解决它呢?
发布于 2017-01-31 04:01:24
您应该添加cucumber-java依赖项。
<dependencies>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-junit -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
</dependency>
</dependencies>https://stackoverflow.com/questions/41944255
复制相似问题