基于网络的运行将定向到本地127.0.0.1



我们正在使用WDIO运行WDIO测试(既适用于本地运行& browserstack设备)

当我运行browserstack(服务器运行)时,我会收到以下错误:

[11:41:04]命令帖子"/wd/hub/session" [11:41:04] data {" desiredcapabilities":{" javascriptenabled":true," location -contextEnabled":true,true," handlesalerts":true,true," rotatable":true," true":true," name":" ping"," ping"," build"," build":build'::" 1.0"," browserstack.debug":true,"设备":" Samsung Galaxy S8"," OS_Version":" 7.0"," requestorigins":{" url":" http://webdriver.io","版本":" 4.14.2","名称":" WebDriverio"}}}}} 错误:连接Econnrefuse 127.0.0.1:4444

我的依赖性堆栈我们使用纱线

"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"

我尝试了以下文档中提到的故障排除提示,但没有影响。

请建议可能是在本地运行的原因可能是什么原因&不在服务器上。

故障排除提示

您看到的错误是因为WDIO试图在" 127.0.0.0.1:4444"上与WebDriver Server接触,这是默认的本地服务器(即不是BrowserStack)。

这意味着您可能没有在wdio.conf.js文件中设置用户/密钥。WebDriverio依靠用户/密钥来确定要使用的默认服务器。

检查您的配置是否设置了userkey。这里提供更多信息:http://v4.webdriver.io/guide/services/browserstack.html

相关内容

  • 没有找到相关文章

最新更新