我们正在使用 wdio 运行 wdio 测试(适用于本地运行和基于浏览器堆栈的设备)
当我运行 browserstack(服务器运行)时,出现以下错误:
[11:41:04] 命令发布“/wd/hub/session” [11:41:04] 数据 {“desiredCapabilities”:{“javascriptEnabled”:true,“locationContextEnabled”:true,“handlesAlerts”:true,可旋转":true,"name":"Ping","build":"1.0","browserstack.debug":true,"device":"Samsung Galaxy S8","os_version":"7.0","requestOrigins" :{"url":" http://webdriver.io ","version":"4.14.2","name":"webdriverio"}}} 错误:连接 ECONNREFUSED 127.0.0.1:4444
我的依赖栈我们使用yarn
"wdio-allure-reporter": "0.8.3",
"wdio-appium-service": "^0.2.3",
"wdio-browserstack-service": "^0.1.18",
"wdio-cucumber-framework": "2.2.8",
"wdio-dot-reporter": "0.0.10",
"wdio-mocha-framework": "^0.6.4",
"wdio-screenshots-cleanup-service": "0.0.7",
"wdio-spec-reporter": "^0.1.4",
"wdio-visual-regression-service": "^0.9.0",
"webdriverio": "4.14.2"
我已尝试以下文档中提到的故障排除提示,但没有影响。
请告知测试未在本地运行且未在服务器上运行的可能原因。