AirtestProject / AirtestProject/AirtestIDE
ios执行过程中出现crash现象 wda.WDAError: WDAError(status=889, value=Application is not running, possibly crashed) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!
- Dominant language
- No language data
- Stars
- 236
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
**问题类型**:crash
**描述问题bug**:两台设备一台安卓,一台ios,ios在执行keyevent("HOME"),然后去手机“设置”界面去断开网络,在操作这个自动化的过程中,会出现crash现象。
**复现步骤**:执行以下代码(home健然后设置处断网)
keyevent("HOME")
poco("设置").click()
poco("Window").child("Other").child("Other").child("Other")[0].child("Other").offspring("Table").child(
"无线局域网").child("无线局域网").click()
poco("Window").child("Other").child("Other").child("Other")[0].child("Other").child("Other").child(
"Other").child("Other").child("Other").offspring("Table").child("Cell")[0].child("无线局域网")[1].click()
**报错信息**:
==================================================== test session starts =====================================================
platform darwin -- Python 3.7.5, pytest-5.3.0, py-1.8.0, pluggy-0.13.0 -- /usr/local/bin/python3
cachedir: .pytest_cache
rootdir: /Users/admin/Documents/AVC
plugins: allure-pytest-2.8.6
collected 0 items / 1 error
=========================================================== ERRORS ===========================================================
________________________________ ERROR collecting avc_ios_test/testcase/ios/test_function.py _________________________________
avc_ios_test/testcase/ios/test_function.py:5: in
from common import case_tag,verify_utils
avc_ios_test/common/verify_utils.py:5: in
connect_device("ios:///http://127.0.0.1:8100")
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/api.py:63: in connect_device
dev = init_device(platform, uuid, **params)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/api.py:33: in init_device
dev = cls(uuid, **kwargs)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/ios.py:83: in __init__
self.rotation_watcher = RotationWatcher(self)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/rotation.py:22: in __init__
self.session = iosHandle.session
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/ios.py:98: in session
self.defaultSession = self.driver.session()
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wda/__init__.py:281: in session
return Session(http, sid)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wda/__init__.py:357: in __init__
v = self.http.get('/').value
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wda/__init__.py:108: in fetch
return self._fetch_no_alert(method, url, data)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wda/__init__.py:114: in _fetch_no_alert
return httpdo(target_url, method, data)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wda/__init__.py:90: in httpdo
raise WDAError(r.status, r.value)
E wda.WDAError: WDAError(status=889, value=Application is not running, possibly crashed)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================== 1 error in 1.57s ======================================================
**python 版本**:python3.7
**操作系统:**`mac os`
**手机设备信息**:
- 手机型号: 一台iphone 6s
一台vivo y83
- **AirtestIDE版本号**:1.2.2
**补充**:两台设备连接,只有以上步骤会出现crash现象,其余操作无异常
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.