Commit Graph

47 Commits

Author SHA1 Message Date
余泓铮
429479d3a3 feat: 优化driver层错误码返回 2025-07-14 15:25:15 +08:00
余泓铮
c5c4554860 fix: 更改albums路径 2025-07-04 19:53:41 +08:00
lilong.129
7673a64184 fix: wda offset error by scale 2025-07-02 22:03:40 +08:00
余泓铮
34f6e1f990 feat: 新增判断 2025-07-01 23:15:09 +08:00
lilong.129
62497da0a7 fix: toScale 2025-07-01 22:18:40 +08:00
余泓铮
6e8edcaa53 feat: 优化无用逻辑 2025-06-30 19:41:12 +08:00
余泓铮
dbb72cd801 降低wda初始化接口调用 2025-06-30 19:22:40 +08:00
余泓铮
4ce0178cfd fix: 修改active app info接口 2025-06-29 00:20:51 +08:00
lilong.129
ba43e9fd0e refactor: enhance JSON handling and improve request retry logic in DriverSession 2025-06-27 11:52:53 +08:00
lilong.129
b188d6b29b feat: add device status logging and extend DeviceStatus struct with new fields 2025-06-26 20:09:13 +08:00
lilong.129
32d2f7d27d fix: update input interaction endpoint in WDADriver to use new URL 2025-06-26 19:06:59 +08:00
lilong.129
1b48763e57 refactor: clean up function signatures in DriverSession and WDADriver for improved readability 2025-06-26 14:43:39 +08:00
lilong.129
3e4858db44 refactor: update URL handling in DriverSession and WDADriver, removing base URL dependency for HTTP requests 2025-06-26 14:37:41 +08:00
lilong.129
88d255bce1 refactor: remove GET/POST methods with base URL, streamline HTTP requests in UIA2 and WDA drivers 2025-06-26 14:18:11 +08:00
余泓铮
a31a8c67f0 feat: 优化代码结构 2025-06-26 00:46:07 +08:00
余泓铮
22d4f12114 feat: 重构session和wda,去掉session概念。session_driver改为纯http调用工具 2025-06-26 00:39:09 +08:00
lilong.129
f5f6d177ab fix: optimize report command to avoid creating timestamp directories
- Implement lazy loading for directory creation in config.go
- Add logFile parameter to InitLogger for better control
- Use dynamic directory existence check instead of flags
- Report command now uses console-only logging to prevent directory creation
- Support both JSON and colorized console output formats
- Maintain backward compatibility for all other commands

Changes:
- config.go: Convert directory paths to getter methods with lazy creation
- logger.go: Add logFile parameter and improve logging control
- cmd/root.go: Detect report command and disable file logging
- uixt/*: Update all references to use new getter methods

Fixes the issue where 'hrp report results/' would create unwanted timestamp directories
2025-06-10 12:06:08 +08:00
lilong.129
8cdc71d90b change: RoundToOneDecimal 2025-06-05 17:47:29 +08:00
lilong.129
229fd4678c fix: use localhost instead of 127.0.0.1 2025-05-27 20:16:10 +08:00
lilong.129
4ff2692f02 refactor: move action options 2025-05-25 00:15:18 +08:00
lilong.129
7724cf0062 feat: add uixt tool press_button 2025-05-21 17:25:17 +08:00
lilong.129
9c735bd46a feat: save screenshot after action 2025-05-12 18:04:56 +08:00
lilong.129
0722e92e87 change: remove options for AppLaunch/AppTerminate 2025-05-12 17:36:16 +08:00
lilong.129
00a6ca1f61 change: remove options for AppLaunch/AppTerminate/AppClear 2025-05-12 17:27:48 +08:00
lilong.129
4a2276c7f0 refactor:
1, add options for AppLaunch/AppTerminate/AppClear;
2, add pre hook and post hook for AppLaunch/AppTerminate action
2025-05-09 23:30:49 +08:00
lilong.129
1dfc473d33 feat: add pre hook and post hook for Drag action 2025-05-09 23:10:59 +08:00
lilong.129
f7ec4a06b4 feat: add pre hook and post hook for DoubleTap action 2025-05-09 23:06:45 +08:00
lilong.129
3715cbb432 feat: support pre hook and post hook for actions 2025-05-09 23:01:27 +08:00
徐聪
2b06e4a280 update: fucntion call 2025-05-07 21:39:22 +08:00
lilong.129
032a130418 change: handlerTapAbsXY 2025-05-07 17:15:20 +08:00
lilong.129
81f29cdef5 refactor: replace OpenFile with Open 2025-05-07 16:40:39 +08:00
lilong.129
71dac459e6 refactor: handlerDoubleTap 2025-05-06 00:55:54 +08:00
lilong.129
5943f8c033 refactor: handlerTapAbsXY 2025-05-06 00:26:27 +08:00
lilong.129
ce93df1f23 change: mark ui operation before action 2025-05-05 16:54:59 +08:00
lilong.129
cfc71819d2 feat: mark tap/swipe UI operation 2025-05-05 16:31:13 +08:00
lilong.129
da5042f0a4 fix: potential file inclusion via variable 2025-04-28 21:09:39 +08:00
lilong.129
427cc1dab2 fix: potential file inclusion via variable 2025-04-28 19:59:21 +08:00
lilong.129
4722553537 feat: add PushFile for ADBDriver 2025-03-27 19:56:12 +08:00
lilong.129
7876b747ba feat: add PullFiles for ADBDriver 2025-03-27 19:48:04 +08:00
lilong.129
f73d91da9c feat: add ClearFiles(paths ...string) 2025-03-27 19:37:35 +08:00
lilong.129
d2f92923ee feat: add PullImages for ADBDriver 2025-03-26 19:06:51 +08:00
lilong.129
fb3f8a6fca change: add logs 2025-03-17 20:16:22 +08:00
lilong.129
182de16751 feat: ApplySwipeOffset 2025-03-17 17:57:10 +08:00
lilong.129
9fb53590ca refactor: rename ApplyTapOffset 2025-03-17 17:44:04 +08:00
lilong.129
cc81c00a82 feat: add adb screen record 2025-03-06 16:57:51 +08:00
lilong.129
e187ba824a refactor: save screenshot in async 2025-03-05 16:29:36 +08:00
lilong.129
e107389d6e refactor: move uixt pkg 2025-03-05 11:04:02 +08:00