Maven 创建步骤定义选项在IDEA for Cumber中不可见
我为简单的测试用例定义了一个小黄瓜步骤,如下所示。但是当我将鼠标悬停在一个步骤上时,我看不到“创建步骤定义”选项 功能:这是一个测试功能 场景:访问网页 给定:用户在谷歌上 和:用户键入搜索词作为测试 然后:页面应该加载 Pom文件:-Maven 创建步骤定义选项在IDEA for Cumber中不可见,maven,intellij-idea,cucumber,gherkin,Maven,Intellij Idea,Cucumber,Gherkin,我为简单的测试用例定义了一个小黄瓜步骤,如下所示。但是当我将鼠标悬停在一个步骤上时,我看不到“创建步骤定义”选项 功能:这是一个测试功能 场景:访问网页 给定:用户在谷歌上 和:用户键入搜索词作为测试 然后:页面应该加载 Pom文件:- <?xml version="1.0" encoding="UTF-8"?> http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 <groupId>cucumberPOC</
<?xml version="1.0" encoding="UTF-8"?>
http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
<groupId>cucumberPOC</groupId>
<artifactId>cucumberTests</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.3.1</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
<version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/gherkin -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<version>2.12.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-java -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java8</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
</dependencies>
黄瓜
黄瓜试验
1.0-快照
朱尼特
朱尼特
4.12
org.seleniumhq.selenium
硒爪哇
3.3.1
信息杯
黄瓜刺柏
1.2.5
信息杯
黄瓜爪哇
1.2.5
信息杯
黄瓜核
1.2.5
信息杯
小黄瓜
2.12.2
信息杯
黄瓜-java8
1.2.5
测试
你能用一个较小的例子来说明这一点吗?你的项目设置可能有问题 我将克隆Cucumber团队提供的入门项目: 使用Maven构建它以确保它工作。使用IntelliJ IDEA打开它,看看您看到的错误是否仍然存在。我希望它消失
通过一个工作示例,将其逐步扩展到您真正想做的事情。扩展工作的东西要比修复损坏的东西容易得多。您能用一个较小的示例来实现这一点吗?您的项目设置可能有问题 我将克隆Cucumber团队提供的入门项目: 使用Maven构建它以确保它工作。使用IntelliJ IDEA打开它,看看您看到的错误是否仍然存在。我希望它消失
通过一个工作示例,将其逐步扩展到您真正想要做的事情。扩展有效的东西比修复损坏的东西容易得多。问题在我在Intellij IDEA中安装了“Cumber plugin for java”后得到了修复。问题在我在Intellij IDEA中安装了“Cumber plugin for java”后得到了修复