AirtestProject / AirtestProject/Poco
如此操作必定会复现pocoservice崩溃
- Ngôn ngữ chính
- Python
- Star
- 2k
- Fork
- 341
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**描述问题bug**
pocoservice无限重启
[03:35:42][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
[03:36:06][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
[03:36:09][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am start -n com.netease.open.pocoservice/.TestActivity ; echo ---$?---
[03:36:11][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
[03:36:34][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
[03:36:36][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am start -n com.netease.open.pocoservice/.TestActivity ; echo ---$?---
[03:36:39][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
[03:36:52][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
[03:36:54][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am start -n com.netease.open.pocoservice/.TestActivity ; echo ---$?---
[03:36:56][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
[03:37:10][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
[03:37:12][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am start -n com.netease.open.pocoservice/.TestActivity ; echo ---$?---
[03:37:14][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
[03:37:38][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
[03:37:41][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am start -n com.netease.open.pocoservice/.TestActivity ; echo ---$?---
[03:37:42][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
[03:38:04][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am force-stop com.netease.open.pocoservice ; echo ---$?---
[03:38:06][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am start -n com.netease.open.pocoservice/.TestActivity ; echo ---$?---
[03:38:08][DEBUG] D:\Python36\lib\site-packages\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s 172.16.3.30:5555 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
**复现步骤**
###运行如下代码:
```# -*- encoding=utf8 -*-
__author__ = "Administrator"
from airtest.core.api import *
from poco.drivers.android.uiautomation import AndroidUiautomationPoco
poco = AndroidUiautomationPoco(use_airtest_input=True, screenshot_each_action=False,force_restart=False)
for x in range(99):
print("第{}次打印".format(x))
attempts = 0
success = False
while attempts < 10 and not success:
try:
with poco.freeze() as frozen_poco:
target = frozen_poco
print(target.__len__(),type(target))
success = True
print('加载成功')
except:
attempts += 1
time.sleep(3)
if attempts == 10:
print('超过10次退出')
break
```
**预期效果**
(预期想要得到什么、见到什么)
**相关截图**
(贴出遇到问题时的截图内容,如果有的话)
**python 版本:** `python3.6`
**poco 版本:** `1.0.78`
> poco版本通过`pip freeze`可以命令可以查到
**设备:**
- 型号: 三星note4
- 系统: android 6
- (别的信息)
**其他相关环境信息**
(其他运行环境,例如在linux ubuntu16.04上运行异常,在windows上正常。)
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.