Closed jackygrahamez closed 10 years ago
Did you try the changelog: https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/CHANGELOG.md
I updated the seed to Protractor 0.16.1 so you'll need to update accordingly with:
./node_modules/protractor/bin/webdriver-manager update
You may also need to (first) run npm install && bower install
Sorry if that was unclear; we're working on a better versioning system where Grunt will fail / show a warning if dependencies are out of date to make this easier.
If that's NOT the problem let me know and we can debug further!
I did not see a selenium folder in the root project directory. This is what I tried and I failed. :-(
$ find . -name "selenium" -print
./node_modules/protractor/selenium
$ rm -rf node_modules/protractor/selenium/
$ ./node_modules/protractor/bin/webdriver-manager update
Updating selenium standalone
downloading https://selenium.googlecode.com/files/selenium-server-standalone-2.39.0.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.8/chromedriver_mac32.zip...
chromedriver_2.8.zip downloaded to /Users/jgs/Projects/learn-mean-seed/node_modules/protractor/selenium/chromedriver_2.8.zip
selenium-server-standalone-2.39.0.jar downloaded to /Users/jgs/Projects/learn-mean-seed/node_modules/protractor/selenium/selenium-server-standalone-2.39.0.jar
$ grunt lessons-dev
init
configFile: ./app/configs/config.json
Running "lessons-dev" task
Running "lessons-config" task
init
LESSONS grunt option
configFile: ./app/configs/config.json
Running "http:seleniumShutdown" (http) task
>> 0
Running "shell:seleniumStartup" (shell) task
Running "http:nodeShutdown" (http) task
>> 0
Running "shell:nodeServer" (shell) task
Running "buildfiles" task
WARNING: undefined: filePaths.testsLessons and/or filePaths.testsLessons.testE2E
buildfiles forming configPaths:
SKIPPED files (due to ifOpts):
1. key: noPrefixTest
2. key: karmaUnitCoverageNoLessons
3. key: testProtractor
buildfiles writing files (if multiple files go to the same destination, the LAST one is the src that will have been used):
SKIPPED files (due to ifOpts):
1. src: app/src/index-prod-grunt.html
2. src: app/src/index-phonegap-grunt.html
3. src: app/src/index-triggerio-grunt.html
WRITTEN files:
1. app/src/index.html src: app/src/index-grunt.html
2. app/src/common/less/_base.less src: app/src/common/less/_base-grunt.less
3. app/src/modules/services/config/config.js src: app/src/modules/services/config/config-grunt.js
4. app/src/config/karma.conf.js src: app/src/config/karma.conf-grunt.js
5. app/src/config/karma-no-coverage.conf.js src: app/src/config/karma-no-coverage.conf-grunt.js
6. app/src/common/less/variables/_dir-paths.less src: app/src/common/less/variables/_dir-paths.tpl
7. app/src/config/protractor/protractor.conf.js src: app/src/config/protractor.conf-grunt.js
buildfiles done
Running "ngtemplates:main" (ngtemplates) task
File app/src/build/templates.js created.
>> Error: Unable to access jarfile node_modulesprotractorseleniumselenium-server-standalone-2.39.0.jar
configFile: ./app/configs/config.test.json
Running "less:dev" (less) task
Warning: Done, with errors. Use --force to continue.
Aborted due to warnings.
Ah sorry, 1 more change to make sure your path is correct - make sure your operating system in config.json is correct; I added a config-mac.json
file in app/configs
and instructions in the changelog to use that environment / config instead (similarly for linux if you're using linux). Pull the new code and follow that and that should fix your path!
https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/CHANGELOG.md
Environment key? you mean setting the variable? I tried that. I keep getting the same error
$ node_modules/protractor/bin/webdriver-manager update
selenium standalone is up to date.
chromedriver is up to date.
$ export environment="mac"
$ grunt lessons-dev
init
configFile: ./app/configs/config.json
Running "lessons-dev" task
Running "lessons-config" task
init
LESSONS grunt option
configFile: ./app/configs/config.json
Running "http:seleniumShutdown" (http) task
0
Running "shell:seleniumStartup" (shell) task
Running "http:nodeShutdown" (http) task
0
Running "shell:nodeServer" (shell) task
Running "buildfiles" task
WARNING: undefined: filePaths.testsLessons and/or filePaths.testsLessons.testE2E
buildfiles forming configPaths:
SKIPPED files (due to ifOpts):
buildfiles writing files (if multiple files go to the same destination, the LAST one is the src that will have been used):
SKIPPED files (due to ifOpts):
WRITTEN files:
buildfiles done
Running "ngtemplates:main" (ngtemplates) task
File app/src/build/templates.js created.
Error: Unable to access jarfile node_modulesprotractorseleniumselenium-server-standalone-2.39.0.jar
configFile: ./app/configs/config.test.json
Running "less:dev" (less) task
Warning: Done, with errors. Use --force to continue.
Aborted due to warnings.
On Sun, Feb 16, 2014 at 5:01 PM, Luke Madera notifications@github.comwrote:
Ah sorry, 1 more change to make sure your path is correct - make sure your operating system in config.json is correct; I added a config-mac.json file in app/configs and instructions in the changelog to use that environment / config instead. Pull the new code and follow that and that should fix your path!
https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/CHANGELOG.md
Reply to this email directly or view it on GitHubhttps://github.com/jackrabbitsgroup/learn-mean-seed/issues/1#issuecomment-35217096 .
I also copied this fileto the root project direcotry
$ cp app/configs/config-mac.json .
On Sun, Feb 16, 2014 at 5:12 PM, Jack Shultz jackygrahamez@gmail.comwrote:
Environment key? you mean setting the variable? I tried that. I keep getting the same error
$ node_modules/protractor/bin/webdriver-manager update
selenium standalone is up to date.
chromedriver is up to date.
$ export environment="mac"
$ grunt lessons-dev
init
configFile: ./app/configs/config.json
Running "lessons-dev" task
Running "lessons-config" task
init
LESSONS grunt option
configFile: ./app/configs/config.json
Running "http:seleniumShutdown" (http) task
0
Running "shell:seleniumStartup" (shell) task
Running "http:nodeShutdown" (http) task
0
Running "shell:nodeServer" (shell) task
Running "buildfiles" task
WARNING: undefined: filePaths.testsLessons and/or filePaths.testsLessons.testE2E
buildfiles forming configPaths:
SKIPPED files (due to ifOpts):
- key: noPrefixTest
- key: karmaUnitCoverageNoLessons
- key: testProtractor
buildfiles writing files (if multiple files go to the same destination, the LAST one is the src that will have been used):
SKIPPED files (due to ifOpts):
- src: app/src/index-prod-grunt.html
- src: app/src/index-phonegap-grunt.html
- src: app/src/index-triggerio-grunt.html
WRITTEN files:
- app/src/index.html src: app/src/index-grunt.html
- app/src/common/less/_base.less src: app/src/common/less/_base-grunt.less
- app/src/modules/services/config/config.js src: app/src/modules/services/config/config-grunt.js
- app/src/config/karma.conf.js src: app/src/config/karma.conf-grunt.js
- app/src/config/karma-no-coverage.conf.js src: app/src/config/karma-no-coverage.conf-grunt.js
- app/src/common/less/variables/_dir-paths.less src: app/src/common/less/variables/_dir-paths.tpl
- app/src/config/protractor/protractor.conf.js src: app/src/config/protractor.conf-grunt.js
buildfiles done
Running "ngtemplates:main" (ngtemplates) task
File app/src/build/templates.js created.
Error: Unable to access jarfile node_modulesprotractorseleniumselenium-server-standalone-2.39.0.jar
configFile: ./app/configs/config.test.json
Running "less:dev" (less) task
Warning: Done, with errors. Use --force to continue.
Aborted due to warnings.
On Sun, Feb 16, 2014 at 5:01 PM, Luke Madera notifications@github.comwrote:
Ah sorry, 1 more change to make sure your path is correct - make sure your operating system in config.json is correct; I added a config-mac.json file in app/configs and instructions in the changelog to use that environment / config instead. Pull the new code and follow that and that should fix your path!
https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/CHANGELOG.md
Reply to this email directly or view it on GitHubhttps://github.com/jackrabbitsgroup/learn-mean-seed/issues/1#issuecomment-35217096 .
I typed env
environment=mac
Not the environment on your computer, the 'environment' key in config-environment.json
You should NOT copy any config.json files into the root of the app; they should be in app/configs
only. See the docs for more info on configs and steps:
https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/docs/files/configs.md
Now I remember, sorry. Same way you configure the mean seed generator. Got it.
following these directions to start the lesson
after entering grunt lessons-dev I get the following error. It looks like a configuration file is not pointing to the correct path for the webdriver but not sure which file to enter the path in or if the path is set in the environment as a variable.