AirtestProject / AirtestProject/Poco

如此操作必定会复现pocoservice崩溃

Abierto
#310 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
2k
Forks
341
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**描述问题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上正常。)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.