Hi folks, hoping someone can help me figure this out. I have protractor and
protractor webdriver working nicely from grunt on my local machine. (Grunt
file extracts posted below) The protractor base url is set to
localhost:9001, and on my local machine all goes well. Grunt test runs the
karma tests, fires up the selenium webdriver, and then runs the protractor
tests and exits as "OK".
In the jenkins workspace however (whether fired by jenkins or manually in
the workspace) it seems to be ok and then hangs. For debugging I tried
taking out the protractor webdriver task and manually turning on webdriver
on the CI server, and in that context, instead of hanging on firing up
protractor, it hangs on the actual test when the browser is trying to hit
the site. I assume I've got something screwed up in my selenium and/or npm
install situation. It's running on ubuntu server.
If anyone can give me tips on how to figure this out, that would be great!
iain
Jenkins script:
export npm_config_prefix=.npm/
export PATH=.npm/bin:$PATH
npm install -g bower grunt-cli
bower install
npm install
grunt test
(gruntfile excerpts)
...
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
grunt.loadNpmTasks("grunt-protractor-runner");
grunt.loadNpmTasks("grunt-protractor-webdriver");
...
// unit testing with karma
karma: {
unit: {
configFile: 'test/karma.conf.js',
singleRun: true
}
},
protractor_webdriver: {
start: {
options: {
//path: '/path/to/',
command: 'webdriver-manager start',
},
},
},
// e2e testing with protractor
protractor: {
options: {
// for some reason this should be true even thought is shuts down
keepAlive: true,
configFile: "test/protractor.conf.js"
},
run: {}
}
--
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.