Selenium新驱动程序不能在CI下使用Firefox - Jenkins

时间:2014-04-03 13:22:58

标签: .net firefox selenium jenkins

我已将Firefox升级到版本28.0并将webdriver升级到版本2.41.0以进行硒测试。

我遇到CI运行测试的问题 - Jenkins。当我从nunit gui在服务器上运行测试时,它工作正常。但它从jenkins工作开始,它在jenkins上显示控制台错误:

*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Directory state JSON differs: cache [] state [{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1396513684787,"rdfTime":1394865255000}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\sysctrcs\\AppData\\Local\\Temp\\anonymous.02f2375390b64d4fb1b299d1466373e6.webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1396526194261,"rdfTime":1395922550000}}}]
*** LOG addons.xpi-utils: Opening XPI database C:\Users\sysctrcs\AppData\Local\Temp\anonymous.02f2375390b64d4fb1b299d1466373e6.webdriver-profile\extensions.json
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG DeferredSave/extensions.json: Starting timer
*** LOG DeferredSave/extensions.json: Starting write
*** LOG DeferredSave/extensions.json: Write succeeded
*** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to 15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 648: aUrl is undefined
!!! error running onStopped callback: TypeError: callback is not a function
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done

第一个点表示开始执行测试。

有时候firefox也会冻结并启动很多进程。我没有看到实际发生了什么,因为Jenkins服务设置为在没有桌面视图的模式下工作(因为其他操作需要此选项)。

知道怎么解决吗?

0 个答案:

没有答案