AirtestProject / Poco

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

RuntimeError: unable to launch AndroidUiautomationPoco #227

Open CrystalMarch opened 5 years ago

CrystalMarch commented 5 years ago

描述问题bug 调用 AndroidUiautomationPoco(device=self.device) poco初始化时会一直输出still waiting for uiautomation ready。最后报错unable to launch AndroidUiautomationPoco

[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
serialno is : 24f0f0d4
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 wait-for-device
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 wait-for-device
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.build.version.sdk
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.build.version.sdk
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap.so
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap.so
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -v 2>&1
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -v 2>&1
[02:32:08][DEBUG]<airtest.core.android.minicap> version:5
DEBUG:airtest.core.android.minicap:version:5
[02:32:08][DEBUG]<airtest.core.android.minicap> skip install minicap
DEBUG:airtest.core.android.minicap:skip install minicap
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
serialno is : 24f0f0d4
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 wait-for-device
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 wait-for-device
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.build.version.sdk
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.build.version.sdk
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap.so
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap.so
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -v 2>&1
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -v 2>&1
[02:32:08][DEBUG]<airtest.core.android.minicap> version:5
DEBUG:airtest.core.android.minicap:version:5
[02:32:08][DEBUG]<airtest.core.android.minicap> skip install minicap
DEBUG:airtest.core.android.minicap:skip install minicap
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 forward --no-rebind tcp:13869 localabstract:minicap_13869
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 forward --no-rebind tcp:13869 localabstract:minicap_13869
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -n 'minicap_13869' -P 1080x1920@480x800/0 -l 2>&1
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -n 'minicap_13869' -P 1080x1920@480x800/0 -l 2>&1
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'PID: 8853'
DEBUG:airtest.utils.nbsp:[minicap_server]b'PID: 8853'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: Using projection 1080x1920@450x800/0'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: Using projection 1080x1920@450x800/0'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:241) Creating SurfaceComposerClient'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:241) Creating SurfaceComposerClient'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:244) Performing SurfaceComposerClient init check'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:244) Performing SurfaceComposerClient init check'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:255) Creating virtual display'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:255) Creating virtual display'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:261) Creating buffer queue'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:261) Creating buffer queue'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:264) Setting buffer options'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:264) Setting buffer options'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:268) Creating CPU consumer'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:268) Creating CPU consumer'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:272) Creating frame waiter'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:272) Creating frame waiter'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:276) Publishing virtual display'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (external/MY_minicap/src/minicap_26.cpp:276) Publishing virtual display'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 6268932 bytes for JPG encoder'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 6268932 bytes for JPG encoder'
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (/home/lxn3032/minicap_for_ide/jni/minicap/minicap.cpp:473) Server start'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (/home/lxn3032/minicap_for_ide/jni/minicap/minicap.cpp:473) Server start'
[02:32:08][DEBUG]<airtest.core.android.minicap> (1, 24, 8853, 1080, 1920, 450, 800, 0, 2)
DEBUG:airtest.core.android.minicap:(1, 24, 8853, 1080, 1920, 450, 800, 0, 2)
[02:32:08][DEBUG]<airtest.utils.nbsp> [minicap_server]b'INFO: (/home/lxn3032/minicap_for_ide/jni/minicap/minicap.cpp:475) New client connection'
DEBUG:airtest.utils.nbsp:[minicap_server]b'INFO: (/home/lxn3032/minicap_for_ide/jni/minicap/minicap.cpp:475) New client connection'
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
[02:32:08][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb devices
serialno is : 24f0f0d4
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 wait-for-device
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 wait-for-device
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.build.version.sdk
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.build.version.sdk
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.product.cpu.abi
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.product.cpu.abi
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.build.version.sdk
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell getprop ro.build.version.sdk
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minitouch
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minitouch
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls -l /data/local/tmp/minitouch
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls -l /data/local/tmp/minitouch
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell rm /data/local/tmp/minitouch*
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell rm /data/local/tmp/minitouch*
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 push /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/stf_libs/arm64-v8a/minitouch /data/local/tmp/minitouch
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 push /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/stf_libs/arm64-v8a/minitouch /data/local/tmp/minitouch
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell chmod 755 /data/local/tmp/minitouch
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell chmod 755 /data/local/tmp/minitouch
[02:32:09][INFO]<airtest.core.android.minitouch> install_minitouch finished
INFO:airtest.core.android.minitouch:install_minitouch finished
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap.so
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ls /data/local/tmp/minicap.so
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -v 2>&1
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -v 2>&1
[02:32:09][DEBUG]<airtest.core.android.minicap> version:5
DEBUG:airtest.core.android.minicap:version:5
[02:32:09][DEBUG]<airtest.core.android.minicap> skip install minicap
DEBUG:airtest.core.android.minicap:skip install minicap
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 forward --no-rebind tcp:14515 localabstract:minitouch_14515
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 forward --no-rebind tcp:14515 localabstract:minitouch_14515
[02:32:09][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell /data/local/tmp/minitouch -n 'minitouch_14515' 2>&1
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell /data/local/tmp/minitouch -n 'minitouch_14515' 2>&1
[02:32:09][DEBUG]<airtest.utils.nbsp> [minitouch_server]b'Note: device /dev/input/mouse0 is not supported by libevdev'
DEBUG:airtest.utils.nbsp:[minitouch_server]b'Note: device /dev/input/mouse0 is not supported by libevdev'
[02:32:09][DEBUG]<airtest.utils.nbsp> [minitouch_server]b'Note: device /dev/input/mice is not supported by libevdev'
DEBUG:airtest.utils.nbsp:[minitouch_server]b'Note: device /dev/input/mice is not supported by libevdev'
[02:32:10][DEBUG]<airtest.utils.nbsp> [minitouch_server]b'Type B touch device synaptics,s3320 (1079x1919 with 10 contacts) detected on /dev/input/event3 (score 22447)'
DEBUG:airtest.utils.nbsp:[minitouch_server]b'Type B touch device synaptics,s3320 (1079x1919 with 10 contacts) detected on /dev/input/event3 (score 22447)'
[02:32:10][DEBUG]<airtest.core.android.minitouch> minitouch header:b'v 1\n^ 10 1079 1919 0\n$ 8888\n'
DEBUG:airtest.core.android.minitouch:minitouch header:b'v 1\n^ 10 1079 1919 0\n$ 8888\n'
[02:32:10][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -i
[02:32:10][DEBUG]<airtest.utils.nbsp> [minitouch_server]b'Connection established'
DEBUG:airtest.utils.nbsp:[minitouch_server]b'Connection established'
[02:32:10][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys activity top
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys activity top
[02:32:10][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.nie.yosemite
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.nie.yosemite
[02:32:10][INFO]<airtest.core.android.yosemite> local version code is 287, installed version code is 287
INFO:airtest.core.android.yosemite:local version code is 287, installed version code is 287
[02:32:10][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell settings get secure default_input_method
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell settings get secure default_input_method
[02:32:10][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ime list -a
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ime list -a
[02:32:10][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.open.pocoservice
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.open.pocoservice
installed version is None, installer version is 39. force_reinstall=False
[02:32:10][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 install /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/lib/pocoservice-debug.apk
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 install /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/lib/pocoservice-debug.apk
[02:32:12][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.open.pocoservice.test
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.open.pocoservice.test
installed version is 0, installer version is 0. force_reinstall=True
[02:32:12][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 install -r /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/lib/pocoservice-debug-androidTest.apk
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 install -r /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/lib/pocoservice-debug-androidTest.apk
[02:32:13][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 forward --no-rebind tcp:12360 tcp:10080
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 forward --no-rebind tcp:12360 tcp:10080
[02:32:13][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 forward --no-rebind tcp:15816 tcp:10081
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 forward --no-rebind tcp:15816 tcp:10081
[02:32:13][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ps
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell ps
[02:32:13][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am force-stop com.netease.open.pocoservice
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am force-stop com.netease.open.pocoservice
[02:32:13][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am start -n com.netease.open.pocoservice/.TestActivity
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am start -n com.netease.open.pocoservice/.TestActivity
[02:32:13][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
[02:32:25][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 uninstall com.netease.open.pocoservice
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 uninstall com.netease.open.pocoservice
[02:32:25][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.open.pocoservice
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.open.pocoservice
installed version is None, installer version is 39. force_reinstall=False
[02:32:26][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 install /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/lib/pocoservice-debug.apk
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 install /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/lib/pocoservice-debug.apk
[02:32:27][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.open.pocoservice.test
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys package com.netease.open.pocoservice.test
[02:32:27][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 install -r /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/lib/pocoservice-debug-androidTest.apk
installed version is 0, installer version is 0. force_reinstall=True
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 install -r /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/lib/pocoservice-debug-androidTest.apk
[02:32:28][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am force-stop com.netease.open.pocoservice
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am force-stop com.netease.open.pocoservice
[02:32:28][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am start -n com.netease.open.pocoservice/.TestActivity
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am start -n com.netease.open.pocoservice/.TestActivity
[02:32:28][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell am instrument -w -e debug false -e class com.netease.open.pocoservice.InstrumentedTestAsLauncher com.netease.open.pocoservice.test/android.support.test.runner.AndroidJUnitRunner
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
still waiting for uiautomation ready.
[02:32:40][DEBUG]<airtest.core.android.adb> /Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys activity top
DEBUG:airtest.core.android.adb:/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/airtest/core/android/static/adb/mac/adb -s 24f0f0d4 shell dumpsys activity top
still waiting for uiautomation ready.
Exception in thread Thread-6:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/crystalzhu/AutoTest/StellarMobile/stellar/server/action/android/android_touch_action.py", line 186, in get_hierarchy
    self.poco = AndroidUiautomationPoco(device=self.device)  # poco初始化
  File "/Users/crystalzhu/AutoTest/StellarMobile/lib/python3.7/site-packages/poco/drivers/android/uiautomation.py", line 179, in __init__
    raise RuntimeError("unable to launch AndroidUiautomationPoco")
RuntimeError: unable to launch AndroidUiautomationPoco

python 版本: python3.6

poco 版本: 0.96.4

设备:

运行环境 运行环境mac

yimelia commented 5 years ago

手机连上IDE,IDE中poco选择android模式,能否看到UI树

CrystalMarch commented 5 years ago

手机连上IDE,IDE中poco选择android模式,能否看到UI树

选了不行的

yimelia commented 5 years ago

检查以下几个方面:

Raphon commented 5 years ago

提供一

检查以下几个方面:

* 请关闭PC或手机上连接的网络代理Proxy,否则可能导致连不上Poco

* 可以尝试卸载手机中的2个Pocoservice相关的APK后,手工重新安装一遍,在poco\poco\drivers\android\lib目录下能够找到这两个APK

* 将手机设置-输入法设置中,把`Yosemite`输入法设置为默认输入法+当前输入法后重试

我这边也遇到了这个问题

查issue好像这个问题一直存在且没有得到彻底解决 提供一下我这边的情况供参考 看看能不能彻底解决这个问题

提示 still waiting for uiautomation ready. 时 工具会去自动重装pocoService.apk 但是并没有正常拉起 就会导致一直提示still waiting for uiautomation ready. 这个时候如果手动去点击打开一下pocoServic.apk 就可以继续正常执行了

第二个情况是 同一把设备在运行同一套脚本的情况下 Mac是没问题的 但是Windows就会提示still waiting for uiautomation ready. @yimelia 可以看看能不能比对下双端的差异来找找原因?

yimelia commented 5 years ago

@Raphon 感谢反馈,我们看看这个问题

xzhacker123 commented 4 years ago

我也遇到类似的问题,查看端口一直处于ESTABLISHED通信中状态,是否可以在rpc client端设置限制通信超时时长啊?