鱼C论坛

 找回密码
 立即注册
查看: 1217|回复: 1

Appium执行测试时报错Error: read ECONNRESET

[复制链接]
发表于 2019-6-13 11:52:31 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x

Appium版本:1.10.1
Android版本:真机 7.0 (华为)

奇怪的是,执行单个case的时候不会出现问题,每个case都可以通过,但是组合成一个suite按次序执行时,case总是成功一个失败一个(偶数位的case都会在固定的位置失败),下面附上详细的报错信息,麻烦各位老司机不吝赐教

ft9.1: Traceback (most recent call last):
  File "C:\Python27\lib\logging\__init__.py", line 872, in emit
    stream.write(ufs % msg)
LookupError: unknown encoding: cp65001
Logged from file common_fun.py, line 50
Traceback (most recent call last):
  File "C:\Python27\lib\logging\__init__.py", line 872, in emit
    stream.write(ufs % msg)
LookupError: unknown encoding: cp65001
Logged from file common_fun.py, line 50
Traceback (most recent call last):
  File "E:\AppiumCode\nanhai_project\test_case\test_9changeLoginPassword.py", line 17, in test_change_login_password01
    l.login_password_change_action(data[0], data[1], data[1])
  File "E:\AppiumCode\nanhai_project\businessView\loginPasswordChangeView.py", line 24, in login_password_change_action
    self.change_login_password_page(password, changePassword)
  File "E:\AppiumCode\nanhai_project\businessView\loginPasswordChangeView.py", line 41, in change_login_password_page
    self.login_pwd_by_coordinate(changePassword, width, height)
  File "E:\AppiumCode\nanhai_project\common\common_fun.py", line 327, in login_pwd_by_coordinate
    self.num_8(width, height)
  File "E:\AppiumCode\nanhai_project\common\common_fun.py", line 599, in num_8
    self.driver.tap([(x8 * width, y8 * height)])
  File "C:\Python27\lib\site-packages\appium\webdriver\webdriver.py", line 510, in tap
    action.perform()
  File "C:\Python27\lib\site-packages\appium\webdriver\common\touch_action.py", line 96, in perform
    self._driver.execute(Command.TOUCH_ACTION, params)
  File "C:\Python27\lib\site-packages\selenium-3.141.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
    raise wde
WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2019-6-13 12:05:26 | 显示全部楼层
Appium 服务器应该是不支持 安卓 7+
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2026-1-16 09:10

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表