因此,我尝试通过
browserstack-sdk robot ./tests/LocalTest.robot
运行 BrowserStack 文档中的示例测试用例,但我得到的只是:
[browserstack_sdk.__init__][CRITICAL] - Encountered error while setting up - Could not start Browserstack Local: <urlopen error [Errno 11001] getaddrinfo failed>
后端运行正常 - 当我运行公司提供的二进制文件时,它运行良好,可以访问 Web 仪表板。当我在仪表板中设置公司代理时,与任何环境的连接都会导致 200,因此一切都应该没问题。至于运行任何测试 - 我得到的只是上面的错误:(尝试使用示例套件中的
browserstack.yml
文件我想运行,但无论我设置什么选项(代理、forceLocal、尝试使用 localIdentifier),仍然是同样的错误。
如果后端似乎工作正常,可能是什么原因导致的?
请检查您是否按照以下文件中的步骤进行操作: https://www.browserstack.com/docs/automate/selenium/getting-started/python/robot https://www.browserstack.com/docs/automate/selenium/getting-started/python/robot/integrate-your-tests https://www.browserstack.com/docs/automate/selenium/getting-started/python/robot/local-testing
如果您仍然遇到该问题,请从此处提出请求并提供相关详细信息 - https://www.browserstack.com/contact