AirtestProject / Poco

A cross-engine test automation framework based on UI inspection
http://airtest.netease.com/
Apache License 2.0
1.74k stars 315 forks source link

對兩個UI元件執行click指令,兩次click動作中間相隔約30秒 #549

Open emptyluna opened 2 years ago

emptyluna commented 2 years ago

:bulb:相关项目: Poco

标题: [问题咨询]對兩個UI元件執行click指令,兩次click動作中間相隔約30秒

AirtestIDE版本: 1.2.14

报错描述:     對兩個UI元件執行click指令,兩次click動作中間相隔約30秒,請問一下這是正常的嗎?

相关截图:

报错Log:

{"tag": "function", "depth": 1, "time": 1653537707.0521772, "data": {"name": "record_ui", "call_args": {"driver": "<poco.drivers.unity3d.unity3d_poco.UnityPoco object at 0x000001B4FB397A90>", "action": "'click'", "ui": "UIObjectProxy of \"ChipsRoot/UIChipView(Clone)[4]\"", "args": "[0.09490204, 0.627037048]"}, "start_time": 1653537707.0512006, "ret": "UIObjectProxy of \"ChipsRoot/UIChipView(Clone)[4]\"", "end_time": 1653537707.0521772}}
{"tag": "function", "depth": 2, "time": 1653537711.3582168, "data": {"name": "try_log_screen", "call_args": {"screen": null, "quality": null, "max_size": null}, "start_time": 1653537709.3449895, "ret": {"screen": "1653537711192.jpg", "resolution": [900, 1600]}, "end_time": 1653537711.3582168}}
{"tag": "function", "depth": 1, "time": 1653537712.3488579, "data": {"name": "touch", "call_args": {"v": [85.411836, 1003.2592768000001], "kwargs": {"duration": 0.01}, "times": 1}, "start_time": 1653537709.3449895, "ret": [85.411836, 1003.2592768000001], "end_time": 1653537712.3488579}}
{"tag": "function", "depth": 1, "time": 1653537747.6586308, "data": {"name": "record_ui", "call_args": {"driver": "<poco.drivers.unity3d.unity3d_poco.UnityPoco object at 0x000001B4FB397A90>", "action": "'click'", "ui": "UIObjectProxy of \"ChipsRoot/UIChipView(Clone)[9]\"", "args": "[0.23008728, 0.627037048]"}, "start_time": 1653537747.6586308, "ret": "UIObjectProxy of \"ChipsRoot/UIChipView(Clone)[9]\"", "end_time": 1653537747.6586308}}
{"tag": "function", "depth": 2, "time": 1653537747.8421178, "data": {"name": "try_log_screen", "call_args": {"screen": null, "quality": null, "max_size": null}, "start_time": 1653537747.6586308, "ret": {"screen": "1653537747825.jpg", "resolution": [900, 1600]}, "end_time": 1653537747.8421178}}
{"tag": "function", "depth": 1, "time": 1653537748.0265825, "data": {"name": "touch", "call_args": {"v": [207.078552, 1003.2592768000001], "kwargs": {"duration": 0.01}, "times": 1}, "start_time": 1653537747.6586308, "ret": [207.078552, 1003.2592768000001], "end_time": 1653537748.0265825}}
连接设备信息: 设备类型 设备型号 系统版本号 apk名称/下载链接
Android 雷電模擬器3.1.26 Android5.1.1

提供最小可复现此BUG的代码:

# -*- encoding=utf8 -*-
__author__ = "User"
from airtest.core.api import *
auto_setup(__file__)

from poco.drivers.unity3d import UnityPoco
poco = UnityPoco()

poco("ChipsRoot").child("UIChipView(Clone)")[0].click();
poco("ChipsRoot").child("UIChipView(Clone)")[1].click();