I'm having some problem to run test in IE, i try it with just IE or specification with IE version and so on, but always after try to run it i get an error:
My code looks like:
var env = require('./test/environment.js');
var HtmlReporter = require('protractor-html-screenshot-reporter');
/*
* var reporter = new HtmlReporter({
baseDirectory: './protractor-result', // a location to store screen shots.
docTitle: 'Protractor Reporter',
docName: 'protractor-demo-tests-report.html'
});
* */
exports.config = {
allScriptsTimeout: env.allScriptsTimeout,
seleniumAddress: env.seleniumAddress,
capabilities : env.capabilities,
capabilities: {
//'browserName': 'firefox'
'browserName': 'internet explorer',
'platform': 'ANY',
'version': '11'
},
baseUrl: env.baseUrl,
framework: 'jasmine',
jasmineNodeOpts : env.jasmineNodeOpts,
defaultTimeoutInterval : env.defaultTimeoutInterval,
specs: [
'test/angular/e2e/specs/AllInOne.js'
//'test/angular/e2e/specs/LoginPageSpec.js',
//'test/angular/e2e/specs/LoginPageSpec.js',
],
onPrepare: function() {
// implicit and page load timeouts
browser.manage().timeouts().pageLoadTimeout(40000);
browser.manage().timeouts().implicitlyWait(25000);
// for non-angular page
browser.ignoreSynchronization = true;
// Configure jasmine reporter
//jasmine.getEnv().addReporter(reporter);
require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter('./protractor-result', true, true));
jasmine.getEnv().addReporter(new HtmlReporter({baseDirectory: 'protractor-result'}));
// sign in before all tests
}
};
This is basicly my first E2E testing and other browsers works fine (tested chrome and firefox), so please any hint which can help?
Aucun commentaire:
Enregistrer un commentaire