michaelguild13 / Selenium-WebdriverIO-Mocha-Chai-Boilerplate

E2E Testing: Selenium + WebdriverIO + Mocha + Chai
27 stars 16 forks source link

webdriverio-mocha-chai same setup but through jenkins #2

Closed mygithub07 closed 7 years ago

mygithub07 commented 7 years ago

Hi , Is there a chance you might have tried webdriverio-mocha-chai through Jenkins and have something to share in regards to the issue below? I am able to run webdriverio with selenium - mocha - chai without the use of Jenkins. Here is the repo which shows the setup - https://github.com/mygithub07/webdriverio-mocha-chai I am trying the same through Jenkins but receiving error which doesn't seem to show much. I am wondering it is because selenium server has not started through Jenkins, which I am trying to find out. I followed this - http://webdriver.io/guide/testrunner/jenkins.html

Thank you

Below is the error


Started by user anonymous
Building in workspace /Users/Shared/Jenkins/Home/workspace/wdio-project
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/mygithub07/webdriverio-mocha-chai # timeout=10
Fetching upstream changes from https://github.com/mygithub07/webdriverio-mocha-chai
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/mygithub07/webdriverio-mocha-chai +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 55e120bcb194d35f0f035cd06c7564c678d35b22 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 55e120bcb194d35f0f035cd06c7564c678d35b22
 > git rev-list 55e120bcb194d35f0f035cd06c7564c678d35b22 # timeout=10
[wdio-project] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/hudson5510201053198921414.sh
 + export PATH=/usr/local/bin
 + PATH=/usr/local/bin
 + npm install
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
mocha@1.21.5 node_modules/mocha
├── escape-string-regexp@1.0.2
├── diff@1.0.8
├── commander@2.3.0
├── growl@1.8.1
├── debug@2.0.0 (ms@0.6.2)
├── mkdirp@0.5.0 (minimist@0.0.8)
├── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)
└── glob@3.2.3 (inherits@2.0.3, graceful-fs@2.0.3, minimatch@0.2.14)

webdriverio@3.4.0 node_modules/webdriverio
├── array.from@0.2.0
├── co@4.6.0
├── wgxpath@1.0.0
├── supports-color@1.3.1
├── css-value@0.0.1
├── is-generator@1.0.3
├── q@1.3.0
├── deepmerge@0.2.10
├── rgb2hex@0.1.0
├── url@0.10.3 (punycode@1.3.2, querystring@0.2.0)
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
├── glob@5.0.15 (path-is-absolute@1.0.1, inherits@2.0.3, once@1.4.0, inflight@1.0.6, minimatch@3.0.3)
├── ejs@2.5.3
├── request@2.49.0 (tunnel-agent@0.4.3, aws-sign2@0.5.0, forever-agent@0.5.2, caseless@0.8.0, oauth-sign@0.5.0, stringstream@0.0.5, json-stringify-safe@5.0.1, mime-types@1.0.2, qs@2.3.3, node-uuid@1.4.7, form-data@0.1.4, tough-cookie@2.3.2, combined-stream@0.0.7, http-signature@0.10.1, bl@0.9.5, hawk@1.1.1)
├── css-parse@2.0.0 (css@2.2.1)
├── archiver@0.14.4 (buffer-crc32@0.2.13, lazystream@0.1.0, readable-stream@1.0.34, zip-stream@0.5.2, glob@4.3.5, tar-stream@1.1.5, lodash@3.2.0)
└── inquirer@0.8.5 (ansi-regex@1.1.1, through@2.3.8, cli-width@1.1.1, figures@1.7.0, readline2@0.1.1, chalk@1.1.3, lodash@3.10.1, rx@2.5.3)
+ npm test

> wdio-demo@1.0.0 test /Users/Shared/Jenkins/Home/workspace/wdio-project
> wdio ./wdio.conf.js

npm ERR! Test failed.  See above for more details.
npm ERR! Test failed.  See above for more details.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
mygithub07 commented 7 years ago

You can close this. I was able to resolve that error and achieve the task using grunt - https://github.com/mygithub07/webdriverio-mocha-chai I'll clean up more . Thanks.

michaelguild13 commented 7 years ago

wow, I am JUST no reading this :P

michaelguild13 commented 5 years ago

@mygithub07 The boilerplate has been updated and tested