Does anyone have advice on how to set up Protractor for running tests remotely?
This is my protractor.conf.js configuration:
exports.config = {
chromeOnly: true,
chromeDriver: '../node_modules/.bin/chromedriver',
framework: 'jasmine2',
capabilities: {
'browserName': 'chrome',
shardTestFiles: true,
maxInstances: 3
},
specs: ['../e2e/protractor/spec/*.js'],
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
},
jasmineNodeOpts: {
isVerbose: true
},
onPrepare: function () {
global.dv = browser.driver;
browser.ignoreSynchronization = true;
},
seleniumServerJar: '../node_modules/selenium-server/lib/runner/selenium-server-standalone-2.47.1.jar',
baseUrl: 'www.google.com'
};
And this is my protractor.json configuration:
{
"options": {
"configFile": "./config/protractor.conf.js",
"noColor": false,
"args": {},
"webdriverManagerUpdate": true
},
"e2e": {
"options": {
"keepAlive": false
}
},
"continuous": {
"options": {
"keepAlive": true
}
}
}
Currently, I am executing the tests locally from the ./config directory using the command protractor protractor.conf.js
. I have already configured Selenium Grid with virtual machines and hosts. I also have an IP address that I plan to use for connecting to the host.