作为Maven任务启动selenium服务器时遇到问题
我使用的是Maven 3.0.3。作为预集成测试阶段的一部分,我在启动Selenium服务器时遇到了问题,因为Maven无法找到依赖项。我已经包括了这个作为Maven任务启动selenium服务器时遇到问题,maven,selenium,Maven,Selenium,我使用的是Maven 3.0.3。作为预集成测试阶段的一部分,我在启动Selenium服务器时遇到了问题,因为Maven无法找到依赖项。我已经包括了这个 <dependency> <groupId>org.openqa.selenium.server</groupId> <artifactId>selenium-server</artifactId> <version&
<dependency>
<groupId>org.openqa.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
<version>0.9.2</version>
<classifier>standalone</classifier>
</dependency>
是否有人知道我可以从哪里获得Selenium coreless JAR文件org.openqa.Selenium.server.Selenium-server-coreless,版本0.9.2(或者,知道我如何启动Selenium服务器)?这是我用来启动Selenium服务器的插件
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<browser>*firefox</browser>
<suite>src/test/resources/selenium-test-suite.html</suite>
<startURL>http://localhost:${tomcat.servlet.port}/${project.artifactId}</startURL>
</configuration>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<background>true</background>
<logOutput>true</logOutput>
</configuration>
</execution>
...
</executions>
org.codehaus.mojo
selenium maven插件
1.1
*火狐
src/test/resources/selenium-test-suite.html
http://localhost:${tomcat.servlet.port}/${project.artifactId}
开始
预集成测试
启动服务器
真的
真的
...
谢谢,-DaveDave,你已经问了这个问题并接受了答案。提供的解决方案出了问题?如果是,请在原始消息中进行注释。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<browser>*firefox</browser>
<suite>src/test/resources/selenium-test-suite.html</suite>
<startURL>http://localhost:${tomcat.servlet.port}/${project.artifactId}</startURL>
</configuration>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<background>true</background>
<logOutput>true</logOutput>
</configuration>
</execution>
...
</executions>