2011-03-01 149 views
0

我想用xvfb在debian服務器上運行測試html套件。 過程中停留在「啓動Firefox」:硒測試卡住

$ java -jar sel/selenium-server.jar -htmlSuite *firefox http://www.google.com ./ts1.html ./tr1.html 
14:35:41.996 INFO - Java: Sun Microsystems Inc. 11.2-b01 
14:35:41.997 INFO - OS: Linux 2.6.18-xen i386 
14:35:42.004 INFO - v1.0.1 [2696], with Core [email protected]@ [@[email protected]] 
14:35:42.076 INFO - Version Jetty/5.1.x 
14:35:42.077 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver] 
14:35:42.077 INFO - Started HttpContext[/selenium-server,/selenium-server] 
14:35:42.078 INFO - Started HttpContext[/,/] 
14:35:42.081 INFO - Started SocketListener on 0.0.0.0:4444 
14:35:42.081 INFO - Started [email protected] 
14:35:42.165 INFO - Preparing Firefox profile... 
14:35:45.832 INFO - Launching Firefox... 

在這個時候,我可以創造我的XVFB顯示的屏幕截圖,我可以看到瀏覽器窗口,但它是非常差...:

http://imgur.com/AvWpe.png

與同硒的server.jar同一測試套件完美的作品我的Ubuntu桌面上...

沒有人知道我在做什麼錯?

感謝, GG

回答

0

窗口。這是一個權限問題。試圖運行硒測試的用戶沒有足夠的權限。