【发布时间】:2011-10-17 16:02:20
【问题描述】:
我正在尝试在 ubuntu 上使用 maven 运行 selenium 测试。我对 Maven 有以下配置:
<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>
我已经从突触管理器安装了 xvfb。但不确定我是否需要设置更多东西。任何人都可以请给我一些光。
谢谢
【问题讨论】:
标签: java selenium ubuntu-11.04