Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 多用户测试的量角器e2e测试最大限值_Angularjs_Protractor - Fatal编程技术网

Angularjs 多用户测试的量角器e2e测试最大限值

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.

我正在使用量角器为我的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.
    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
限制实例时(它一次打开一个浏览器)。它正在为上一个规范生成报告。我们可以运行的最大实例数是多少