
自动化测试
想要成为酷盖但是失败的小明
保持精进
展开
-
Appium报错Original error: Could not proxy command to the remote server. Original error: socket hang up
Appium 报错 socket hang up原创 2022-03-23 17:44:10 · 9768 阅读 · 2 评论 -
pytest运行多条用例命令
执行包下所有用例:pytest/py.test 包名执行单独一个pytest模块:pytest 文件名.py执行某个类:pytest 文件名.py::类名执行某个方法:pytest 文件名.py::类名::方法名原创 2021-11-19 11:55:53 · 1715 阅读 · 0 评论 -
Appium报错InvalidArgumentException: Message: invalid argument: invalid locator
使用xpath定位元素,报错:selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid locator。解决办法:需要在创建driver时增加2个参数。caps[‘chromeOptions’] = {‘w3c’:False}caps[‘showChromedriverLog’] = True参考:https://github.com/appium/appium/issues/133原创 2021-01-30 14:27:01 · 9131 阅读 · 5 评论 -
Appium报错:This version of ChromeDriver only supports Chrome version 84
报错信息:Original error: A new session could not be created. Details: session not created: This version of ChromeDriver only supports Chrome version 84 ,提示chromedriver版本与测试app版本不一致。解决办法:需要把appium目录下的chromedriver修改为app chromedriver对应版本。chromedriver下载路径,wind原创 2021-01-30 14:22:56 · 629 阅读 · 0 评论 -
Windows环境Appium使用报错
Windows环境Appium使用报错1.使用cmd命令启动appium,确保每次只启动一个appium serverappium --session-override --no-reset2.提示无法使用appium安装appium-doctor 全局环境:cnpm install s-g appium-doctor将appium-doctor安装路径配置到Path环境变量中安装appium:cnpm install -g appium...原创 2021-01-30 14:08:38 · 224 阅读 · 0 评论 -
python3使用pip安装yaml报错
python3.x安装yaml报错 No matching distribution found for yaml(AUT) E:\Aproject\AUT>pip install yamlERROR: Could not find a version that satisfies the requirement yamlERROR: No matching distribution found for yaml解决:python3.X只能使用pip install pyyaml 来安装原创 2021-01-30 14:06:14 · 4619 阅读 · 1 评论 -
Mac使用adb命令无法检测到mumu模拟器
打开mumu模拟器,执行adb devices,一直显示list of devices attached。解决:执行adb connect 127.0.0.1:5555提示:connected to 127.0.0.1:5555执行adb kill-server执行adb start-server执行adb devicesList of devices attachedemulator-5554 device大功告成参考:https://blog.youkuaiyun.com/原创 2021-01-27 00:33:11 · 2417 阅读 · 1 评论