AirtestProject / AirtestProject/AirtestIDE

ide v1.2.6中运行ios, 执行start_app(app)会报错,stop_app(app)没有反应

未關閉
#868 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
沒有語言資料
星號
236
分支
40
PR 合併指標
30 天內沒有已合併 PR

描述

环境:
Python:3.7
Mac
手机型号:iPhonexr ios12.4
ide:v1.2.6
使用的是企业包,确认包名正确

复现路径:
运行start_app(app)时报错,下面是全部的log

[Start running..]
save log in '/var/folders/np/cg6q8kxn22d8pnyvftm_3_kw0000gp/T/AirtestIDE/scripts/d2fd35310f02ca7a06cdb245e1bdf70b'
custom setup
custom tearDown
======================================================================
ERROR: runTest (__main__.CustomCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/cli/runner.py", line 65, in runTest
six.reraise(*sys.exc_info())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/cli/runner.py", line 61, in runTest
exec(compile(code.encode("utf-8"), pyfilepath, 'exec'), self.scope)
File "/Users/maoning01/Documents/speakertest/111.air/111.py", line 12, in
start_app(app)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/utils/logwraper.py", line 71, in wrapper
res = f(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/api.py", line 150, in start_app
G.DEVICE.start_app(package, activity)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/ios.py", line 259, in start_app
self.session.start_app_new(package)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/wda_client.py", line 415, in start_app_new
return self.http.post('/wda/apps/launch', data=data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/wda_client.py", line 101, in fetch
return self._fetch_no_alert(method, url, data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/wda_client.py", line 107, in _fetch_no_alert
return httpdo(target_url, method, data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/wda_client.py", line 83, in httpdo
raise WDAError(r.status, r.value)
airtest.core.ios.wda_client.WDAError: WDAError(status=1, value=Unhandled endpoint: /session/F114EF29-5505-424E-AB68-17A54CEB6EF9/wda/apps/launch -- http://127.0.0.1:8100/ with parameters {
wildcards = (
"session/F114EF29-5505-424E-AB68-17A54CEB6EF9/wda/apps/launch"
);
})

允许stop_app(app)时没有报错,但也没执行,下面是日志:

[Start running..]
save log in '/var/folders/np/cg6q8kxn22d8pnyvftm_3_kw0000gp/T/AirtestIDE/scripts/d2fd35310f02ca7a06cdb245e1bdf70b'
custom setup
custom tearDown
----------------------------------------------------------------------
Ran 1 test in 0.725s

OK
[Finished]

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。