2011-10-17 63 views
2

我想在ubuntu上使用maven運行硒測試。我有以下配置爲maven:在Ubuntu上運行硒xvfb 11.04

<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。但不知道是否需要設置更多的東西。任何人都可以向我展示一些光。

感謝

回答

0

我有一個配置,它幾乎完全被與硒的Maven的插件的1.1版成功地運行相同。也許你可以測試這個舊版本。你收到什麼錯誤信息?