Connecting to adb for Device List Monitoring...

本文解决了在使用Eclipse IDE进行Android开发时遇到的一个常见问题:安装好SDK和ADT后,Eclipse 3.4.1启动时不断尝试连接ADB但失败。问题的根源在于防火墙阻止了连接,解决方案是关闭防火墙。

出现类似如下问题:

安装好SDK和ADT之后启动eclipse3.4.1报错:控制台一直打印 
 
[2009-01-07 17:22:38 - ddms]Checking 'D:\google\tool\android-sdk-windows-1.0_r2\tools\adb.exe version' 
[2009-01-07 17:22:38 - ddms]Monitor is up 
[2009-01-07 17:22:38 - ddms]Failed to initialize Monitor Thread: Unable to establish loopback connection 
[2009-01-07 17:22:38 - adb]Android Debug Bridge version 1.0.20 
[2009-01-07 17:22:38 - ddms]Launching 'D:\google\tool\android-sdk-windows-1.0_r2\tools\adb.exe start-server' to ensure ADB is running. 
[2009-01-07 17:22:38 - ddms]'adb start-server' succeeded 
[2009-01-07 17:22:38 - DeviceMonitor]Opening adb connection 
[2009-01-07 17:22:38 - DeviceMonitor]Connecting to adb for Device List Monitoring... 
[2009-01-07 17:22:38 - DeviceMonitor]Connection attempts: 1 
[2009-01-07 17:22:39 - DeviceMonitor]Opening adb connection 
[2009-01-07 17:22:39 - DeviceMonitor]Connecting to adb for Device List Monitoring... 
[2009-01-07 17:22:39 - DeviceMonitor]Connection attempts: 2 

综合以下现象:

1.只要打开的eclipse项目中包含android的(而非运行状态),系统就会自动启动,进程adb.

应该是eclipse的ide有调用android的ddms引起的吧

原因:多半是防火墙造成的.关闭防火墙就可以了。

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
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 13:03:02,608] [65096] [Kit] [INFO] [Load the cpuinsnum collector.] [2025-08-27 13:03:02,609] [65096] [Kit] [INFO] [Load the cpu load collector.] [2025-08-27 13:03:02,612] [65096] [Kit] [INFO] [Load the latency collector.] [2025-08-27 13:03:02,613] [65096] [Kit] [INFO] [Load the memory collector.] [2025-08-27 13:03:02,615] [65096] [Kit] [INFO] [Load the power dubai collector.] [2025-08-27 13:03:02,616] [65096] [Kit] [INFO] [Load the power current and voltage collector.] [2025-08-27 13:03:02,618] [65096] [Kit] [INFO] [Load the residency collector.] [2025-08-27 13:03:02,619] [65096] [Kit] [INFO] [Load the thread num collector.] [2025-08-27 13:03:02,689] [65096] [Main] [INFO] [*************** xDevice Test Framework 6.0.5.10 Starting ***************] [2025-08-27 13:03:02,707] [65096] [ConfigManager] [DEBUG] [User config path: C:\Users\g60042218\PycharmProjects\untitled\config\user_config.xml] [2025-08-27 13:03:02,707] [65096] [Adb] [DEBUG] [AdbMonitor map add host 127.0.0.1, map is {'127.0.0.1': <aosp.environment.dmlib.AdbMonitor object at 0x00000200D62FA2F0>}] [2025-08-27 13:03:02,707] [65096] [Adb] [DEBUG] [AdbMonitor usb type is usb-hdc] [2025-08-27 13:03:02,750] [65096] [Adb] [DEBUG] [AdbMonitor hdc version: Ver: 3.0.0b] [2025-08-27 13:03:02,750] [65096] [Adb] [DEBUG] [The connector is normalized version, so does not need to be killed.] [2025-08-27 13:03:03,422] [65096] [Utils] [DEBUG] [Check hdc.exe proc running output: hdc.exe 1320 Services 0 30,132 K] [2025-08-27 13:03:03,422] [44288] [Adb] [DEBUG] [current connector name is hdc] [2025-08-27 13:03:03,423] [44288] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 13:03:03,423] [44288] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 13:03:03,423] [65096] [ConfigManager] [DEBUG] [User config path: C:\Users\g60042218\PycharmProjects\untitled\config\user_config.xml] [2025-08-27 13:03:03,423] [65096] [Hdc] [DEBUG] [HdcMonitor map add host 127.0.0.1, map is {'127.0.0.1': <ohos.environment.dmlib.HdcMonitor object at 0x00000200D62F9C60>}] [2025-08-27 13:03:03,423] [65096] [Hdc] [DEBUG] [Peek running process to check expect connector.] [2025-08-27 13:03:03,424] [44288] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1528, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62349), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:03,439] [65096] [Hdc] [DEBUG] [Peak end] [2025-08-27 13:03:03,439] [65312] [Hdc] [DEBUG] [current connector name is hdc] [2025-08-27 13:03:03,439] [65096] [ConfigManager] [DEBUG] [User config path: C:\Users\g60042218\PycharmProjects\untitled\config\user_config.xml] [2025-08-27 13:03:03,440] [65096] [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 13:03:03,441] [65096] [ConfigManager] [DEBUG] [User config path: C:\Users\g60042218\PycharmProjects\untitled\config\user_config.xml] [2025-08-27 13:03:03,442] [65096] [SuiteReporter] [DEBUG] [Clear failed case list] [2025-08-27 13:03:03,442] [65096] [SuiteReporter] [DEBUG] [Clear report result] [2025-08-27 13:03:03,442] [65096] [Request] [DEBUG] [StartTime=2025-08-27 13:03:03] [2025-08-27 13:03:03,443] [65096] [Request] [INFO] [Report path: C:\Users\g60042218\PycharmProjects\untitled\reports\2025-08-27-13-03-03] [2025-08-27 13:03:03,445] [65096] [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 13:03:03,445] [65096] [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 13:03:03,447] [65096] [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 13:03:03,449] [59648] [Concurrent] [DEBUG] [Queue monitor thread start] [2025-08-27 13:03:03,450] [65096] [ManagerEnv] [DEBUG] [Visit options to find device] [2025-08-27 13:03:03,450] [65096] [ManagerEnv] [DEBUG] [Apply device from managers:{'ManagerDevice': <ohos.managers.manager_device.ManagerDevice object at 0x00000200D6285E40>, 'ManagerAospDevice': <aosp.managers.manager_device.ManagerAospDevice object at 0x00000200D6287190>}] [2025-08-27 13:03:03,450] [65096] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 13:03:03,451] [65096] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 13:03:03,451] [65096] [ManagerDevice] [DEBUG] [Require device label is: phone] [2025-08-27 13:03:03,451] [65096] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 13:03:03,452] [65096] [ManagerDevice] [DEBUG] [Wait for available device founded] [2025-08-27 13:03:03,473] [44288] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1528, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62349), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:03,474] [44288] [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 13:03:04,056] [65312] [Utils] [DEBUG] [Check hdc.exe proc running output: hdc.exe 1320 Services 0 30,260 K] [2025-08-27 13:03:04,057] [65312] [Hdc] [DEBUG] [HdcMonitor connecting to hdc for Device List Monitoring] [2025-08-27 13:03:04,057] [65312] [Hdc] [DEBUG] [HdcMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 13:03:04,058] [65312] [Hdc] [DEBUG] [HdcMonitor Connected to hdc for device monitoring, main_hdc_connection is <socket.socket fd=948, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62351), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:04,141] [65312] [Hdc] [DEBUG] [had received length is: 326] [2025-08-27 13:03:04,156] [65312] [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 13:03:04,157] [65312] [Hdc] [DEBUG] [Dmlib ignore device 0123456789ABCDEF on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 13:03:04,157] [65312] [Hdc] [DEBUG] [Dmlib ignore device 3AP0124801000190 on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 13:03:04,158] [65312] [Hdc] [DEBUG] [Dmlib ignore device 3XB0124808000760 on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 13:03:04,158] [65312] [Hdc] [DEBUG] [Dmlib ignore device 46G0124C16000276 on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 13:03:04,158] [65312] [Hdc] [DEBUG] [Dmlib ignore device 4FHBB24B09100380 on 127.0.0.1:8710 that is not in config, state: Offline] [2025-08-27 13:03:04,159] [65312] [Hdc] [DEBUG] [Dmlib get device 4FHBB24B09100433 on 127.0.0.1:8710, state: Connected] [2025-08-27 13:03:04,159] [65312] [Hdc] [DEBUG] [Dmlib ignore device COM1 on 127.0.0.1:8710 that is not in config, state: Ready] [2025-08-27 13:03:04,159] [65312] [Hdc] [DEBUG] [Dmlib ignore device COM2 on 127.0.0.1:8710 that is not in config, state: Ready] [2025-08-27 13:03:04,159] [65312] [Hdc] [DEBUG] [Dmlib ignore device COM3 on 127.0.0.1:8710 that is not in config, state: Ready] [2025-08-27 13:03:04,160] [65312] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 4FHBB24B09100433 ] [2025-08-27 13:03:04,160] [65312] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-08-27 13:03:04,160] [65312] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-08-27 13:03:04,161] [65312] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x00000200D62FA380>) host is 127.0.0.1, port is 8710, device sn is 4FHBB24B09100433, usb type is usb-hdc] [2025-08-27 13:03:04,162] [65312] [Hdc] [DEBUG] [4FHBB24B09100433 execute command: hdc shell param get const.product.devicetype with timeout 5.0s] [2025-08-27 13:03:04,358] [65312] [Device] [DEBUG] [wearable] [2025-08-27 13:03:04,359] [65312] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-08-27 13:03:04,359] [65312] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-08-27 13:03:04,359] [65312] [ManagerDevice] [DEBUG] [Device connected: 4FHBB24B09100433 default 127.0.0.1 8710, state: TestDeviceState.ONLINE] [2025-08-27 13:03:04,360] [65312] [ManagerDevice] [DEBUG] [Set device 4FHBB24B09100433 recover_state to true] [2025-08-27 13:03:04,465] [65096] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 13:03:04,466] [65096] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 13:03:04,467] [65096] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 13:03:04,467] [65096] [ManagerDevice] [DEBUG] [Require device label is: phone] [2025-08-27 13:03:04,468] [65096] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4FHBB24B09100433, label:wearable}, selection option:{device sn:[], label:phone}] [2025-08-27 13:03:04,469] [65096] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 13:03:04,469] [65096] [ManagerDevice] [DEBUG] [Wait for available device founded] [2025-08-27 13:03:05,489] [44288] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 13:03:05,490] [44288] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 13:03:05,490] [44288] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=804, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62354), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:05,536] [44288] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=804, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62354), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:05,537] [44288] [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 13:03:07,476] [65096] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 13:03:07,476] [65096] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 13:03:07,477] [65096] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 13:03:07,477] [65096] [ManagerDevice] [DEBUG] [Require device label is: phone] [2025-08-27 13:03:07,477] [65096] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4FHBB24B09100433, label:wearable}, selection option:{device sn:[], label:phone}] [2025-08-27 13:03:07,477] [65096] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 13:03:07,478] [65096] [ManagerDevice] [DEBUG] [Wait for available device founded] [2025-08-27 13:03:07,554] [44288] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 13:03:07,556] [44288] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 13:03:07,558] [44288] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1612, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62358), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:07,601] [44288] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1612, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62358), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:07,603] [44288] [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 13:03:09,608] [44288] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 13:03:09,608] [44288] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 13:03:09,609] [44288] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=804, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62362), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:09,655] [44288] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=804, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62362), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:09,656] [44288] [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 13:03:11,664] [44288] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-27 13:03:11,665] [44288] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-27 13:03:11,666] [44288] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1640, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62366), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:11,710] [44288] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1640, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 62366), raddr=('127.0.0.1', 8710)>] [2025-08-27 13:03:11,711] [44288] [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 13:03:12,483] [65096] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 13:03:12,484] [65096] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 13:03:12,484] [65096] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 13:03:12,484] [65096] [ManagerDevice] [DEBUG] [Require device label is: phone] [2025-08-27 13:03:12,485] [65096] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4FHBB24B09100433, label:wearable}, selection option:{device sn:[], label:phone}] [2025-08-27 13:03:12,485] [65096] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 13:03:12,485] [65096] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 13:03:12,486] [65096] [ManagerAospDevice] [DEBUG] [Apply device: apply lock con lock] [2025-08-27 13:03:12,486] [65096] [ManagerAospDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 13:03:12,486] [65096] [ManagerAospDevice] [DEBUG] [Require device label is: phone] [2025-08-27 13:03:12,486] [65096] [ManagerAospDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 13:03:12,487] [65096] [ManagerAospDevice] [DEBUG] [Wait for available device founded] [2025-08-27 13:03:13,497] [65096] [ManagerAospDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-08-27 13:03:13,498] [65096] [ManagerAospDevice] [DEBUG] [Require device label is: phone] [2025-08-27 13:03:13,498] [65096] [ManagerAospDevice] [DEBUG] [Allocate device option: release list con lock] [2025-08-27 13:03:13,499] [65096] [ManagerAospDevice] [DEBUG] [Apply device: release lock con lock] [2025-08-27 13:03:13,499] [65096] [ManagerEnv] [DEBUG] [Require label is 'phone', then next] [2025-08-27 13:03:13,500] [65096] [Scheduler] [DEBUG] ['TC_Framework_SDK_DFX_Performance_006' is waiting available device] [2025-08-27 13:03:13,501] [65096] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4FHBB24B09100433, label:wearable}, selection option:{device sn:[], label:phone}] [2025-08-27 13:03:13,502] [65096] [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 13:03:13,502] [65096] [Scheduler] [ERROR] [[Environment-0101021] Test source required 1 devices, actually 0 devices were found [Suggestions] 测试用例的设备条件不满足] 分析一下
08-28
[2025-12-08 12:16:58,904] [1428] [Request] [INFO] [Report path: E:\untitled9\reports\2025-12-08-12-16-58] [2025-12-08 12:16:58,905] [1428] [Tracker] [INFO] [Tracker initiating...] [2025-12-08 12:16:58,906] [1428] [Tracker] [INFO] [Tracking event...] [2025-12-08 12:16:58,907] [1428] [TestSource] [DEBUG] [Testcases directories: ['E:\\untitled9\\testcases', 'C:\\Users\\g60042218\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\testcases', 'E:\\untitled9', 'C:\\Users\\g60042218\\AppData\\Local\\Programs\\Python\\Python311\\Lib']] [2025-12-08 12:16:58,907] [1428] [TestSource] [DEBUG] [Test sources: ['E:/untitled9/HarmonyOSSDK/DFX/AccountKit/testcases/myFamily/TC_DFX_Myfamily_Power_001.py']] [2025-12-08 12:16:58,909] [1428] [OptionUtil] [DEBUG] [Assign device options and it's length is 1] [2025-12-08 12:16:58,909] [1428] [Impl] [DEBUG] [Run command: run -l E:/untitled9/HarmonyOSSDK/DFX/AccountKit/testcases/myFamily/TC_DFX_Myfamily_Power_001.py -ta agent_mode:bin;screenshot:true] [2025-12-08 12:16:58,910] [2292] [Concurrent] [DEBUG] [Queue monitor thread start] [2025-12-08 12:16:58,910] [1428] [Tracker] [INFO] [Tracking event...] [2025-12-08 12:16:58,911] [1428] [OptionUtil] [DEBUG] [Assign device options and it's length is 1] [2025-12-08 12:16:58,912] [1428] [ManagerEnv] [DEBUG] [Visit options to find device] [2025-12-08 12:16:58,912] [1428] [ManagerEnv] [DEBUG] [Apply device from managers:{'ManagerDevice': <ohos.managers.manager_device.ManagerDevice object at 0x000001CB7FB95590>, 'ManagerAospDevice': <aosp.managers.manager_device.ManagerAospDevice object at 0x000001CB7FB8EFD0>}] [2025-12-08 12:16:58,912] [1428] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-12-08 12:16:58,912] [1428] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-12-08 12:16:58,912] [1428] [ManagerDevice] [DEBUG] [Require device label is: None] [2025-12-08 12:16:58,913] [1428] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-12-08 12:16:58,913] [1428] [ManagerDevice] [DEBUG] [Wait for available device founded] [2025-12-08 12:16:59,226] [30192] [Utils] [DEBUG] [Check hdc.exe proc running output: hdc.exe 26248 Console 1 16,548 K] [2025-12-08 12:16:59,226] [30192] [Hdc] [DEBUG] [HdcMonitor connecting to hdc for Device List Monitoring] [2025-12-08 12:16:59,226] [30192] [Hdc] [DEBUG] [HdcMonitor socket connection host: 127.*.*.1, port: 8710] [2025-12-08 12:16:59,227] [30192] [Hdc] [DEBUG] [HdcMonitor Connected to hdc for device monitoring, main_hdc_connection is <socket.socket fd=304, family=2, type=1, proto=0, laddr=('127.0.0.1', 58774), raddr=('127.0.0.1', 8710)>] [2025-12-08 12:16:59,256] [30192] [Hdc] [DEBUG] [had received length is: 206] [2025-12-08 12:16:59,263] [30192] [Hdc] [INFO] [4QE0225612000173 USB Offline localhost 4YM0125303000119 USB Connected localhost 5GV0125422000014 USB Offline localhost COM1 UART Ready unknown... COM2 UART Ready unknown... COM3 UART Ready unknown... ] [2025-12-08 12:16:59,264] [30192] [Hdc] [DEBUG] [Dmlib ignore device 4QE0225612000173 on 127.0.0.1:8710, state: Offline] [2025-12-08 12:16:59,265] [30192] [Hdc] [DEBUG] [Dmlib get device 4YM0125303000119 on 127.0.0.1:8710, state: Connected] [2025-12-08 12:16:59,266] [30192] [Hdc] [DEBUG] [Dmlib ignore device 5GV0125422000014 on 127.0.0.1:8710, state: Offline] [2025-12-08 12:16:59,267] [30192] [Hdc] [DEBUG] [Dmlib ignore device COM1 on 127.0.0.1:8710, state: Ready] [2025-12-08 12:16:59,268] [30192] [Hdc] [DEBUG] [Dmlib ignore device COM2 on 127.0.0.1:8710, state: Ready] [2025-12-08 12:16:59,269] [30192] [Hdc] [DEBUG] [Dmlib ignore device COM3 on 127.0.0.1:8710, state: Ready] [2025-12-08 12:16:59,270] [30192] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 4QE0225612000173 ] [2025-12-08 12:16:59,271] [30192] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-12-08 12:16:59,272] [30192] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-12-08 12:16:59,273] [30192] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000001CB7FBB1310>) host is 127.0.0.1, port is 8710, device sn is 4QE0225612000173, usb type is usb-hdc] [2025-12-08 12:16:59,274] [30192] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-12-08 12:16:59,275] [30192] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-12-08 12:16:59,276] [30192] [ManagerDevice] [DEBUG] [Remove: apply list con lock] [2025-12-08 12:16:59,277] [30192] [ManagerDevice] [DEBUG] [Remove: release list con lock] [2025-12-08 12:16:59,278] [30192] [ManagerDevice] [DEBUG] [Device connected: 4QE0225612000173 default 127.0.0.1 8710, state: TestDeviceState.NOT_AVAILABLE] [2025-12-08 12:16:59,279] [30192] [ManagerDevice] [DEBUG] [Set device 4QE0225612000173 recover_state to true] [2025-12-08 12:16:59,279] [30192] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 4YM0125303000119 ] [2025-12-08 12:16:59,280] [30192] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-12-08 12:16:59,281] [30192] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-12-08 12:16:59,281] [30192] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000001CB7FBB1110>) host is 127.0.0.1, port is 8710, device sn is 4YM0125303000119, usb type is usb-hdc] [2025-12-08 12:16:59,283] [30192] [Hdc] [DEBUG] [4YM0125303000119 execute command: hdc shell param get const.product.devicetype with timeout 5.0s] [2025-12-08 12:16:59,383] [30192] [Device] [DEBUG] [phone] [2025-12-08 12:16:59,384] [30192] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-12-08 12:16:59,384] [30192] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-12-08 12:16:59,384] [30192] [ManagerDevice] [DEBUG] [Device connected: 4YM0125303000119 default 127.0.0.1 8710, state: TestDeviceState.ONLINE] [2025-12-08 12:16:59,384] [30192] [ManagerDevice] [DEBUG] [Set device 4YM0125303000119 recover_state to true] [2025-12-08 12:16:59,385] [30192] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 5GV0125422000014 ] [2025-12-08 12:16:59,385] [30192] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-12-08 12:16:59,385] [30192] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-12-08 12:16:59,386] [30192] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000001CB7FBAEA90>) host is 127.0.0.1, port is 8710, device sn is 5GV0125422000014, usb type is usb-hdc] [2025-12-08 12:16:59,386] [30192] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-12-08 12:16:59,386] [30192] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-12-08 12:16:59,386] [30192] [ManagerDevice] [DEBUG] [Remove: apply list con lock] [2025-12-08 12:16:59,387] [30192] [ManagerDevice] [DEBUG] [Remove: release list con lock] [2025-12-08 12:16:59,387] [30192] [ManagerDevice] [DEBUG] [Device connected: 5GV0125422000014 default 127.0.0.1 8710, state: TestDeviceState.NOT_AVAILABLE] [2025-12-08 12:16:59,387] [30192] [ManagerDevice] [DEBUG] [Set device 5GV0125422000014 recover_state to true] [2025-12-08 12:16:59,387] [30192] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn COM1 ] [2025-12-08 12:16:59,388] [30192] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-12-08 12:16:59,388] [30192] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-12-08 12:16:59,388] [30192] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000001CB7FBB1A90>) host is 127.0.0.1, port is 8710, device sn is COM1, usb type is usb-hdc] [2025-12-08 12:16:59,388] [30192] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-12-08 12:16:59,389] [30192] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-12-08 12:16:59,389] [30192] [ManagerDevice] [DEBUG] [Remove: apply list con lock] [2025-12-08 12:16:59,389] [30192] [ManagerDevice] [DEBUG] [Remove: release list con lock] [2025-12-08 12:16:59,390] [30192] [ManagerDevice] [DEBUG] [Device connected: COM1 default 127.0.0.1 8710, state: TestDeviceState.NOT_AVAILABLE] [2025-12-08 12:16:59,390] [30192] [ManagerDevice] [DEBUG] [Set device COM1 recover_state to true] [2025-12-08 12:16:59,390] [30192] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn COM2 ] [2025-12-08 12:16:59,390] [30192] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-12-08 12:16:59,391] [30192] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-12-08 12:16:59,391] [30192] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000001CB7FBB1CD0>) host is 127.0.0.1, port is 8710, device sn is COM2, usb type is usb-hdc] [2025-12-08 12:16:59,391] [30192] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-12-08 12:16:59,391] [30192] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-12-08 12:16:59,392] [30192] [ManagerDevice] [DEBUG] [Remove: apply list con lock] [2025-12-08 12:16:59,392] [30192] [ManagerDevice] [DEBUG] [Remove: release list con lock] [2025-12-08 12:16:59,392] [30192] [ManagerDevice] [DEBUG] [Device connected: COM2 default 127.0.0.1 8710, state: TestDeviceState.NOT_AVAILABLE] [2025-12-08 12:16:59,392] [30192] [ManagerDevice] [DEBUG] [Set device COM2 recover_state to true] [2025-12-08 12:16:59,393] [30192] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn COM3 ] [2025-12-08 12:16:59,393] [30192] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-12-08 12:16:59,393] [30192] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-12-08 12:16:59,393] [30192] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000001CB7FBB2050>) host is 127.0.0.1, port is 8710, device sn is COM3, usb type is usb-hdc] [2025-12-08 12:16:59,394] [30192] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-12-08 12:16:59,394] [30192] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-12-08 12:16:59,394] [30192] [ManagerDevice] [DEBUG] [Remove: apply list con lock] [2025-12-08 12:16:59,394] [30192] [ManagerDevice] [DEBUG] [Remove: release list con lock] [2025-12-08 12:16:59,395] [30192] [ManagerDevice] [DEBUG] [Device connected: COM3 default 127.0.0.1 8710, state: TestDeviceState.NOT_AVAILABLE] [2025-12-08 12:16:59,395] [30192] [ManagerDevice] [DEBUG] [Set device COM3 recover_state to true] [2025-12-08 12:16:59,925] [1428] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-12-08 12:16:59,925] [1428] [ManagerDevice] [DEBUG] [Apply device: apply lock con lock] [2025-12-08 12:16:59,926] [1428] [ManagerDevice] [DEBUG] [Allocate device option: apply list con lock] [2025-12-08 12:16:59,926] [1428] [ManagerDevice] [DEBUG] [Require device label is: None] [2025-12-08 12:16:59,927] [1428] [ManagerEnv] [DEBUG] [Do matches, device:{state:Available, sn:4YM0125303000119, label:phone}, selection option:{device sn:[], label:None}] [2025-12-08 12:16:59,927] [1428] [ManagerDevice] [DEBUG] [Allocate device sn: 4YM0125303000119, type: <class 'ohos.environment.device.Device'>] [2025-12-08 12:16:59,927] [1428] [ManagerDevice] [DEBUG] [Allocate device option: release list con lock] [2025-12-08 12:16:59,928] [1428] [ManagerDevice] [DEBUG] [Apply device: release lock con lock] [2025-12-08 12:16:59,928] [1428] [ManagerEnv] [DEBUG] [add_device, sn: 4YM0125303000119, id: Phone1] [2025-12-08 12:16:59,928] [1428] [ManagerEnv] [DEBUG] [Device 4YM0125303000119: extend value: {'type': 'device'}] [2025-12-08 12:16:59,929] [1428] [Utils] [DEBUG] [Input name:testcases/queryStandard, paths:None, alt dir:None] [2025-12-08 12:16:59,930] [1428] [Utils] [WARNING] [[Environment-0101002] File path does not exist, path: testcases/queryStandard] [2025-12-08 12:16:59,931] [1428] [Utils] [DEBUG] [Paths is:] [2025-12-08 12:16:59,931] [1428] [Utils] [DEBUG] [C:\Users\g60042218\AppData\Local\Programs\Python\Python311\Lib\resource] [2025-12-08 12:16:59,932] [1428] [Utils] [DEBUG] [C:\Users\g60042218\AppData\Local\Programs\Python\Python311\Lib] [2025-12-08 12:16:59,932] [1428] [Utils] [DEBUG] [E:\untitled9\testcases] [2025-12-08 12:16:59,932] [1428] [Utils] [DEBUG] [E:\untitled9\resource] [2025-12-08 12:16:59,933] [1428] [Utils] [DEBUG] [E:\untitled9] [2025-12-08 12:16:59,933] [1428] [Utils] [DEBUG] [C:\Users\g60042218\AppData\Local\Programs\Python\Python311\Lib\testcases] [2025-12-08 12:16:59,934] [1428] [Hdc] [DEBUG] [4YM0125303000119 execute command: hdc shell param get const.product.model with timeout 5.0s] [2025-12-08 12:17:00,006] [1428] [Hdc] [DEBUG] [4YM0125303000119 execute command: hdc shell param get const.product.devicetype with timeout 5.0s] [2025-12-08 12:17:00,066] [1428] [Device] [DEBUG] [phone] [2025-12-08 12:17:00,066] [1428] [Hdc] [DEBUG] [4YM0125303000119 execute command: hdc shell param get const.product.software.version with timeout 5.0s] [2025-12-08 12:17:00,131] [1428] [Hdc] [DEBUG] [4YM0125303000119 execute command: hdc shell param get const.product.software.version with timeout 5.0s] [2025-12-08 12:17:00,208] [1428] [Scheduler] [INFO] [[1 / 1] Executing: E:/untitled9/HarmonyOSSDK/DFX/AccountKit/testcases/myFamily/TC_DFX_Myfamily_Power_001.py, Device: 4YM0125303000119, Driver: DeviceTest] [2025-12-08 12:17:00,209] [1428] [Scheduler] [INFO] [Driver executing in thread 12836] [2025-12-08 12:17:00,210] [1428] [Scheduler] [INFO] [Thread 2025-12-08-12-17-00-208272 execute started] [2025-12-08 12:26:59,063] [23608] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1388, family=2, type=1, proto=0, laddr=('127.0.0.1', 58773), raddr=('127.0.0.1', 5062)>] [2025-12-08 12:26:59,063] [23608] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=2, type=1, proto=0>] [2025-12-08 12:27:01,065] [23608] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-12-08 12:27:01,065] [23608] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 5062] [2025-12-08 12:27:01,066] [23608] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1388, family=2, type=1, proto=0, laddr=('127.0.0.1', 57490), raddr=('127.0.0.1', 5062)>] [2025-12-08 12:37:02,097] [23608] [Adb] [DEBUG] [ConnectionResetError occurs] [2025-12-08 12:37:02,098] [23608] [Adb] [DEBUG] [Socket read timeout, timout:10s] [2025-12-08 12:37:02,099] [23608] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1388, family=2, type=1, proto=0, laddr=('127.0.0.1', 57490), raddr=('127.0.0.1', 5062)>] [2025-12-08 12:37:02,101] [23608] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=2, type=1, proto=0>] [2025-12-08 12:37:04,103] [23608] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-12-08 12:37:04,103] [23608] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 5062] [2025-12-08 12:37:04,104] [23608] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=1388, family=2, type=1, proto=0, laddr=('127.0.0.1', 52394), raddr=('127.0.0.1', 5062)>] [2025-12-08 12:47:05,120] [23608] [Adb] [DEBUG] [ConnectionResetError occurs] [2025-12-08 12:47:05,120] [23608] [Adb] [DEBUG] [Socket read timeout, timout:10s] [2025-12-08 12:47:05,120] [23608] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=1388, family=2, type=1, proto=0, laddr=('127.0.0.1', 52394), raddr=('127.0.0.1', 5062)>] [2025-12-08 12:47:05,120] [23608] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=2, type=1, proto=0>] [2025-12-08 12:47:07,122] [23608] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-12-08 12:47:07,122] [23608] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 5062] [2025-12-08 12:47:07,123] [23608] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=3460, family=2, type=1, proto=0, laddr=('127.0.0.1', 54506), raddr=('127.0.0.1', 5062)>] [2025-12-08 12:57:08,157] [23608] [Adb] [DEBUG] [ConnectionResetError occurs] [2025-12-08 12:57:08,158] [23608] [Adb] [DEBUG] [Socket read timeout, timout:10s] [2025-12-08 12:57:08,158] [23608] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=3460, family=2, type=1, proto=0, laddr=('127.0.0.1', 54506), raddr=('127.0.0.1', 5062)>] [2025-12-08 12:57:08,159] [23608] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=2, type=1, proto=0>] [2025-12-08 12:57:10,159] [23608] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-12-08 12:57:10,160] [23608] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 5062] [2025-12-08 12:57:10,160] [23608] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=3460, family=2, type=1, proto=0, laddr=('127.0.0.1', 54853), raddr=('127.0.0.1', 5062)>] [2025-12-08 13:07:11,173] [23608] [Adb] [DEBUG] [ConnectionResetError occurs] [2025-12-08 13:07:11,173] [23608] [Adb] [DEBUG] [Socket read timeout, timout:10s] [2025-12-08 13:07:11,173] [23608] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=3460, family=2, type=1, proto=0, laddr=('127.0.0.1', 54853), raddr=('127.0.0.1', 5062)>] [2025-12-08 13:07:11,174] [23608] [Adb] [DEBUG] [Handle exception monitor loop, main hdc connection closed, main hdc connection: <socket.socket [closed] fd=-1, family=2, type=1, proto=0>] [2025-12-08 13:07:13,175] [23608] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-12-08 13:07:13,175] [23608] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 5062] [2025-12-08 13:07:13,176] [23608] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=3460, family=2, type=1, proto=0, laddr=('127.0.0.1', 49919), raddr=('127.0.0.1', 5062)>] [2025-12-08 13:13:56,380] [2292] [Concurrent] [DEBUG] [Thread 2025-12-08-12-17-00-208272 execute finished] [2025-12-08 13:13:56,380] [2292] [Concurrent] [DEBUG] [Queue monitor thread end] [2025-12-08 13:13:57,789] [1428] [Device] [DEBUG] [start reset device...] [2025-12-08 13:13:57,790] [1428] [HypiumInner] [DEBUG] [clear remote objects, current: 6, remain 0, total delete: 726, total delete backend: 714, total create: 721] [2025-12-08 13:13:57,790] [1428] [HypiumInner] [DEBUG] [total active number: 0] [2025-12-08 13:13:57,791] [1428] [Device] [DEBUG] [close socket for device] [2025-12-08 13:13:57,792] [1428] [Hdc] [INFO] [4YM0125303000119 execute command: hdc shell pidof com.ohos.devicetest with timeout 300.0s] [2025-12-08 13:13:57,902] [1428] [Hdc] [INFO] [4YM0125303000119 execute command: hdc shell kill -9 21358 with timeout 300.0s] [2025-12-08 13:13:58,003] [1428] [Hdc] [INFO] [4YM0125303000119 execute command: hdc shell netstat -atn | grep :8011 with timeout 300.0s] [2025-12-08 13:13:58,089] [1428] [Device] [DEBUG] [tcp 0 0 127.0.0.1:38104 127.0.0.1:8011 TIME_WAIT ] [2025-12-08 13:13:58,090] [1428] [Device] [DEBUG] [4YM0125303000119 execute command hdc fport rm tcp:9922 tcp:8011 ] [2025-12-08 13:13:58,141] [1428] [Device] [DEBUG] [Remove forward ruler success, ruler:tcp:9922 tcp:8011] [2025-12-08 13:13:58,142] [1428] [Device] [DEBUG] [close socket for device] [2025-12-08 13:13:58,142] [1428] [Device] [DEBUG] [4YM0125303000119 execute command hdc fport rm tcp:9997 tcp:8012 ] [2025-12-08 13:13:58,187] [1428] [Device] [DEBUG] [Remove forward ruler success, ruler:tcp:9997 tcp:8012] [2025-12-08 13:13:58,187] [1428] [ResultReporter] [INFO] [2025-12-08 13:13:58,188] [1428] [ResultReporter] [INFO] [**************************************************] [2025-12-08 13:13:58,188] [1428] [ResultReporter] [INFO] [************** Start generate reports ************] [2025-12-08 13:13:58,188] [1428] [ResultReporter] [INFO] [**************************************************] [2025-12-08 13:13:58,188] [1428] [ResultReporter] [INFO] [2025-12-08 13:13:58,222] [1428] [ResultReporter] [INFO] [Test Summary: modules: 1, repeat: 1, run modules: 1, total: 1, passed: 1, failed: 0, blocked: 0, ignored: 0, unavailable: 0] [2025-12-08 13:13:58,222] [1428] [ResultReporter] [INFO] [Log path: E:\untitled9\reports\2025-12-08-12-16-58] [2025-12-08 13:13:58,223] [1428] [ResultReporter] [INFO] [Generate test report: file:///E:/untitled9/reports/2025-12-08-12-16-58/summary_report.html] [2025-12-08 13:13:58,224] [1428] [ReporterHelper] [INFO] [Generate data report: E:\untitled9\reports\2025-12-08-12-16-58\summary_report.xml] [2025-12-08 13:13:58,225] [1428] [ResultReporter] [INFO] [Generate record file: E:\untitled9\reports\2025-12-08-12-16-58\task_info.record] [2025-12-08 13:13:58,226] [1428] [ResultReporter] [INFO] [Generate summary ini: E:\untitled9\reports\2025-12-08-12-16-58\summary.ini] [2025-12-08 13:13:58,229] [1428] [ResultReporter] [INFO] [Copy summary files to C:\Users\G60042~1\AppData\Local\Temp\xdevice_data\latest] [2025-12-08 13:13:58,234] [1428] [ResultReporter] [INFO] [2025-12-08 13:13:58,235] [1428] [ResultReporter] [INFO] [**************************************************] [2025-12-08 13:13:58,235] [1428] [ResultReporter] [INFO] [************** Ended generate reports ************] [2025-12-08 13:13:58,235] [1428] [ResultReporter] [INFO] [**************************************************] [2025-12-08 13:13:58,235] [1428] [ResultReporter] [INFO] [2025-12-08 13:13:58,236] [1428] [Utils] [DEBUG] [Show the current environment. Please wait.] [2025-12-08 13:13:58,754] [1428] [Utils] [DEBUG] [hypium==6.0.2.5] [2025-12-08 13:13:58,754] [1428] [Utils] [DEBUG] [xdevice==6.0.2.20] [2025-12-08 13:13:58,754] [1428] [Utils] [DEBUG] [xdevice-aosp==6.0.2.20] [2025-12-08 13:13:58,754] [1428] [Utils] [DEBUG] [xdevice-aw==5.0.2.21] [2025-12-08 13:13:58,755] [1428] [Utils] [DEBUG] [xdevice-devicetest==6.0.2.20] [2025-12-08 13:13:58,755] [1428] [Utils] [DEBUG] [xdevice-ohos==6.0.2.20] [2025-12-08 13:13:58,755] [1428] [Scheduler] [DEBUG] [Starting to notify stage...] [2025-12-08 13:13:58,755] [1428] [Tracker] [INFO] [Tracking event...] [2025-12-08 13:13:58,756] [1428] [Scheduler] [DEBUG] [Starting to upload task result...] [2025-12-08 13:13:58,756] [1428] [Scheduler] [DEBUG] [Starting to flush track data...] [2025-12-08 13:13:58,756] [1428] [Tracker] [INFO] [Tracker flushing...] [2025-12-08 13:13:58,759] [1428] [TrackUploader] [INFO] [Generated zip file: C:\Users\G60042~1\AppData\Local\Temp\xdevice_data\tracker_data\2025120812165827256\tracker_data_20251208121658.zip] [2025-12-08 13:13:59,384] [1428] [TrackUploader] [INFO] [Uploading C:\Users\G60042~1\AppData\Local\Temp\xdevice_data\tracker_data\2025120812165827256\tracker_data_20251208121658.zip result: {'name': 'tracker_data_20251208121658.zip', 'size': 837, 'md5': 'a6400bcb9186b0440c3dbc565f299c34', 'sha256': 'cae222a588bc212655de7f8e299ea809c4aa758c1ad3742f7c2d56106d64a189', 'sha512': '745e8496e78af213d18ab56b31ba7281275951ca249c98f60f87388557a75ff4f11a7588d2c82ad0c2685ad215c132d39d4c18744b48faf21371ba690e0401c2'}] [2025-12-08 13:13:59,387] [1428] [Scheduler] [DEBUG] [Starting to upload report end...] [2025-12-08 13:13:59,387] [1428] [Impl] [DEBUG] [No need auto retry]
最新发布
12-09
D:\DeviceTestTools\python\python.exe D:\gz\untitled9\untitled9\.idea\hypium\tmpExecute.py "" [2025-08-26 13:00:12,586] [35120] [HypiumBasic] [INFO] [Fail to load hypium_hooks: ModuleNotFoundError("No module named 'hypium_extensions'")] [2025-08-26 13:00:12,995] [35120] [Kit] [INFO] [Load the cpuinsnum collector.] [2025-08-26 13:00:12,998] [35120] [Kit] [INFO] [Load the cpu load collector.] [2025-08-26 13:00:13,001] [35120] [Kit] [INFO] [Load the latency collector.] [2025-08-26 13:00:13,003] [35120] [Kit] [INFO] [Load the memory collector.] [2025-08-26 13:00:13,005] [35120] [Kit] [INFO] [Load the power dubai collector.] [2025-08-26 13:00:13,007] [35120] [Kit] [INFO] [Load the power current and voltage collector.] [2025-08-26 13:00:13,010] [35120] [Kit] [INFO] [Load the residency collector.] [2025-08-26 13:00:13,012] [35120] [Kit] [INFO] [Load the thread num collector.] [2025-08-26 13:00:13,025] [35120] [Main] [INFO] [*************** xDevice Test Framework 6.0.3.15 Starting ***************] [2025-08-26 13:00:13,027] [35120] [ConfigManager] [DEBUG] [User config path: D:\gz\untitled9\untitled9\config\user_config.xml] [2025-08-26 13:00:13,028] [35120] [Adb] [DEBUG] [AdbMonitor map add host 127.0.0.1, map is {'127.0.0.1': <aosp.environment.dmlib.AdbMonitor object at 0x000002E8375ECC88>}] [2025-08-26 13:00:13,028] [35120] [Adb] [DEBUG] [AdbMonitor usb type is usb-hdc] [2025-08-26 13:00:13,067] [35120] [Adb] [DEBUG] [AdbMonitor hdc version: Ver: 3.0.0b] [2025-08-26 13:00:13,067] [35120] [Adb] [DEBUG] [The connector is normalized version, so does not need to be killed.] [2025-08-26 13:00:13,624] [35120] [Utils] [DEBUG] [Check hdc.exe proc running output: hdc.exe 1320 Services 0 15,260 K] [2025-08-26 13:00:13,625] [48396] [Adb] [DEBUG] [current connector name is hdc] [2025-08-26 13:00:13,625] [48396] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-08-26 13:00:13,625] [48396] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-26 13:00:13,625] [35120] [ConfigManager] [DEBUG] [User config path: D:\gz\untitled9\untitled9\config\user_config.xml] [2025-08-26 13:00:13,626] [35120] [Hdc] [DEBUG] [HdcMonitor map add host 127.0.0.1, map is {'127.0.0.1': <ohos.environment.dmlib.HdcMonitor object at 0x000002E8375F1208>}] [2025-08-26 13:00:13,626] [35120] [Hdc] [DEBUG] [Peek running process to check expect connector.] [2025-08-26 13:00:13,626] [48396] [Adb] [DEBUG] [AdbMonitor Connected to hdc for device monitoring, main_adb_connection is <socket.socket fd=908, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 50460), raddr=('127.0.0.1', 8710)>] [2025-08-26 13:00:13,639] [35120] [Hdc] [DEBUG] [Peak end] [2025-08-26 13:00:13,640] [51880] [Hdc] [DEBUG] [current connector name is hdc] [2025-08-26 13:00:13,640] [35120] [ConfigManager] [DEBUG] [User config path: D:\gz\untitled9\untitled9\config\user_config.xml] [2025-08-26 13:00:13,641] [35120] [Console] [INFO] [Input command: run -l tc_framework_power_sa_queryCloudCapabilities_002 -ta agent_mode:bin;screenshot:true] [2025-08-26 13:00:13,642] [35120] [ConfigManager] [DEBUG] [User config path: D:\gz\untitled9\untitled9\config\user_config.xml] [2025-08-26 13:00:13,642] [35120] [SuiteReporter] [DEBUG] [Clear failed case list] [2025-08-26 13:00:13,642] [35120] [SuiteReporter] [DEBUG] [Clear report result] [2025-08-26 13:00:13,642] [35120] [Request] [DEBUG] [StartTime=2025-08-26 13:00:13] [2025-08-26 13:00:13,644] [35120] [Request] [INFO] [Report path: D:\gz\untitled9\untitled9\reports\2025-08-26-13-00-13] [2025-08-26 13:00:13,644] [35120] [Tracker] [INFO] [Tracker initiating...] [2025-08-26 13:00:13,645] [35120] [Tracker] [INFO] [Tracking event...] [2025-08-26 13:00:13,652] [35120] [TestSource] [DEBUG] [Testcases directories: ['D:\\gz\\untitled9\\untitled9\\testcases', 'D:\\DeviceTestTools\\python\\lib\\testcases', 'D:\\gz\\untitled9\\untitled9', 'D:\\DeviceTestTools\\python\\lib']] [2025-08-26 13:00:13,652] [35120] [TestSource] [DEBUG] [Test sources: ['tc_framework_power_sa_queryCloudCapabilities_002']] [2025-08-26 13:00:13,653] [35120] [OptionUtil] [DEBUG] [Assign device options and it's length is 1] [2025-08-26 13:00:13,654] [35120] [Impl] [DEBUG] [Run command: run -l tc_framework_power_sa_queryCloudCapabilities_002 -ta agent_mode:bin;screenshot:true] [2025-08-26 13:00:13,654] [35120] [Impl] [ERROR] [[Environment-0101014] Test source 'tc_framework_power_sa_queryCloudCapabilities_002' or its json does not exist [Suggestions] 1、确认是否存在对应的测试文件或用例json;2、检查user_config.xml的testcase路径配置;3、确保xdevice框架程序工作目录为脚本工程目录] [ErrorNo=00000] [2025-08-26 13:00:13,654] [35120] [Utils] [INFO] [D:\gz\untitled9\untitled9\reports\2025-08-26-13-00-13\result\tc_framework_power_sa_queryCloudCapabilities_002.xml does not exist, create an empty report] [2025-08-26 13:00:13,655] [35120] [ReporterHelper] [INFO] [Generate data report: D:\gz\untitled9\untitled9\reports\2025-08-26-13-00-13\result\tc_framework_power_sa_queryCloudCapabilities_002.xml] [2025-08-26 13:00:13,657] [35120] [ResultReporter] [INFO] [2025-08-26 13:00:13,657] [35120] [ResultReporter] [INFO] [**************************************************] [2025-08-26 13:00:13,657] [35120] [ResultReporter] [INFO] [************** Start generate reports ************] [2025-08-26 13:00:13,657] [35120] [ResultReporter] [INFO] [**************************************************] [2025-08-26 13:00:13,658] [35120] [ResultReporter] [INFO] [2025-08-26 13:00:13,673] [48396] [Adb] [DEBUG] [Handle exception monitor loop: <socket.socket fd=908, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 50460), raddr=('127.0.0.1', 8710)>] [2025-08-26 13:00:13,673] [48396] [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-26 13:00:13,684] [35120] [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-26 13:00:13,685] [35120] [ResultReporter] [INFO] [Log path: D:\gz\untitled9\untitled9\reports\2025-08-26-13-00-13] [2025-08-26 13:00:13,685] [35120] [ResultReporter] [INFO] [Generate test report: file:///D:/gz/untitled9/untitled9/reports/2025-08-26-13-00-13/summary_report.html] [2025-08-26 13:00:13,685] [35120] [ResultReporter] [INFO] [Generate report data: file:///D:/gz/untitled9/untitled9/reports/2025-08-26-13-00-13/report_data.json] [2025-08-26 13:00:13,685] [35120] [ResultReporter] [INFO] [The total tests of tc_framework_power_sa_queryCloudCapabilities_002 module is 0] [2025-08-26 13:00:13,686] [35120] [ReporterHelper] [INFO] [Generate data report: D:\gz\untitled9\untitled9\reports\2025-08-26-13-00-13\summary_report.xml] [2025-08-26 13:00:13,687] [35120] [ResultReporter] [INFO] [Generate record file: D:\gz\untitled9\untitled9\reports\2025-08-26-13-00-13\task_info.record] [2025-08-26 13:00:13,687] [35120] [ResultReporter] [INFO] [Generate summary ini: D:\gz\untitled9\untitled9\reports\2025-08-26-13-00-13\summary.ini] [2025-08-26 13:00:13,691] [35120] [ResultReporter] [INFO] [Copy summary files to C:\Users\G60042~1\AppData\Local\Temp\xdevice_data\latest] [2025-08-26 13:00:13,697] [35120] [ResultReporter] [INFO] [2025-08-26 13:00:13,697] [35120] [ResultReporter] [INFO] [**************************************************] [2025-08-26 13:00:13,697] [35120] [ResultReporter] [INFO] [************** Ended generate reports ************] [2025-08-26 13:00:13,697] [35120] [ResultReporter] [INFO] [**************************************************] [2025-08-26 13:00:13,697] [35120] [ResultReporter] [INFO] [2025-08-26 13:00:13,697] [35120] [Utils] [DEBUG] [Show the current environment. Please wait.] [2025-08-26 13:00:14,194] [35120] [Utils] [DEBUG] [hypium==6.0.3.21] [2025-08-26 13:00:14,194] [35120] [Utils] [DEBUG] [xdevice==6.0.3.15] [2025-08-26 13:00:14,194] [35120] [Utils] [DEBUG] [xdevice-aosp==6.0.3.15] [2025-08-26 13:00:14,194] [35120] [Utils] [DEBUG] [xdevice-aw==5.0.2.21] [2025-08-26 13:00:14,195] [35120] [Utils] [DEBUG] [xdevice-devicetest==6.0.3.15] [2025-08-26 13:00:14,195] [35120] [Utils] [DEBUG] [xdevice-ohos==6.0.3.15] [2025-08-26 13:00:14,195] [35120] [Scheduler] [DEBUG] [Starting to notify stage...] [2025-08-26 13:00:14,195] [35120] [Tracker] [INFO] [Tracking event...] [2025-08-26 13:00:14,195] [35120] [Scheduler] [DEBUG] [Starting to upload task result...] [2025-08-26 13:00:14,195] [35120] [Scheduler] [DEBUG] [Starting to flush track data...] [2025-08-26 13:00:14,196] [35120] [Tracker] [INFO] [Tracker flushing...] [2025-08-26 13:00:14,199] [35120] [TrackUploader] [INFO] [Generated zip file: C:\Users\G60042~1\AppData\Local\Temp\xdevice_data\tracker_data\2025082613001345964\tracker_data_20250826130013.zip] [2025-08-26 13:00:14,202] [51880] [Utils] [DEBUG] [Check hdc.exe proc running output: hdc.exe 1320 Services 0 15,260 K] [2025-08-26 13:00:14,202] [51880] [Hdc] [DEBUG] [HdcMonitor connecting to hdc for Device List Monitoring] [2025-08-26 13:00:14,203] [51880] [Hdc] [DEBUG] [HdcMonitor socket connection host: 127.*.*.1, port: 8710] [2025-08-26 13:00:14,203] [51880] [Hdc] [DEBUG] [HdcMonitor Connected to hdc for device monitoring, main_hdc_connection is <socket.socket fd=1644, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 50462), raddr=('127.0.0.1', 8710)>] [2025-08-26 13:00:14,297] [51880] [Hdc] [DEBUG] [had received length is: 330] [2025-08-26 13:00:14,313] [51880] [Hdc] [INFO] [0123456789ABCDEF USB Offline localhost 3AP0124801000190 USB Offline localhost 3XB0124808000760 USB Connected localhost 46G0124C16000276 USB Offline localhost 4FHBB24B09100380 USB Connected localhost 4FHBB24B09100433 USB Connected localhost COM1 UART Ready unknown... COM2 UART Ready unknown... COM3 UART Ready unknown... ] [2025-08-26 13:00:14,313] [51880] [Hdc] [DEBUG] [Dmlib ignore device 0123456789ABCDEF on 127.0.0.1:8710, state: Offline] [2025-08-26 13:00:14,313] [51880] [Hdc] [DEBUG] [Dmlib ignore device 3AP0124801000190 on 127.0.0.1:8710, state: Offline] [2025-08-26 13:00:14,313] [51880] [Hdc] [DEBUG] [Dmlib get device 3XB0124808000760 on 127.0.0.1:8710, state: Connected] [2025-08-26 13:00:14,314] [51880] [Hdc] [DEBUG] [Dmlib ignore device 46G0124C16000276 on 127.0.0.1:8710, state: Offline] [2025-08-26 13:00:14,314] [51880] [Hdc] [DEBUG] [Dmlib get device 4FHBB24B09100380 on 127.0.0.1:8710, state: Connected] [2025-08-26 13:00:14,314] [51880] [Hdc] [DEBUG] [Dmlib get device 4FHBB24B09100433 on 127.0.0.1:8710, state: Connected] [2025-08-26 13:00:14,314] [51880] [Hdc] [DEBUG] [Dmlib ignore device COM1 on 127.0.0.1:8710, state: Ready] [2025-08-26 13:00:14,314] [51880] [Hdc] [DEBUG] [Dmlib ignore device COM2 on 127.0.0.1:8710, state: Ready] [2025-08-26 13:00:14,314] [51880] [Hdc] [DEBUG] [Dmlib ignore device COM3 on 127.0.0.1:8710, state: Ready] [2025-08-26 13:00:14,314] [51880] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 0123456789ABCDEF ] [2025-08-26 13:00:14,314] [51880] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-08-26 13:00:14,314] [51880] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-08-26 13:00:14,314] [51880] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000002E837D4D088>) host is 127.0.0.1, port is 8710, device sn is 0123456789ABCDEF, usb type is usb-hdc] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Remove: apply list con lock] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Remove: release list con lock] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Device connected: 0123456789ABCDEF default 127.0.0.1 8710, state: TestDeviceState.NOT_AVAILABLE] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Set device 0123456789ABCDEF recover_state to true] [2025-08-26 13:00:14,315] [51880] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 3AP0124801000190 ] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000002E837D4CF48>) host is 127.0.0.1, port is 8710, device sn is 3AP0124801000190, usb type is usb-hdc] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-08-26 13:00:14,315] [51880] [ManagerDevice] [DEBUG] [Remove: apply list con lock] [2025-08-26 13:00:14,316] [51880] [ManagerDevice] [DEBUG] [Remove: release list con lock] [2025-08-26 13:00:14,316] [51880] [ManagerDevice] [DEBUG] [Device connected: 3AP0124801000190 default 127.0.0.1 8710, state: TestDeviceState.NOT_AVAILABLE] [2025-08-26 13:00:14,316] [51880] [ManagerDevice] [DEBUG] [Set device 3AP0124801000190 recover_state to true] [2025-08-26 13:00:14,316] [51880] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 3XB0124808000760 ] [2025-08-26 13:00:14,316] [51880] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-08-26 13:00:14,316] [51880] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-08-26 13:00:14,329] [51880] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000002E837D4C688>) host is 127.0.0.1, port is 8710, device sn is 3XB0124808000760, usb type is usb-hdc] [2025-08-26 13:00:14,329] [51880] [Hdc] [DEBUG] [3XB0124808000760 execute command: hdc shell param get const.product.devicetype with timeout 5.0s] [2025-08-26 13:00:14,454] [51880] [Device] [DEBUG] [2in1] [2025-08-26 13:00:14,454] [51880] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-08-26 13:00:14,454] [51880] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-08-26 13:00:14,454] [51880] [ManagerDevice] [DEBUG] [Device connected: 3XB0124808000760 default 127.0.0.1 8710, state: TestDeviceState.ONLINE] [2025-08-26 13:00:14,454] [51880] [ManagerDevice] [DEBUG] [Set device 3XB0124808000760 recover_state to true] [2025-08-26 13:00:14,454] [51880] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 46G0124C16000276 ] [2025-08-26 13:00:14,454] [51880] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-08-26 13:00:14,454] [51880] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-08-26 13:00:14,454] [51880] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000002E837D4C708>) host is 127.0.0.1, port is 8710, device sn is 46G0124C16000276, usb type is usb-hdc] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Remove: apply list con lock] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Remove: release list con lock] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Device connected: 46G0124C16000276 default 127.0.0.1 8710, state: TestDeviceState.NOT_AVAILABLE] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Set device 46G0124C16000276 recover_state to true] [2025-08-26 13:00:14,455] [51880] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 4FHBB24B09100380 ] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-08-26 13:00:14,455] [51880] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000002E837D4C2C8>) host is 127.0.0.1, port is 8710, device sn is 4FHBB24B09100380, usb type is usb-hdc] [2025-08-26 13:00:14,456] [51880] [Hdc] [DEBUG] [4FHBB24B09100380 execute command: hdc shell param get const.product.devicetype with timeout 5.0s] [2025-08-26 13:00:14,703] [51880] [Device] [DEBUG] [wearable] [2025-08-26 13:00:14,703] [51880] [ManagerDevice] [DEBUG] [Append device: apply list con lock] [2025-08-26 13:00:14,703] [51880] [ManagerDevice] [DEBUG] [Append device: release list con lock] [2025-08-26 13:00:14,704] [51880] [ManagerDevice] [DEBUG] [Device connected: 4FHBB24B09100380 default 127.0.0.1 8710, state: TestDeviceState.ONLINE] [2025-08-26 13:00:14,704] [51880] [ManagerDevice] [DEBUG] [Set device 4FHBB24B09100380 recover_state to true] [2025-08-26 13:00:14,704] [51880] [Hdc] [DEBUG] [DeviceConnector device connected:host 127.0.0.1, port 8710, device sn 4FHBB24B09100433 ] [2025-08-26 13:00:14,704] [51880] [ManagerDevice] [DEBUG] [Find device: apply list con lock] [2025-08-26 13:00:14,704] [51880] [ManagerDevice] [DEBUG] [Find device: release list con lock] [2025-08-26 13:00:14,704] [51880] [ManagerDevice] [DEBUG] [Create device(<ohos.environment.device.Device object at 0x000002E837D4C8C8>) host is 127.0.0.1, port is 8710, device sn is 4FHBB24B09100433, usb type is usb-hdc] [2025-08-26 13:00:14,705] [51880] [Hdc] [DEBUG] [4FHBB24B09100433 execute command: hdc shell param get const.product.devicetype with timeout 5.0s] [2025-08-26 13:00:14,804] [35120] [TrackUploader] [INFO] [Uploading C:\Users\G60042~1\AppData\Local\Temp\xdevice_data\tracker_data\2025082613001345964\tracker_data_20250826130013.zip result: {'name': 'tracker_data_20250826130013.zip', 'size': 467, 'md5': '0505d02d59981e459046cec13a4fca86', 'sha256': '0240b146ac1f98f2213652f6872e14e2e5305f523b5a6d508f0336369212e28f', 'sha512': '964362d8d59f3d62f47df7c817817889df92159ecf5657dbb78f939f6234a8bc76c19710cb4a0cd335b4a846b68dec3e484a21eb3256e0216db99d4558578e38'}] [2025-08-26 13:00:14,805] [35120] [Scheduler] [DEBUG] [Starting to upload report end...] Process finished with exit code 0 分析一下
08-27
[2025-07-24 14:47:54,080] [57240] [Adb] [DEBUG] [AdbMonitor Connection attempts: 4] [2025-07-24 14:47:54,085] [41260] [ResultReporter] [INFO] [**************************************************] [2025-07-24 14:47:54,096] [41260] [ResultReporter] [INFO] [2025-07-24 14:47:54,407] [41260] [ResultReporter] [INFO] [Test Summary: modules: 1, repeat: 1, run modules: 1, total: 1, passed: 0, failed: 1, blocked: 0, ignored: 0, unavailable: 0] [2025-07-24 14:47:54,412] [41260] [ResultReporter] [INFO] [Log path: Z:\x60088089\gongcheng\5.1\OH-rocket-Next-SGT_6.0.0.2\modelCase_OH\reports\2025-07-24-14-47-39] [2025-07-24 14:47:54,416] [41260] [ResultReporter] [INFO] [Generate test report: file:///Z:/x60088089/gongcheng/5.1/OH-rocket-Next-SGT_6.0.0.2/modelCase_OH/reports/2025-07-24-14-47-39/summary_report.html] [2025-07-24 14:47:54,441] [41260] [ReporterHelper] [INFO] [Generate data report: Z:\x60088089\gongcheng\5.1\OH-rocket-Next-SGT_6.0.0.2\modelCase_OH\reports\2025-07-24-14-47-39\summary_report.xml] [2025-07-24 14:47:54,458] [41260] [ResultReporter] [INFO] [Generate record file: Z:\x60088089\gongcheng\5.1\OH-rocket-Next-SGT_6.0.0.2\modelCase_OH\reports\2025-07-24-14-47-39\task_info.record] [2025-07-24 14:47:54,477] [41260] [ResultReporter] [INFO] [Generate summary ini: Z:\x60088089\gongcheng\5.1\OH-rocket-Next-SGT_6.0.0.2\modelCase_OH\reports\2025-07-24-14-47-39\summary.ini] [2025-07-24 14:47:54,487] [41260] [ResultReporter] [INFO] [Copy summary files to C:\Users\X60088~1\AppData\Local\Temp\xdevice_data\latest] [2025-07-24 14:47:54,514] [41260] [ResultReporter] [INFO] [2025-07-24 14:47:54,519] [41260] [ResultReporter] [INFO] [**************************************************] [2025-07-24 14:47:54,524] [41260] [ResultReporter] [INFO] [************** Ended generate reports ************] [2025-07-24 14:47:54,529] [41260] [ResultReporter] [INFO] [**************************************************] [2025-07-24 14:47:54,534] [41260] [ResultReporter] [INFO] [2025-07-24 14:47:54,541] [41260] [Utils] [DEBUG] [Show the current environment. Please wait.] D:\Python310\lib\site-packages\_distutils_hack\__init__.py:33: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") [2025-07-24 14:47:55,189] [41260] [Utils] [DEBUG] [hypium==5.0.9.13] [2025-07-24 14:47:55,195] [41260] [Utils] [DEBUG] [xdevice==5.0.9.5] [2025-07-24 14:47:55,199] [41260] [Utils] [DEBUG] [xdevice-aosp==5.0.9.5] [2025-07-24 14:47:55,204] [41260] [Utils] [DEBUG] [xdevice-devicetest==5.0.9.5] [2025-07-24 14:47:55,209] [41260] [Utils] [DEBUG] [xdevice-ohos==5.0.9.5] [2025-07-24 14:47:55,214] [41260] [Scheduler] [DEBUG] [Starting to notify stage...] [2025-07-24 14:47:55,220] [41260] [Tracker] [INFO] [Tracking event...] [2025-07-24 14:47:55,226] [41260] [Scheduler] [DEBUG] [Starting to upload task result...] [2025-07-24 14:47:55,231] [41260] [Scheduler] [DEBUG] [Starting to flush track data...] WARNING:tracker:{"extraData": {"id": "171417a5193f4de1bc159232f24319f7", "name": "2025-07-24-14-47-39", "passed": 0, "failures": 1, "blocked": 0, "unavailable": 0, "error": "", "type": "TaskEnd"}, "eventId": "907001002", "userId": "x60088089", "happenTime": "2025-07-24 14:47:55.226", "eventName": "TaskEnd", "version": "5.0.9.5", "productName": "xDevice", "productVersion": "5.0.9.5", "serviceName": "TaskEnd", "serviceVersion": "5.0.9.5"} [2025-07-24 14:47:55,236] [41260] [Tracker] [INFO] [Tracker flushing...] [2025-07-24 14:47:55,245] [41260] [TrackUploader] [INFO] [Generated zip file: C:\Users\X60088~1\AppData\Local\Temp\xdevice_data\tracker_data\2025072414473950500\tracker_data_20250724144739.zip] [2025-07-24 14:47:55,627] [41260] [TrackUploader] [INFO] [Uploading C:\Users\X60088~1\AppData\Local\Temp\xdevice_data\tracker_data\2025072414473950500\tracker_data_20250724144739.zip result: {'message': 'Parameter is not valid for operation [FileServer.fileserver.uploadFile]. Parameter is [file]. Processor is [formData].'}] [2025-07-24 14:47:56,107] [57240] [Adb] [DEBUG] [AdbMonitor connecting to hdc for Device List Monitoring] [2025-07-24 14:47:56,113] [57240] [Adb] [DEBUG] [AdbMonitor socket connection host: 127.*.*.1, port: 5037] [2025-07-24 14:47:56,301] [41260] [TrackUploader] [INFO] [Uploading C:\Users\X60088~1\AppData\Local\Temp\xdevice_data\tracker_data\settle\tracker_data_20250724144739.zip result: {'name': 'tracker_data_20250724144739.zip', 'size': 759, 'md5': '454fa51a48ad13de9ffbe2b6157393c1', 'sha256': '9328a0bdc57f92e31baebedff94da46714637fac7742150164477c92c0ca779f', 'sha512': '01c2d0caef56a790be0063f59838a147392104eba218c79cd5ca52afea65eda4ac8f4f35098ebb9d97964b22cd71171adde5c5e1470752ddabcd131fcf9d374d'}] [2025-07-24 14:47:56,310] [41260] [Scheduler] [DEBUG] [Starting to upload report end...]
07-25
由于提供的引用内容未涉及“Connecting to COM3... Connected.”信息的相关含义、可能场景及处理情况,下面基于专业知识进行分析。 “Connecting to COM3... Connected.” 通常是在计算机与外部设备通过串口(COM 端口)进行通信时出现的提示信息。 ### 含义 - “Connecting to COM3...” 表示计算机正在尝试与 COM3 串口建立连接。COM3 是计算机上的一个串口编号,串口是一种用于数据传输的通信接口。 - “Connected.” 表示连接已经成功建立,计算机和连接到 COM3 端口的外部设备现在可以进行数据传输。 ### 可能场景 - **连接外部硬件设备**:在连接诸如调制解调器、串口打印机、工业控制设备、传感器等外部硬件设备时,这些设备可能被分配到 COM3 端口,当软件尝试与这些设备通信时,就会出现该提示信息。例如,使用串口调试助手连接一个串口传感器,就可能出现这样的提示。 ```python # 示例代码,模拟使用 PySerial 库连接 COM3 串口 import serial try: ser = serial.Serial('COM3', 9600) # 尝试连接 COM3 串口,波特率为 9600 print("Connecting to COM3... Connected.") # 进行数据传输等操作 ser.write(b'Hello, device!') data = ser.readline() print(data) ser.close() except serial.SerialException as e: print(f"Failed to connect to COM3: {e}") ``` - **自动化测试或监控系统**:在自动化测试环境或监控系统中,需要通过串口与设备进行交互,以获取设备的状态信息或控制设备的操作。例如,自动化测试系统需要通过串口向工业控制设备发送测试指令,就会先建立与 COM3 端口的连接。 ### 处理情况 - **正常情况**:如果连接成功后,软件可以按照预定的程序进行数据传输和交互。例如,发送控制指令给设备,接收设备返回的数据等。 - **连接失败**:如果出现“Connecting to COM3... Failed.” 这样的提示,可能是由于以下原因导致: - 设备未正确连接到 COM3 端口,需要检查设备的连接线缆是否插好。 - COM3 端口被其他程序占用,需要关闭占用该端口的程序。 - 设备驱动程序未正确安装,需要重新安装设备的驱动程序。 - 波特率、数据位、停止位、校验位等串口通信参数设置不正确,需要检查并调整这些参数。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值