Angularjs 多用户测试的量角器e2e测试最大限值
我正在使用量角器为我的Angular应用程序编写e2e测试用例。我正在尝试生成HTML报告和多用户测试。这是我的 conf.js:Angularjs 多用户测试的量角器e2e测试最大限值,angularjs,protractor,Angularjs,Protractor,我正在使用量角器为我的Angular应用程序编写e2e测试用例。我正在尝试生成HTML报告和多用户测试。这是我的 conf.js: var HtmlReporter = require('protractor-html-screenshot-reporter'); var reporter=new HtmlReporter({ baseDirectory: '/test/e2e/JasmineReporter', // a location to store screen shots.
var HtmlReporter = require('protractor-html-screenshot-reporter');
var reporter=new HtmlReporter({
baseDirectory: '/test/e2e/JasmineReporter', // a location to store screen shots.
docTitle: 'Report',
docName: 'protractor-demo-tests-report.html'
});
exports.config = {
seleniumAddress: 'http://localhost:4441/wd/hub',
multiCapabilities: [{
browserName: 'chrome',
acceptSslCerts: true,
trustAllSSLCertificates: true,
specs: ['first_spec.js']
}, {
browserName: 'chrome',
acceptSslCerts: true,
trustAllSSLCertificates: true,
specs: ['second_spec.js']
}],
maxSessions: 1, //Limits max number of instances
onPrepare: function() {
jasmine.getEnv().addReporter(reporter);
},
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 50000
}
};
现在,它运行良好。它正在为两个规范生成HTML报告。
但是当我使用maxSessions:1
限制实例时(它一次打开一个浏览器)。它正在为上一个规范生成报告。我们可以运行的最大实例数是多少