Please execute 'adb uninstall my.test' in a shell报错处理

解决Android应用重复安装错误
本文介绍了当尝试在Android设备上重新安装相同应用时遇到的错误:“Please execute 'adb uninstall my.test' in a shell”,并提供了两种解决方案:直接在设备上卸载旧应用或通过命令行进行卸载。

有关Please execute 'adb uninstall my.test' in a shell

1、问题??

在运行android程序时,Eclipse报错提示如下:

Please execute 'adb uninstall my.test' in a shell.

即:请在doc命令下执行adb uninstall my.test

具体报错如下图所示:


2、问题缘由:

由报错提示可知,这是由于虚拟机或者真机里面已经有此应用程序,无法重新再安装此应用程序。

3解决方案:

方案一:

在虚拟机或者真机上将此应用程序卸载即可,重新再跑此程序。

方案二:

这个复杂点,建议使用方案一。具体步骤如下:

第一步:打开doc命令行

第二步:找到android的jdk安装路径,即找到adb.exe这个可执行文件

第三步:在doc命令行输入所在盘如e:后点击enter键转到E盘路径

第四步:把adb文件路径复制到cd 后点击enter键
第五步 :复制adb uninstall my.test到doc下,即OK了!

见下图:

D:/gz/py/python310/python.exe C:\Users\g60042218\PycharmProjects\untitled\.idea\hypium\tmpExecute.py "" Input is being redirected from C:\Users\g60042218\PycharmProjects\untitled\.idea\hypium\test.txt [2025-08-27 12:21:30,698] [20000] [Kit] [INFO] [Load the cpuinsnum collector.] [2025-08-27 12:21:30,700] [20000] [Kit] [INFO] [Load the cpu load collector.] [2025-08-27 12:21:30,702] [20000] [Kit] [INFO] [Load the latency collector.] [2025-08-27 12:21:30,703] [20000] [Kit] [INFO] [Load the memory collector.] [2025-08-27 12:21:30,705] [20000] [Kit] [INFO] [Load the power dubai collector.] [2025-08-27 12:21:30,706] [20000] [Kit] [INFO] [Load the power current and voltage collector.] [2025-08-27 12:21:30,708] [20000] [Kit] [INFO] [Load the residency collector.] [2025-08-27 12:21:30,709] [20000] [Kit] [INFO] [Load the thread num collector.] [2025-08-27 12:21:30,776] [20000] [Main] [INFO] [*************** xDevice Test Framework 6.0.5.10 Starting ***************] [2025-08-27 12:21:30,792] [20000] [ConfigManager] [DEBUG] [User config path: C:\Users\g60042218\PycharmProjects\untitled\config\user_config.xml] [2025-08-27 12:21:30,793] [20000] [Adb] [DEBUG] [AdbMonitor map add host 127.0.0.1, map is {'127.0.0.1': <aosp.environment.dmlib.AdbMonitor object at 0x000001BC7932A470>}] [2025-08-27 12:21:30,793] [20000] [Adb] [DEBUG] [AdbMonitor usb type is usb-hdc] [2025-08-27 12:21:30,836] [20000] [Adb] [DEBUG] [AdbMonitor hdc version: Ver: 3.0.0b] [2025-08-27 12:21:30,836] [20000] [Adb] [DEBUG] [The connector is normalized version, so does not need to be killed.] [2025-08-27 12:21:31,456] [20000] [Utils] [DEBUG] [Check hdc.exe proc running output: hdc.exe 1320 Services 0 50,684 K] [2025-08-27 12:21:31,457] [58664] [Adb] [DEBUG] [current connector name is hdc] [2025-08-27 12:21:31,457] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:31,457] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:31,457] [20000] [ConfigManager] [DEBUG] [User config path: C:\Users\g60042218\PycharmProjects\untitled\config\user_config.xml] [2025-08-27 12:21:31,457] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1520, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55095), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:31,458] [20000] [Hdc] [DEBUG] [HdcMonitor map add host 127.0.0.1, map is {'127.0.0.1': <ohos.environment.dmlib.HdcMonitor object at 0x000001BC79329C60>}] [2025-08-27 12:21:31,458] [20000] [Hdc] [DEBUG] [Peek running process to check expect connector.] [2025-08-27 12:21:31,473] [20000] [Hdc] [DEBUG] [Peak end] [2025-08-27 12:21:31,473] [62512] [Hdc] [DEBUG] [current connector name is hdc] [2025-08-27 12:21:31,473] [20000] [ConfigManager] [DEBUG] [User config path: C:\Users\g60042218\PycharmProjects\untitled\config\user_config.xml] [2025-08-27 12:21:31,474] [20000] [Console] [INFO] [Input command: run -l C:/Users/g60042218/PycharmProjects/untitled/HMSCoreHAP/IntegrationTest/DFX/Python/performance/testcases/TC_Framework_SDK_DFX_Performance_006.py -ta agent_mode:bin;screenshot:true] [2025-08-27 12:21:31,475] [20000] [ConfigManager] [DEBUG] [User config path: C:\Users\g60042218\PycharmProjects\untitled\config\user_config.xml] [2025-08-27 12:21:31,476] [20000] [SuiteReporter] [DEBUG] [Clear failed case list] [2025-08-27 12:21:31,476] [20000] [SuiteReporter] [DEBUG] [Clear report result] [2025-08-27 12:21:31,476] [20000] [Request] [DEBUG] [StartTime=2025-08-27 12:21:31] [2025-08-27 12:21:31,477] [20000] [Request] [INFO] [Report path: C:\Users\g60042218\PycharmProjects\untitled\reports\2025-08-27-12-21-31] [2025-08-27 12:21:31,479] [20000] [TestSource] [DEBUG] [Testcases directories: ['C:\\Users\\g60042218\\PycharmProjects\\untitled\\testcases', 'D:\\gz\\py\\python310\\lib\\testcases', 'C:\\Users\\g60042218\\PycharmProjects\\untitled', 'D:\\gz\\py\\python310\\lib']] [2025-08-27 12:21:31,479] [20000] [TestSource] [DEBUG] [Test sources: ['C:/Users/g60042218/PycharmProjects/untitled/HMSCoreHAP/IntegrationTest/DFX/Python/performance/testcases/TC_Framework_SDK_DFX_Performance_006.py']] [2025-08-27 12:21:31,481] [20000] [Impl] [DEBUG] [Run command: run -l C:/Users/g60042218/PycharmProjects/untitled/HMSCoreHAP/IntegrationTest/DFX/Python/performance/testcases/TC_Framework_SDK_DFX_Performance_006.py -ta agent_mode:bin;screenshot:true] [2025-08-27 12:21:31,483] [62508] [Concurrent] [DEBUG] [Queue monitor thread start] [2025-08-27 12:21:31,484] [20000] [ManagerEnv] [DEBUG] [Visit options to find device] [2025-08-27 12:21:31,485] [20000] [ManagerEnv] [DEBUG] [Apply device from managers:{'ManagerDevice': <ohos.managers.manager_device.ManagerDevice object at 0x000001BC792B5E40>, 'ManagerAospDevice': <aosp.managers.manager_device.ManagerAospDevice object at 0x000001BC792B7190>}] [2025-08-27 12:21:31,485] [20000] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 12:21:31,486] [20000] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 12:21:31,486] [20000] [ManagerDevice] [DEBUG] [Require device label is: phone] [2025-08-27 12:21:31,486] [20000] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 12:21:31,487] [20000] [ManagerDevice] [DEBUG] [Wait for available device founded] [2025-08-27 12:21:31,500] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1520, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55095), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:31,501] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] [2025-08-27 12:21:32,094] [62512] [Utils] [DEBUG] [Check hdc.exe proc running output: hdc.exe 1320 Services 0 50,684 K] [2025-08-27 12:21:32,095] [62512] [Hdc] [DEBUG] [HdcMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:32,095] [62512] [Hdc] [DEBUG] [HdcMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:32,096] [62512] [Hdc] [DEBUG] [HdcMonitor Connected to hdc for device monitoring, main_hdc_connection is <socket.socket fd=800, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55097), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:32,171] [62512] [Hdc] [DEBUG] [had received length is: 326] [2025-08-27 12:21:32,186] [62512] [Hdc] [INFO] [0123456789ABCDEF USB Offline localhost 3AP0124801000190 USB Offline localhost 3XB0124808000760 USB Offline localhost 46G0124C16000276 USB Offline localhost 4FHBB24B09100380 USB Offline localhost 4FHBB24B09100433 USB Connected localhost COM1 UART Ready unknown... COM2 UART Ready unknown... COM3 UART Ready unknown... ] [2025-08-27 12:21:32,187] [62512] [Hdc] [DEBUG] [Dmlib ignore device 0123456789ABCDEF on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 12:21:32,188] [62512] [Hdc] [DEBUG] [Dmlib ignore device 3AP0124801000190 on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 12:21:32,188] [62512] [Hdc] [DEBUG] [Dmlib ignore device 3XB0124808000760 on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 12:21:32,189] [62512] [Hdc] [DEBUG] [Dmlib ignore device 46G0124C16000276 on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 12:21:32,189] [62512] [Hdc] [DEBUG] [Dmlib ignore device 4FHBB24B09100380 on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 12:21:32,190] [62512] [Hdc] [DEBUG] [Dmlib get device 4FHBB24B09100433 on 127.0.0.1:8710, state: Connected] [2025-08-27 12:21:32,190] [62512] [Hdc] [DEBUG] [Dmlib ignore device COM1 on 127.0.0.1:8710 that is not in config, state: Ready] [2025-08-27 12:21:32,191] [62512] [Hdc] [DEBUG] [Dmlib ignore device COM2 on 127.0.0.1:8710 that is not in config, state: Ready] [2025-08-27 12:21:32,191] [62512] [Hdc] [DEBUG] [Dmlib ignore device COM3 on 127.0.0.1:8710 that is not in config, state: Ready] [2025-08-27 12:21:32,192] [62512] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 4FHBB24B09100433 ] [2025-08-27 12:21:32,192] [62512] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-08-27 12:21:32,193] [62512] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-08-27 12:21:32,193] [62512] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000001BC79329CF0>) host is 127.0.0.1, port is 8710, device sn is 4FHBB24B09100433, usb type is usb-hdc] [2025-08-27 12:21:32,194] [62512] [Hdc] [DEBUG] [4FHBB24B09100433 execute command: hdc shell param get const.product.devicetype with timeout 5.0s] [2025-08-27 12:21:32,387] [62512] [Device] [DEBUG] [wearable] [2025-08-27 12:21:32,388] [62512] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-08-27 12:21:32,388] [62512] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-08-27 12:21:32,388] [62512] [ManagerDevice] [DEBUG] [Device connected: 4FHBB24B09100433 default 127.0.0.1 8710, state: TestDeviceState.ONLINE] [2025-08-27 12:21:32,389] [62512] [ManagerDevice] [DEBUG] [Set device 4FHBB24B09100433 recover_state to true] [2025-08-27 12:21:32,496] [20000] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 12:21:32,496] [20000] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 12:21:32,496] [20000] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 12:21:32,497] [20000] [ManagerDevice] [DEBUG] [Require device label is: phone] [2025-08-27 12:21:32,497] [20000] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4FHBB24B09100433, label:wearable}, selection option:{device sn:[], label:phone}] [2025-08-27 12:21:32,497] [20000] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 12:21:32,497] [20000] [ManagerDevice] [DEBUG] [Wait for available device founded] [2025-08-27 12:21:33,510] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:33,510] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:33,511] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1520, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55103), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:33,556] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1520, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55103), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:33,556] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] [2025-08-27 12:21:35,505] [20000] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 12:21:35,505] [20000] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 12:21:35,505] [20000] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 12:21:35,505] [20000] [ManagerDevice] [DEBUG] [Require device label is: phone] [2025-08-27 12:21:35,506] [20000] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4FHBB24B09100433, label:wearable}, selection option:{device sn:[], label:phone}] [2025-08-27 12:21:35,506] [20000] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 12:21:35,507] [20000] [ManagerDevice] [DEBUG] [Wait for available device founded] [2025-08-27 12:21:35,567] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:35,568] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:35,568] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=796, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55108), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:35,612] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=796, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55108), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:35,613] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] [2025-08-27 12:21:37,629] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:37,630] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:37,631] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=796, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55112), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:37,675] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=796, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55112), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:37,676] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] [2025-08-27 12:21:39,687] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:39,688] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:39,689] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1524, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55117), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:39,733] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1524, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55117), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:39,733] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] [2025-08-27 12:21:40,510] [20000] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 12:21:40,510] [20000] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 12:21:40,511] [20000] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 12:21:40,511] [20000] [ManagerDevice] [DEBUG] [Require device label is: phone] [2025-08-27 12:21:40,512] [20000] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4FHBB24B09100433, label:wearable}, selection option:{device sn:[], label:phone}] [2025-08-27 12:21:40,512] [20000] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 12:21:40,513] [20000] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 12:21:40,513] [20000] [ManagerAospDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 12:21:40,513] [20000] [ManagerAospDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 12:21:40,513] [20000] [ManagerAospDevice] [DEBUG] [Require device label is: phone] [2025-08-27 12:21:40,514] [20000] [ManagerAospDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 12:21:40,514] [20000] [ManagerAospDevice] [DEBUG] [Wait for available device founded] [2025-08-27 12:21:41,522] [20000] [ManagerAospDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 12:21:41,522] [20000] [ManagerAospDevice] [DEBUG] [Require device label is: phone] [2025-08-27 12:21:41,522] [20000] [ManagerAospDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 12:21:41,524] [20000] [ManagerAospDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 12:21:41,524] [20000] [ManagerEnv] [DEBUG] [Require label is 'phone', then next] [2025-08-27 12:21:41,524] [20000] [Scheduler] [DEBUG] ['TC_Framework_SDK_DFX_Performance_006' is waiting available device] [2025-08-27 12:21:41,525] [20000] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4FHBB24B09100433, label:wearable}, selection option:{device sn:[], label:phone}] [2025-08-27 12:21:41,526] [20000] [Scheduler] [INFO] [[1 / 1] Executing: C:/Users/g60042218/PycharmProjects/untitled/HMSCoreHAP/IntegrationTest/DFX/Python/performance/testcases/TC_Framework_SDK_DFX_Performance_006.py, Driver: DeviceTest] [2025-08-27 12:21:41,526] [20000] [Scheduler] [ERROR] [[Environment-0101021] Test source required 1 devices, actually 0 devices were found [Suggestions] 测试用例的设备条件不满足] [2025-08-27 12:21:41,527] [20000] [Utils] [INFO] [C:\Users\g60042218\PycharmProjects\untitled\reports\2025-08-27-12-21-31\result\TC_Framework_SDK_DFX_Performance_006.xml does not exist, create an empty report] [2025-08-27 12:21:41,530] [20000] [ReporterHelper] [INFO] [Generate data report: C:\Users\g60042218\PycharmProjects\untitled\reports\2025-08-27-12-21-31\result\TC_Framework_SDK_DFX_Performance_006.xml] [2025-08-27 12:21:41,742] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:41,743] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:41,743] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1588, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55121), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:41,788] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1588, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55121), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:41,788] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] [2025-08-27 12:21:43,513] [62508] [Concurrent] [DEBUG] [Queue monitor thread end] [2025-08-27 12:21:43,793] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:43,794] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:43,796] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1568, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55125), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:43,839] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1568, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55125), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:43,841] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] [2025-08-27 12:21:44,535] [20000] [ResultReporter] [INFO] [2025-08-27 12:21:44,536] [20000] [ResultReporter] [INFO] [**************************************************] [2025-08-27 12:21:44,537] [20000] [ResultReporter] [INFO] [************** Start generate reports ************] [2025-08-27 12:21:44,538] [20000] [ResultReporter] [INFO] [**************************************************] [2025-08-27 12:21:44,538] [20000] [ResultReporter] [INFO] [2025-08-27 12:21:44,590] [20000] [ResultReporter] [INFO] [Test Summary: modules: 1, repeat: 1, run modules: 0, total: 0, passed: 0, failed: 0, blocked: 0, ignored: 0, unavailable: 1] [2025-08-27 12:21:44,591] [20000] [ResultReporter] [INFO] [Log path: C:\Users\g60042218\PycharmProjects\untitled\reports\2025-08-27-12-21-31] [2025-08-27 12:21:44,591] [20000] [ResultReporter] [INFO] [Generate test report: file:///C:/Users/g60042218/PycharmProjects/untitled/reports/2025-08-27-12-21-31/summary_report.html] [2025-08-27 12:21:44,592] [20000] [ResultReporter] [INFO] [Generate report data: file:///C:/Users/g60042218/PycharmProjects/untitled/reports/2025-08-27-12-21-31/report_data.json] [2025-08-27 12:21:44,593] [20000] [ResultReporter] [INFO] [The total tests of TC_Framework_SDK_DFX_Performance_006 module is 0] [2025-08-27 12:21:44,594] [20000] [ReporterHelper] [INFO] [Generate data report: C:\Users\g60042218\PycharmProjects\untitled\reports\2025-08-27-12-21-31\summary_report.xml] [2025-08-27 12:21:44,595] [20000] [ResultReporter] [INFO] [Generate record file: C:\Users\g60042218\PycharmProjects\untitled\reports\2025-08-27-12-21-31\task_info.record] [2025-08-27 12:21:44,595] [20000] [ResultReporter] [INFO] [Generate summary ini: C:\Users\g60042218\PycharmProjects\untitled\reports\2025-08-27-12-21-31\summary.ini] [2025-08-27 12:21:44,600] [20000] [ResultReporter] [INFO] [Copy summary files to C:\Users\g60042218\.xdevice\latest] [2025-08-27 12:21:44,606] [20000] [ResultReporter] [INFO] [2025-08-27 12:21:44,607] [20000] [ResultReporter] [INFO] [**************************************************] [2025-08-27 12:21:44,607] [20000] [ResultReporter] [INFO] [************** Ended generate reports ************] [2025-08-27 12:21:44,607] [20000] [ResultReporter] [INFO] [**************************************************] [2025-08-27 12:21:44,607] [20000] [ResultReporter] [INFO] [2025-08-27 12:21:44,608] [20000] [Utils] [DEBUG] [Show the current environment. Please wait.] [2025-08-27 12:21:45,850] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:45,851] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:45,852] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=740, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55129), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:45,898] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=740, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55129), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:45,898] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] [2025-08-27 12:21:46,312] [20000] [Utils] [DEBUG] [hypium==6.0.5.11] [2025-08-27 12:21:46,312] [20000] [Utils] [DEBUG] [hypium-turbo==6.0.5.17] [2025-08-27 12:21:46,312] [20000] [Utils] [DEBUG] [xdevice==6.0.5.10] [2025-08-27 12:21:46,313] [20000] [Utils] [DEBUG] [xdevice-aosp==6.0.5.10] [2025-08-27 12:21:46,313] [20000] [Utils] [DEBUG] [xdevice-aw==5.0.2.21] [2025-08-27 12:21:46,313] [20000] [Utils] [DEBUG] [xdevice-devicetest==6.0.5.10] [2025-08-27 12:21:46,314] [20000] [Utils] [DEBUG] [xdevice-oh-apptest==2.25.1.1081] [2025-08-27 12:21:46,314] [20000] [Utils] [DEBUG] [xdevice-ohos==6.0.5.10] [2025-08-27 12:21:46,314] [20000] [Scheduler] [DEBUG] [Starting to notify stage...] [2025-08-27 12:21:46,315] [20000] [Scheduler] [DEBUG] [Starting to upload task result...] [2025-08-27 12:21:46,318] [63388] [Analysis] [DEBUG] [No need to upload analysis data] [2025-08-27 12:21:47,908] [58664] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 12:21:47,908] [58664] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 12:21:47,909] [58664] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1732, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55134), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:47,956] [58664] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1732, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 55134), raddr=('127.0.0.1', 8710)>] [2025-08-27 12:21:47,957] [58664] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>] Process finished with exit code 0 分析一下
最新发布
08-28
[info] [Appium] Welcome to Appium v1.20.2 [info] [Appium] Non-default server args: [info] [Appium] relaxedSecurityEnabled: true [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 200 5 ms - 40 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"desiredCapabilities":{"platformName\"":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName\"":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1750921438941 (15:03:58 GMT+0800 (中国标准时间)) [debug] [BaseDriver] Event 'newSessionStarted' logged at 1750921438942 (15:03:58 GMT+0800 (中国标准时间)) [debug] [MJSONWP] Encountered internal error running command: Error: You must include a platformName capability [debug] [MJSONWP] at AppiumDriver.getDriverAndVersionForCaps (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\lib\appium.js:216:13) [debug] [MJSONWP] at AppiumDriver.createSession (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\lib\appium.js:324:66) [debug] [MJSONWP] at commandExecutor (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\driver.js:334:9) [debug] [MJSONWP] at AppiumDriver.executeCommand (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\driver.js:348:15) [debug] [MJSONWP] at AppiumDriver.executeCommand (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\lib\appium.js:533:26) [debug] [MJSONWP] at asyncHandler (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:297:34) [debug] [MJSONWP] at D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:423:15 [debug] [MJSONWP] at Layer.handle [as handle_request] (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5) [debug] [MJSONWP] at next (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\route.js:137:13) [debug] [MJSONWP] at Route.dispatch (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\route.js:112:3) [debug] [MJSONWP] at Layer.handle [as handle_request] (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5) [debug] [MJSONWP] at D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:281:22 [debug] [MJSONWP] at Function.process_params (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:335:12) [debug] [MJSONWP] at next (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10) [debug] [MJSONWP] at logger (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\morgan\index.js:144:5) [debug] [MJSONWP] at Layer.handle [as handle_request] (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5) [debug] [MJSONWP] at trim_prefix (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:317:13) [debug] [MJSONWP] at D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:284:7 [debug] [MJSONWP] at Function.process_params (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:335:12) [debug] [MJSONWP] at next (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10) [debug] [MJSONWP] at D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\body-parser\lib\read.js:130:5 [debug] [MJSONWP] at invokeCallback (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\raw-body\index.js:224:16) [debug] [MJSONWP] at done (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\raw-body\index.js:213:7) [debug] [MJSONWP] at IncomingMessage.onEnd (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\raw-body\index.js:273:7) [debug] [MJSONWP] at IncomingMessage.emit (events.js:208:15) [debug] [MJSONWP] at endReadableNT (_stream_readable.js:1168:12) [debug] [MJSONWP] at processTicksAndRejections (internal/process/task_queues.js:77:11) [info] [HTTP] <-- POST /wd/hub/session 500 27 ms - 179 [info] [HTTP]  [info] [HTTP] --> DELETE /wd/hub/session [info] [HTTP] {} [debug] [HTTP] No route found for /wd/hub/session [info] [HTTP] <-- DELETE /wd/hub/session 404 5 ms - 211 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"desiredCapabilities":{"ensureWebviewsHavePages":true,"platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"ensureWebviewsHavePages":true,"platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1750921458583 (15:04:18 GMT+0800 (中国标准时间)) [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.20.2 creating new AndroidUiautomator2Driver (v1.61.2) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "ensureWebviewsHavePages": true, [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "newCommandTimeout": 0, [debug] [BaseDriver] "connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] connectHardwareKeyboard [info] [BaseDriver] Session created with session id: a7def776-063b-41be-b908-d8c598571316 [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application[debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [BaseDriver] Event 'newSessionStarted' logged at 1750921458808 (15:04:18 GMT+0800 (中国标准时间)) [debug] [MJSONWP] Encountered internal error running command: Error: Could not find 'adb.exe' in ["D:\\android-sdk-windows\\platform-tools\\adb.exe","D:\\android-sdk-windows\\emulator\\adb.exe","D:\\android-sdk-windows\\cmdline-tools\\latest\\bin\\adb.exe","D:\\android-sdk-windows\\tools\\adb.exe","D:\\android-sdk-windows\\tools\\bin\\adb.exe","D:\\android-sdk-windows\\adb.exe"]. Do you have Android Build Tools installed at 'D:\android-sdk-windows'? [debug] [MJSONWP] at ADB.getBinaryFromSdkRoot (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:125:11) [debug] [MJSONWP] at ADB.getSdkBinaryPath (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:44:10) [debug] [MJSONWP] at ADB.getAdbWithCorrectAdbPath (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\adb-commands.js:89:26) [debug] [MJSONWP] at Function.createADB (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-adb\lib\adb.js:56:3) [debug] [MJSONWP] at Object.createBaseADB (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\android-helpers.js:108:10) [debug] [MJSONWP] at Object.getDeviceInfoFromCaps (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\android-helpers.js:193:15) [debug] [MJSONWP] at AndroidUiautomator2Driver.startUiAutomator2Session (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:327:26) [debug] [MJSONWP] at AndroidUiautomator2Driver.createSession (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:224:7) [debug] [MJSONWP] at AppiumDriver.createSession (D:\Appium-windows-1.20.2\resources\app\node_modules\appium\lib\appium.js:371:35) [info] [HTTP] <-- POST /wd/hub/session 500 258 ms - 574 [info] [HTTP]  [info] [HTTP] --> DELETE /wd/hub/session [info] [HTTP] {} [debug] [HTTP] No route found for /wd/hub/session [info] [HTTP] <-- DELETE /wd/hub/session 404 0 ms - 211 [info] [HTTP] 
06-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值