Java 在ubuntu 11.04上运行selenium xvfb
我试图在ubuntu上使用maven运行selenium测试。我对maven有以下配置:Java 在ubuntu 11.04上运行selenium xvfb,java,selenium,ubuntu-11.04,Java,Selenium,Ubuntu 11.04,我试图在ubuntu上使用maven运行selenium测试。我对maven有以下配置: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>selenium-maven-plugin</artifactId> <version>2.0</version> <executions>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<id>xvfb</id>
<phase>pre-integration-test</phase>
<goals>
<goal>xvfb</goal>
</goals>
</execution>
<execution>
<id>start-selenium</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<background>true</background>
<port>9876</port>
</configuration>
</execution>
</executions>
</plugin>
org.codehaus.mojo
selenium maven插件
2
xvfb
预集成测试
xvfb
启动硒
预集成测试
启动服务器
真的
9876
我已经从synaptic manager安装了xvfb。但不确定我是否需要设置更多的东西。谁能给我点灯光吗
谢谢我有一个与selenium maven插件1.1版成功运行的配置几乎完全相同的配置。也许你可以测试一下这个旧版本。您收到了什么错误消息?我有一个与selenium maven插件1.1版成功运行的配置几乎完全相同的配置。也许你可以测试一下这个旧版本。您收到了什么错误消息