2010-07-12 54 views
1

我使用的是selenium-maven-plugin。 http://mojo.codehaus.org/selenium-maven-plugin/ 我試過在無頭linux與xvfb目標。 下面執行進度...使用硒-maven-plugin的問題

  1. xvfb的
  2. (硒RC服務器)
  3. 運行單元測試
  4. 停止服務器

但是,在3,不工作啓動服務器...

16:34:50,532 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.3-b01 
16:34:50,532 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.18-128.el5xen i386 
16:34:50,541 INFO [org.openqa.selenium.server.SeleniumServer] v2.0 [a2], with Core v2.0 [a2] 
... 
16:34:50,636 INFO [org.openqa.jetty.http.HttpServer] Version Jetty/5.1.x 
16:34:50,637 INFO [org.openqa.jetty.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] 
16:34:50,637 INFO [org.openqa.jetty.util.Container] Started HttpContext[/selenium-server,/selenium-server] 
16:34:50,638 INFO [org.openqa.jetty.util.Container] Started HttpContext[/,/] 
16:34:50,659 INFO [org.openqa.jetty.util.Container] Started [email protected] 
16:34:50,659 INFO [org.openqa.jetty.util.Container] Started HttpContext[/wd,/wd] 
16:34:50,663 INFO [org.openqa.jetty.http.SocketListener] Started SocketListener on 0.0.0.0:4444 
16:34:50,664 INFO [org.openqa.jetty.util.Container] Started [email protected] 
16:34:51,279 INFO [org.openqa.jetty.util.Credential] Checking Resource aliases 
Selenium Server started 
[INFO] [surefire:test {execution: default}] 
... 

------------------------------------------------------- 
T E S T S 
------------------------------------------------------- 
... 
16:34:53,023 INFO [org.openqa.jetty.util.Credential] Checking Resource aliases 
16:34:53,027 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: setSpeed[500, ] on session null 
16:34:53,031 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session null 
... 
16:34:53,040 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 
... 
16:34:53,154 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... 
16:35:02,393 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... 

不超過,不進步s ... 有人知道嗎?

謝謝。

回答

1

打開日誌並設置超時,然後檢查日誌中是否有錯誤。 這個問題可能是由於硒不能找到或打開Firefox。