appuim 做自动化测试的时候遇到的一些报错 附解决方法

1、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.

2、http.client.RemoteDisconnected: Remote end closed connection without response

3、An unknown server-side error occurred while processing the command. Original error: Unable to initialize the detection process. Please ensure that the application under test does not crash and investigate the logcat output.

 

通用原因可能是:1、网络不好。2、appium 版本不兼容问题 3、夜神模拟器问题。

解决方法:将夜神模拟器升级到官网发布的稳定版本,将appium 由 1.15.1 升级到 1.19.1 即可解决。

 

另外小伙伴要注意 :开发每次发的包,包名不会改动,但是启动页名字可能会变,注意更新 appActivity 参数。

appium 依赖 安卓SDK 和 java 环境 。一定不要随意改动java_home路径啊! 不然可能会报错。

 

Release 1.19.1 · appium/appium-desktop · GitHub

 

appium 客户端在GitHub 上下载  19版本较稳定。

posted @   好好吃饭--  阅读(557)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 提示词工程——AI应用必不可少的技术
· 地球OL攻略 —— 某应届生求职总结
· 字符编码:从基础到乱码解决
· SpringCloud带你走进微服务的世界
点击右上角即可分享
微信分享提示