小编Evo*_*olk的帖子

如何让karma webdriver启动器使用我的selenium服务器/网格

任何人都可以帮助解决阻止Karma javascript测试运行器连接和使用我的selenium网格/服务器的问题?

我有一个成功运行的selenium网格环境,我已经使用python selenium绑定进行Web应用程序系统测试.我目前正在运行Selenium Server v.2.34.0,它有4个独立的网格节点连接到它.

我还想利用和重用这个资源来针对多个浏览器进行javascript测试.具体来说,我正在使用基于node.js的Karma测试运行器执行基于jasmine的单元测试.我已经安装了" karma-webdriver-launcher "插件.我可以运行我的javascript测试与karma本地产生firefox,chrome或IE浏览器就好了.

当我尝试使用远程selenium服务器从池/服务器场使用浏览器时,它无法找到浏览器,我收到以下警告输出:

DEBUG [config]: autoWatch set to false, because of singleRun
DEBUG [plugin]: Loading karma-* from C:\nodedebug\itpt\node_modules
DEBUG [plugin]: Loading plugin C:\nodedebug\itpt\node_modules/karma-chrome-launcher.
DEBUG [plugin]: Loading plugin C:\nodedebug\itpt\node_modules/karma-firefox-launcher.
DEBUG [plugin]: Loading plugin C:\nodedebug\itpt\node_modules/karma-html-reporter.
DEBUG [plugin]: Loading plugin C:\nodedebug\itpt\node_modules/karma-ie-launcher.
DEBUG [plugin]: Loading plugin C:\nodedebug\itpt\node_modules/karma-jasmine.
DEBUG [plugin]: Loading plugin C:\nodedebug\itpt\node_modules/karma-phantomjs-launcher.
DEBUG [plugin]: Loading plugin C:\nodedebug\itpt\node_modules/karma-typescript-preprocessor.
DEBUG [plugin]: Loading plugin C:\nodedebug\itpt\node_modules/karma-webdriver-launcher.
DEBUG [plugin]: Loading inlined plugin (defining launcher:firefox).
INFO [karma]: Karma v0.12.16 server started at http://localhost:9876/ …
Run Code Online (Sandbox Code Playgroud)

javascript selenium selenium-grid node.js karma-runner

6
推荐指数
1
解决办法
9850
查看次数