Last active
January 12, 2017 16:23
-
-
Save gupta-abhay/c694e3f7e522a3b910c1148d616d4cf2 to your computer and use it in GitHub Desktop.
Protractor Configuration to run on VSO Hosted Agents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var phantomJsPath = require('phantomjs-prebuilt').path; | |
exports.config = { | |
// Specify you want to use jasmine 2.0 | |
framework: 'jasmine', | |
// The address of a running selenium server, not needed when using webdriver manager | |
// Uncomment for local testing | |
// seleniumAddress: 'http://127.0.0.1:4444/wd/hub/', | |
maxSessions: 1, | |
// Capabilities to be passed to the webdriver instance. | |
capabilities: { | |
'browserName': 'phantomjs', | |
'phantomjs.binary.path': phantomJsPath, | |
'phantomjs.ghostdriver.cli.args': ['--loglevel=DEBUG'] | |
}, | |
//In case of Timeout due to Late Loading of app | |
allScriptsTimeout: 1000000, | |
// Add websites base URL here | |
baseUrl: '', | |
// Spec patterns are relative to the current working directly when | |
// protractor is called. | |
specs: ['**/RegressionTests/specs/*.spec.js'], | |
// Options to be passed to Jasmine. | |
jasmineNodeOpts: { | |
showColors: true, | |
defaultTimeoutInterval: 10000000, | |
isVerbose: true, | |
includeStackTrace: true | |
}, | |
onPrepare: function () { | |
var jasmineReporters = require('jasmine-reporters'); | |
var jasmineEnv = jasmine.getEnv(); | |
jasmineEnv.addReporter(new jasmineReporters.JUnitXmlReporter({ | |
consolidateAll: true, | |
savePath: 'TestReports', | |
filePrefix: 'xmloutput' | |
})); | |
} | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment