Support of Firefox in e2e tests

This commit is contained in:
Borys Levytskyi
2015-04-12 16:55:55 +03:00
parent cace2f6ebf
commit cf0ba78ee6
5 changed files with 17 additions and 8 deletions

View File

@@ -1 +1 @@
protractor tests\e2e.chrome.conf.js
protractor tests\e2e.chrome.js --params.url='test'

1
e2eall.bat Normal file
View File

@@ -0,0 +1 @@
protractor tests\e2e.all.js

14
tests/e2e.all.js Normal file
View File

@@ -0,0 +1,14 @@
exports.config = {
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
specs: [
'./e2e/cmdDriver.js',
'./e2e/spec.js'
],
multiCapabilities: [{
'browserName': 'chrome'
},{
'browserName': 'firefox'
}]
};

View File

@@ -8,11 +8,5 @@ exports.config = {
capabilities: {
'browserName': 'chrome'
},
chromeOptions: {
binary: "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
args: [],
extensions: []
}
};

View File

@@ -1,7 +1,7 @@
browser.ignoreSynchronization = true;
var By = protractor.By;
var driver = browser.driver;
var appUrl = 'http://localhost:63342/BitwiseCmd/src/';
var appUrl = browser.params.appUrl || 'http://localhost:63342/BitwiseCmd/src/';
var Key = protractor.Key;
describe('launch of application', function() {