【发布时间】:2017-08-26 22:16:49
【问题描述】:
当我在命令行发出量角器命令时,配置如下:
'use strict';
// Protractor configuration
var config = {
specs: ['test/e2e/*spec.js']
};
if (process.env.TRAVIS) {
config.capabilities = {
browserName: 'firefox'
};
}
exports.config = config;
我明白了:
$ protractor
[12:22:23] I/launcher - Running 1 instances of WebDriver
[12:22:23] I/local - Starting selenium standalone server...
[12:22:24] I/local - Selenium standalone server started at http://10.0.0.242:55414/wd/hub
Started
.
1 spec, 0 failures
Finished in 8.223 seconds
[12:22:33] I/local - Shutting down selenium standalone server.
[12:22:33] I/launcher - 0 instance(s) of WebDriver still running
[12:22:33] I/launcher - chrome #01 passed
问题是启动“selenium 独立服务器”需要 5 秒以上。
两个问题 - (1) 我需要这台服务器来运行测试吗?以及(2),有没有办法在后台运行服务器而不必每次都重新启动服务器?
【问题讨论】:
标签: angularjs node.js selenium protractor