I have configured Protractor and Cucumber to do e2e and bdd tests. I want to configure my environment to run my tests on Internet Explorer. Currently I can run tests with Firefox and Chrome, but I could not with Internet Explorer. I have the following configuration:
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts',
'./e2e/features/*.feature'
],
maxSessions: -1,
directConnect: false,
seleniumAddress: 'http://localhost:4444/wd/hub',
baseUrl: 'http://localhost:4200/',
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
cucumberOpts: {
require: ['./e2e/steps/**/*.ts'],
tags: [],
strict: true,
format: [
'json:reports/results.json'
],
dryRun: false,
compiler: []
},
multiCapabilities: [{
browserName: 'firefox',
'marionette': true
},
{
browserName: 'chrome',
},
{
browserName: 'chrome',
deviceName: 'Apple iPhone 6'
},
{
browserName: 'chrome',
deviceName: 'Apple iPad'
},
{
browserName: 'chrome',
deviceName: 'Samsung Galaxy S4'
},
{
browserName: 'internet explorer',
'platform': 'ANY',
'version': '11'
}
],
plugins: [{
package: 'protractor-multiple-cucumber-html-reporter-plugin',
options: {
// read the options part
automaticallyGenerateReport: true,
removeExistingJsonReportFile: true
}
}],
// Enable TypeScript for the tests
onPrepare() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
}
};
When I run the ng e2e command I get the following error:

Aucun commentaire:
Enregistrer un commentaire