1

我在 cloudbees 上运行 Selenium。在运行期间,我收到以下错误:

Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows: Error: no display specified Error: no display specified Build info: version: '2.25.0', revision: '17482', time: System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.34.7-66.fc13.i686.PAE', java.version: '1.7.0_04' Driver info: driver.version: FirefoxDriver

我错过了什么吗?我怀疑我需要为 Display 设置一些东西,因为错误说no display specified.

4

2 回答 2

2

You can use xvnc (or xfvb) to run a headless virtual graphical environment and start browser (firefox and google-chrome are available on CloudBees build slaves). See http://wiki.cloudbees.com/bin/view/DEV/Testing+GUI+applications

Another option is to subscribe to SauceLabs service and user on-demand browsers.

于 2012-09-18T09:18:29.920 回答
0

FirefoxDriver 需要一个窗口来执行测试。您的测试运行的 linux 机器似乎没有配置 windows。

看看这些链接:

于 2012-09-18T07:16:21.800 回答