pytest和seldom运行报错

UI脚本报错: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='mirrors.aliyun.com', port=80): Read timed out.解决方案:刚开始用pycharm安装失败,然后用pip3命令安装,第一次失败后按照提示升级了pip3,再次执行后成功 5、运行报错 allure:command not found ...
pytest和seldom运行报错
1、从gitlab下单包解压后导入 pycharm 2、执行damon报错如下 Driver [/Users/name/.wdm/drivers/chromedriver/mac64/97.0.4692.71/chromedriver] found in cache Traceback (most recent call last): File "/Users/name/PycharmProjects/seldom-master/demo/run.py", line 4, in <module> seldom.main(path="./test_dir", File "/Users/name/PycharmProjects/seldom-master/seldom/running/next_runner.py", line 86, in init self.open_browser() File "/Users/name/PycharmProjects/seldom-master/seldom/running/next_runner.py", line 163, in open_browser Seldom.driver = Browser(BrowserConfig.NAME) File "/Users/name/PycharmProjects/seldom-master/seldom/driver.py", line 67, in new return cls.chrome() File "/Users/name/PycharmProjects/seldom-master/seldom/driver.py", line 100, in chrome driver = webdriver.Chrome(options=chrome_options, File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in init super(WebDriver, self). init (DesiredCapabilities.CHROME['browserName'], "goog", File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 90, in init self.service.start() File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 105, in start raise WebDriverException("Can not connect to the Service %s" % self.path) selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /Users/name/.wdm/drivers/chromedriver/mac64/97.0.4692.71/chromedriver

根源: 之前电脑用switchhost切换过host,切换后系统host全部是空
4、运行pytest UI脚本报错: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='mirrors.aliyun.com', port=80): Read timed out.
解决方案:刚开始用pycharm安装失败,然后用pip3命令安装,第一次失败后按照提示升级了pip3,再次执行后成功
5、运行报错 allure:command not found

2022-06-12
mengvlog 阅读 9 次 更新于 2025-07-21 19:21:15 我来答关注问题0
  •  文暄生活科普 手把手教你搭建UI自动化测试平台一

    脚本组织上,结合unittest或pytest进行,unittest提供基础的单元测试框架,而pytest则以fixture装饰器提供更灵活的场景定制。两者各有优势,具体选择取决于项目需求。接下来,引入Seldom框架,它在简化脚本编写和提供美观HTML报告上表现优秀,尤其适合希望快速搭建测试平台的开发者。针对项目变更带来的挑战,采用PO分...

檬味博客在线解答立即免费咨询

报错相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部