我们如何知道在BDD方法中运行SeleniumJava需要哪些jar文件?
我从一些教程网站了解到,如果我们想将Cucumber集成到Selenium Java项目中,我们需要下载所有这些jar文件并将其添加到项目中:我们如何知道在BDD方法中运行SeleniumJava需要哪些jar文件?,java,selenium,jar,cucumber,Java,Selenium,Jar,Cucumber,我从一些教程网站了解到,如果我们想将Cucumber集成到Selenium Java项目中,我们需要下载所有这些jar文件并将其添加到项目中: 黄瓜核 黄瓜爪哇 黄瓜刺柏 黄瓜汁 黄瓜报道 小黄瓜 朱尼特 莫基托所有 科贝图拉 我的问题是,有没有官方网站向我们展示需要哪些jar文件?就像下载部分在一个zip包中下载所有需要的jar文件一样,所以我们不会错过任何重要的jar 我登记了,没有下载部分 在这种情况下,有太多的文件可供下载,如果我们不知道需要哪一个,那么我们可能会迷路。我们怎么知道我们需
在这种情况下,有太多的文件可供下载,如果我们不知道需要哪一个,那么我们可能会迷路。我们怎么知道我们需要什么罐子?非常感谢 这取决于代码中引用的所有库是什么 要使用junit运行基本cucumber测试,您需要以下依赖项 黄瓜爪哇
<parent>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.2.5</version>
</parent>
<artifactId>cucumber-java</artifactId>
<packaging>jar</packaging>
<name>Cucumber-JVM: Java</name>
<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
朱尼特
黄瓜刺柏
硒爪哇
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.4</version>
</dependency>
</dependencies>
org.seleniumhq.selenium
cucumber java将加载上面提到的大多数依赖项,无需再次编写它们
下面是CumberJava的内部依赖项列表
<parent>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.2.5</version>
</parent>
<artifactId>cucumber-java</artifactId>
<packaging>jar</packaging>
<name>Cucumber-JVM: Java</name>
<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
信息杯
黄瓜
../pom.xml
1.2.5
黄瓜爪哇
罐子
JVM:Java
信息杯
黄瓜核
信息杯
黄瓜汁
假如
信息杯
小黄瓜
假如
信息杯
黄瓜刺柏
测试
朱尼特
朱尼特
测试
org.mockito
莫基托所有
测试
net.sourceforge.cobertura
科贝图拉
测试
如果您有任何疑问,请告诉我,这取决于您在代码中引用的所有库
要使用junit运行基本cucumber测试,您需要以下依赖项
黄瓜爪哇
<parent>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.2.5</version>
</parent>
<artifactId>cucumber-java</artifactId>
<packaging>jar</packaging>
<name>Cucumber-JVM: Java</name>
<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
朱尼特
黄瓜刺柏
硒爪哇
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.4</version>
</dependency>
</dependencies>
org.seleniumhq.selenium
cucumber java将加载上面提到的大多数依赖项,无需再次编写它们
下面是CumberJava的内部依赖项列表
<parent>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm</artifactId>
<relativePath>../pom.xml</relativePath>
<version>1.2.5</version>
</parent>
<artifactId>cucumber-java</artifactId>
<packaging>jar</packaging>
<name>Cucumber-JVM: Java</name>
<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-core</artifactId>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>gherkin</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
信息杯
黄瓜
../pom.xml
1.2.5
黄瓜爪哇
罐子
JVM:Java
信息杯
黄瓜核
信息杯
黄瓜汁
假如
信息杯
小黄瓜
假如
信息杯
黄瓜刺柏
测试
朱尼特
朱尼特
测试
org.mockito
莫基托所有
测试
net.sourceforge.cobertura
科贝图拉
测试
如果您有任何疑问,请告诉我