我正在使用基于Node.JS的项目:
package.json有一部分:
"scripts": {
"test-server-setup": "./node_modules/.bin/selenium-standalone install",
"test-server-run": "./node_modules/.bin/selenium-standalone start",
"test": "./node_modules/.bin/wdio wdio.conf.js"
},
"devDependencies": {
"selenium-standalone": "^5.9.0",
"wdio-chai-plugin": "0.0.2",
"wdio-dot-reporter": "0.0.6",
"wdio-json-reporter": "^0.1.0",
"wdio-mocha-framework": "^0.5.4",
"wdio-spec-reporter": "0.0.3",
"webdriverio": "^4.4.0"
}
而不是命令:
"test-server-setup": "./node_modules/.bin/selenium-standalone install",
"test-server-run": "./node_modules/.bin/selenium-standalone start",
我想使用Jenkins-plugin Selenium Plugin
我可以使用wdio
还是我需要初始化browser
对象?
http://localhost:4444/wd/hub有错误:
{
status: 13,
value: {
message: "Session [(null externalkey)] not available and is not among the last 1000 terminated sessions. Active sessions are[]",
class: "org.openqa.grid.common.exception.GridException",
stackTrace: [
{
fileName: "ActiveTestSessions.java",
className: "org.openqa.grid.internal.ActiveTestSessions",
methodName: "getExistingSession",
lineNumber: 110
},
...