wdio-Jenkins集成

时间:2019-05-23 11:21:37

标签: jenkins npm automated-tests webdriver-io wdio-v4

我目前在使用Wdio集成Jenkins时遇到了一个问题,到目前为止我还无法解决。 当我通过Jenkins启动wdio配置的作业时,得到以下输出:

enter image description here

这是我使用外壳执行构建的方式:

export PATH=/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_JS/bin/
npm -v 
npm audit fix
npm cache verify
npm install
npm test

package.json:

{
  "name": "Project_webdriverio",
  "version": "1.0.0",
  "main": "test.js",
  "dependencies": {
    "debug": "^4.1.1",
    "wdio": "^3.0.3",
    "wdio-mocha-framework": "^0.6.4"
  },
  "devDependencies": {
    "@wdio/cli": "^5.7.10",
    "@wdio/junit-reporter": "^5.8.0",
    "@wdio/local-runner": "^5.7.12",
    "@wdio/mocha-framework": "^5.7.8",
    "@wdio/selenium-standalone-service": "^5.7.8",
    "@wdio/sync": "^5.7.9",
    "chai": "^4.2.0",
    "chai-webdriverio": "^1.0.0",
    "chromedriver": "^2.46.0",
    "mocha": "^6.0.2",
    "selenium-standalone": "^6.15.3",
    "wdio-chromedriver-service": "^5.0.1",
    "wdio-selenium-standalone-service": "0.0.12",
    "webdriverio": "^5.7.9"
  },
  "scripts": {
    "test": "wdio wdio.conf.js"
  },
  "keywords": [],
  "author": "Jawar",
  "license": "ISC",
  "directories": {
    "test": "test"
  },
  "description": ""
}

我很乐意提供帮助!

0 个答案:

没有答案