Success! Ashwin Gonsalves over at BrowserStack got me headed in the right
direction.
I needed to set baseURL and ensure my server was up and running before
calling the browserStackTunnel task.
my conf file looks like:
// An example configuration file.
var bsConfig = {
'build': 'E2E Tests - ' + new Date().toISOString(),
'project': 'Media Relations',
'debug': true
};
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://hub.browserstack.com/wd/hub',
baseUrl: 'http://localhost:9000',
allScriptsTimeout: 55000,
// Capabilities to be passed to the webdriver instance.
multiCapabilities: [{
'browserName': 'firefox',
'os': 'Windows',
'build': bsConfig.build,
'project': bsConfig.project,
'browserstack.debug': bsConfig.debug,
'browserstack.tunnel': 'true',
'browserstack.user': process.env.BROWSER_STACK_USERNAME,
'browserstack.key': process.env.BROWSER_STACK_ACCESS_KEY
},
{
'browserName': 'IE',
'browser_version': '11.0',
'os': 'Windows',
'build': bsConfig.build,
'project': bsConfig.project,
'browserstack.debug': bsConfig.debug,
'browserstack.tunnel': 'true',
'browserstack.user': process.env.BROWSER_STACK_USERNAME,
'browserstack.key': process.env.BROWSER_STACK_ACCESS_KEY
},
{
'browserName': 'safari',
'os': 'OS X',
'build': bsConfig.build,
'project': bsConfig.project,
'browserstack.debug': bsConfig.debug,
'browserstack.tunnel': 'true',
'browserstack.user': process.env.BROWSER_STACK_USERNAME,
'browserstack.key': process.env.BROWSER_STACK_ACCESS_KEY
},
{
'browserName': 'chrome',
'os': 'Windows',
'build': bsConfig.build,
'project': bsConfig.project,
'browserstack.tunnel': bsConfig.debug,
'browserstack.user': process.env.BROWSER_STACK_USERNAME,
'browserstack.key': process.env.BROWSER_STACK_ACCESS_KEY
},
{
'browserName': 'chrome',
'os': 'OS X',
'os_version': 'Mountain Lion',
'build': bsConfig.build,
'project': bsConfig.project,
'browserstack.debug': bsConfig.debug,
'browserstack.tunnel': 'true',
'browserstack.user': process.env.BROWSER_STACK_USERNAME,
'browserstack.key': process.env.BROWSER_STACK_ACCESS_KEY
}],
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: ['test/e2e/spec/admin/**/*.js'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 90000,
browserNoActivityTimeout: 50000,
captureTimeout: 60000
}
};
And my grunt tasks look like:
grunt.registerTask('Test-e2e-admin-browserstack', [
'sass:dev',
'clean:server',
'concurrent:server',
'connect:e2e',
'linkAssets-dev-admin',
'browserstackTunnel',
'protractor:admin_browserstack_target'
]);
browserstackTunnel: {
options: {
accessKey: process.env.BROWSER_STACK_ACCESS_KEY
},
development: {
options: {
hostname: 'localhost',
port: 9000
}
}
},
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.