Problems - 自动化测试
文章平均质量分 53
收集整理自动化测试中遇到的各种疑难问题及解决办法
kinder-balabala
测试技术交流与分享
展开
-
pytest 运行测试函数报错的解决办法 TypeError: calling <function xxx> returned None, not a test
不明原因的 bug ,重启是一种捷径。原创 2024-01-05 14:21:52 · 979 阅读 · 3 评论 -
Appium Server 启动失败常见原因及解决办法
错误原因:Appium 默认的4723端口被占用。原创 2023-12-21 16:39:39 · 1002 阅读 · 0 评论 -
selenium.common.exceptions.InvalidElementStateException Message Unable to perform W3C actions
在使用Appium进行swipe()滑动操作时,提示:selenium.common.exceptions.InvalidElementStateException: Message: Unable to perform W3C actions. Check the logcat output for possible error reports and make sure your input actions chain is valid.InvalidElementStateException,通常与元原创 2023-11-25 17:38:35 · 703 阅读 · 0 评论 -
Error obtaining Ul hierarchy Reason: Error while obtaining Ul hierarchy XML file
Appium Session未结束,当前APP仍处于测试脚本控制之中,所以使用uiautomatorviewer定位页面时,会报"设备不存在"的错误。出现该问题,可能还有其他未知的原因,如果上面两种方法仍不能解决问题,那就重启设备、重启uiautomatorviewer。等待设备自动断开当前会话,断开的标志是:自动退出测试脚本操作的页面,回到首页。方案二:等待一段时间,让Android设备自动断开会话。方案一:使用quit()方法关闭Appium会话。原创 2023-11-30 12:19:37 · 1123 阅读 · 0 评论 -
Appium启动微信失败的解决办法
测试环境:在使用下面代码测试启动微信时,一直不能把微信启动起来:从appium server中查找启动微信app的日志,如下:其中有这么一句:根据日志提示,尝试在 添加 之后,顺利启动微信。欢迎技术交流:原创 2023-12-09 23:12:44 · 1089 阅读 · 0 评论 -
appium 安装 uiautomator2-server-debug-androidTest.apk 、appium-uiautomator2-server-v5.12.16.apk 失败的解决办法
如果仍然安装不成功,可以手动进行安装。右键,在终端中打开,执行。原创 2023-12-09 21:32:39 · 847 阅读 · 0 评论 -
Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded 的解决办法
Appium 在使用华为mate 30 pro 做自动化测试时,在确定"元素在页面"的前提下,一直定位不到元素。原创 2023-12-11 19:20:04 · 515 阅读 · 0 评论 -
AttributeError ‘NoneType‘ object has no attribute ‘to_capabilities‘
执行test_driver()后,报错:AttributeError: ‘NoneType’ object has no attribute ‘to_capabilities’原创 2023-11-27 10:20:05 · 574 阅读 · 0 评论 -
No Chromedriver found that can automate Chrome ‘x.x.xxxx‘的解决办法
在使用Appium对Android设备自动化测试时,切换WebView时抛出异常:这是因为在启动Appium时,没有指定chromedriver导致。原创 2023-12-02 23:46:04 · 943 阅读 · 0 评论