android-midscene-automation 1.1.11 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (743) hide show
  1. package/README.md +11 -1776
  2. package/bin/android-midscene-automation.js +2 -104
  3. package/package.json +6 -76
  4. package/AI/350/257/206/345/210/253/346/223/215/344/275/234/350/257/264/346/230/216.md +0 -442
  5. package/CHANGELOG.md +0 -286
  6. package/FAQ.md +0 -105
  7. package/USAGE.md +0 -1085
  8. package/artemis-main/.dockerignore +0 -15
  9. package/artemis-main/.env.example +0 -34
  10. package/artemis-main/CONTRIBUTING.md +0 -35
  11. package/artemis-main/Dockerfile +0 -68
  12. package/artemis-main/LICENSE +0 -202
  13. package/artemis-main/Makefile +0 -115
  14. package/artemis-main/README.md +0 -322
  15. package/artemis-main/README_CN.md +0 -320
  16. package/artemis-main/apps/__init__.py +0 -15
  17. package/artemis-main/apps/admin_console/__init__.py +0 -19
  18. package/artemis-main/apps/admin_console/core/__init__.py +0 -13
  19. package/artemis-main/apps/admin_console/core/config.py +0 -43
  20. package/artemis-main/apps/admin_console/core/security.py +0 -178
  21. package/artemis-main/apps/admin_console/core/state.py +0 -243
  22. package/artemis-main/apps/admin_console/database/__init__.py +0 -13
  23. package/artemis-main/apps/admin_console/database/connection.py +0 -60
  24. package/artemis-main/apps/admin_console/database/repositories/__init__.py +0 -13
  25. package/artemis-main/apps/admin_console/database/repositories/session_repository.py +0 -564
  26. package/artemis-main/apps/admin_console/database/repositories/step_repository.py +0 -512
  27. package/artemis-main/apps/admin_console/database/repositories/trace_repository.py +0 -133
  28. package/artemis-main/apps/admin_console/index.html +0 -3787
  29. package/artemis-main/apps/admin_console/replay_manager.py +0 -2585
  30. package/artemis-main/apps/admin_console/routers/__init__.py +0 -13
  31. package/artemis-main/apps/admin_console/routers/media.py +0 -198
  32. package/artemis-main/apps/admin_console/routers/replay.py +0 -91
  33. package/artemis-main/apps/admin_console/routers/sessions.py +0 -239
  34. package/artemis-main/apps/admin_console/routers/steps.py +0 -109
  35. package/artemis-main/apps/admin_console/routers/stream.py +0 -56
  36. package/artemis-main/apps/admin_console/routers/system.py +0 -761
  37. package/artemis-main/apps/admin_console/routers/tasks.py +0 -517
  38. package/artemis-main/apps/admin_console/schemas/__init__.py +0 -13
  39. package/artemis-main/apps/admin_console/schemas/task_schema.py +0 -47
  40. package/artemis-main/apps/admin_console/server.py +0 -541
  41. package/artemis-main/apps/admin_console/services/__init__.py +0 -13
  42. package/artemis-main/apps/admin_console/services/device_stream_service.py +0 -137
  43. package/artemis-main/apps/admin_console/services/ipc_service.py +0 -262
  44. package/artemis-main/apps/admin_console/services/media_service.py +0 -623
  45. package/artemis-main/apps/admin_console/services/model_service.py +0 -148
  46. package/artemis-main/apps/admin_console/services/task_preset_catalog.py +0 -514
  47. package/artemis-main/apps/admin_console/services/task_queue_service.py +0 -1719
  48. package/artemis-main/apps/admin_console/services/worker_process_io.py +0 -144
  49. package/artemis-main/apps/showcase_ui/README.md +0 -31
  50. package/artemis-main/apps/showcase_ui/angular.json +0 -132
  51. package/artemis-main/apps/showcase_ui/package-lock.json +0 -9472
  52. package/artemis-main/apps/showcase_ui/package.json +0 -39
  53. package/artemis-main/apps/showcase_ui/proxy.conf.json +0 -23
  54. package/artemis-main/apps/showcase_ui/public/favicon.ico +0 -0
  55. package/artemis-main/apps/showcase_ui/public/logo.png +0 -0
  56. package/artemis-main/apps/showcase_ui/public/logo.svg +0 -56
  57. package/artemis-main/apps/showcase_ui/src/app/app.component.html +0 -24
  58. package/artemis-main/apps/showcase_ui/src/app/app.component.scss +0 -49
  59. package/artemis-main/apps/showcase_ui/src/app/app.component.spec.ts +0 -42
  60. package/artemis-main/apps/showcase_ui/src/app/app.component.ts +0 -32
  61. package/artemis-main/apps/showcase_ui/src/app/app.config.ts +0 -29
  62. package/artemis-main/apps/showcase_ui/src/app/app.routes.ts +0 -27
  63. package/artemis-main/apps/showcase_ui/src/app/components/agent-stream/agent-stream-startup.spec.ts +0 -108
  64. package/artemis-main/apps/showcase_ui/src/app/components/agent-stream/agent-stream.component.html +0 -1436
  65. package/artemis-main/apps/showcase_ui/src/app/components/agent-stream/agent-stream.component.scss +0 -3973
  66. package/artemis-main/apps/showcase_ui/src/app/components/agent-stream/agent-stream.component.ts +0 -2235
  67. package/artemis-main/apps/showcase_ui/src/app/components/chat-interface/chat-interface.component.html +0 -380
  68. package/artemis-main/apps/showcase_ui/src/app/components/chat-interface/chat-interface.component.scss +0 -1171
  69. package/artemis-main/apps/showcase_ui/src/app/components/chat-interface/chat-interface.component.ts +0 -270
  70. package/artemis-main/apps/showcase_ui/src/app/components/floating-video-player/floating-video-player.component.html +0 -433
  71. package/artemis-main/apps/showcase_ui/src/app/components/floating-video-player/floating-video-player.component.scss +0 -987
  72. package/artemis-main/apps/showcase_ui/src/app/components/floating-video-player/floating-video-player.component.ts +0 -632
  73. package/artemis-main/apps/showcase_ui/src/app/components/legacy-agent-stream/legacy-agent-stream.component.html +0 -130
  74. package/artemis-main/apps/showcase_ui/src/app/components/legacy-agent-stream/legacy-agent-stream.component.scss +0 -406
  75. package/artemis-main/apps/showcase_ui/src/app/components/legacy-agent-stream/legacy-agent-stream.component.ts +0 -74
  76. package/artemis-main/apps/showcase_ui/src/app/components/nav-switcher/nav-switcher.component.scss +0 -115
  77. package/artemis-main/apps/showcase_ui/src/app/components/nav-switcher/nav-switcher.component.ts +0 -52
  78. package/artemis-main/apps/showcase_ui/src/app/core/data/smart-tasks.data.ts +0 -334
  79. package/artemis-main/apps/showcase_ui/src/app/core/i18n/language.service.spec.ts +0 -55
  80. package/artemis-main/apps/showcase_ui/src/app/core/i18n/language.service.ts +0 -61
  81. package/artemis-main/apps/showcase_ui/src/app/core/i18n/translate.pipe.ts +0 -11
  82. package/artemis-main/apps/showcase_ui/src/app/core/i18n/zh-cn.ts +0 -651
  83. package/artemis-main/apps/showcase_ui/src/app/core/models/markdown.model.ts +0 -43
  84. package/artemis-main/apps/showcase_ui/src/app/core/models/pro-tuning.model.spec.ts +0 -47
  85. package/artemis-main/apps/showcase_ui/src/app/core/models/pro-tuning.model.ts +0 -165
  86. package/artemis-main/apps/showcase_ui/src/app/core/models/session.model.ts +0 -85
  87. package/artemis-main/apps/showcase_ui/src/app/core/models/stream.model.ts +0 -246
  88. package/artemis-main/apps/showcase_ui/src/app/core/models/system.model.ts +0 -118
  89. package/artemis-main/apps/showcase_ui/src/app/core/services/task-recommendation.service.ts +0 -111
  90. package/artemis-main/apps/showcase_ui/src/app/pages/home/home.component.html +0 -2130
  91. package/artemis-main/apps/showcase_ui/src/app/pages/home/home.component.scss +0 -5204
  92. package/artemis-main/apps/showcase_ui/src/app/pages/home/home.component.ts +0 -1189
  93. package/artemis-main/apps/showcase_ui/src/app/pages/legacy-workspace/legacy-workspace.component.html +0 -39
  94. package/artemis-main/apps/showcase_ui/src/app/pages/legacy-workspace/legacy-workspace.component.scss +0 -151
  95. package/artemis-main/apps/showcase_ui/src/app/pages/legacy-workspace/legacy-workspace.component.ts +0 -58
  96. package/artemis-main/apps/showcase_ui/src/app/pages/workspace/workspace.component.html +0 -201
  97. package/artemis-main/apps/showcase_ui/src/app/pages/workspace/workspace.component.scss +0 -886
  98. package/artemis-main/apps/showcase_ui/src/app/pages/workspace/workspace.component.ts +0 -324
  99. package/artemis-main/apps/showcase_ui/src/app/services/agent.service.spec.ts +0 -418
  100. package/artemis-main/apps/showcase_ui/src/app/services/agent.service.ts +0 -2012
  101. package/artemis-main/apps/showcase_ui/src/app/services/system.service.spec.ts +0 -173
  102. package/artemis-main/apps/showcase_ui/src/app/services/system.service.ts +0 -620
  103. package/artemis-main/apps/showcase_ui/src/app/utils/action-formatter.util.spec.ts +0 -513
  104. package/artemis-main/apps/showcase_ui/src/app/utils/action-formatter.util.ts +0 -1015
  105. package/artemis-main/apps/showcase_ui/src/app/utils/image-overlay.util.spec.ts +0 -85
  106. package/artemis-main/apps/showcase_ui/src/app/utils/image-overlay.util.ts +0 -662
  107. package/artemis-main/apps/showcase_ui/src/app/utils/markdown-parser.util.spec.ts +0 -70
  108. package/artemis-main/apps/showcase_ui/src/app/utils/markdown-parser.util.ts +0 -383
  109. package/artemis-main/apps/showcase_ui/src/app/utils/recording-timeline.util.spec.ts +0 -107
  110. package/artemis-main/apps/showcase_ui/src/app/utils/recording-timeline.util.ts +0 -123
  111. package/artemis-main/apps/showcase_ui/src/app/utils/run-info.util.spec.ts +0 -92
  112. package/artemis-main/apps/showcase_ui/src/app/utils/run-info.util.ts +0 -116
  113. package/artemis-main/apps/showcase_ui/src/app/utils/stream-aggregator.util.spec.ts +0 -640
  114. package/artemis-main/apps/showcase_ui/src/app/utils/stream-aggregator.util.ts +0 -1021
  115. package/artemis-main/apps/showcase_ui/src/app/utils/tool-formatter.util.spec.ts +0 -375
  116. package/artemis-main/apps/showcase_ui/src/app/utils/tool-formatter.util.ts +0 -1419
  117. package/artemis-main/apps/showcase_ui/src/index.html +0 -37
  118. package/artemis-main/apps/showcase_ui/src/main.ts +0 -22
  119. package/artemis-main/apps/showcase_ui/src/styles.scss +0 -60
  120. package/artemis-main/apps/showcase_ui/tsconfig.app.json +0 -23
  121. package/artemis-main/apps/showcase_ui/tsconfig.json +0 -27
  122. package/artemis-main/apps/showcase_ui/tsconfig.spec.json +0 -23
  123. package/artemis-main/artemis/__init__.py +0 -44
  124. package/artemis-main/artemis/__main__.py +0 -18
  125. package/artemis-main/artemis/_legacy_imports.py +0 -94
  126. package/artemis-main/artemis/_version.py +0 -30
  127. package/artemis-main/artemis/agents/__init__.py +0 -17
  128. package/artemis-main/artemis/agents/checker/checker.json +0 -9
  129. package/artemis-main/artemis/agents/checker/checker.py +0 -859
  130. package/artemis-main/artemis/agents/diagnoser/diagnoser.json +0 -23
  131. package/artemis-main/artemis/agents/diagnoser/diagnoser.py +0 -608
  132. package/artemis-main/artemis/agents/explorer/constants.py +0 -52
  133. package/artemis-main/artemis/agents/explorer/explorer.json +0 -57
  134. package/artemis-main/artemis/agents/explorer/explorer.py +0 -473
  135. package/artemis-main/artemis/agents/explorer/geometry.py +0 -73
  136. package/artemis-main/artemis/agents/explorer/native_runner.py +0 -878
  137. package/artemis-main/artemis/agents/explorer/perception_tools.py +0 -632
  138. package/artemis-main/artemis/agents/explorer/run_setup.py +0 -403
  139. package/artemis-main/artemis/agents/explorer/screen_index.py +0 -266
  140. package/artemis-main/artemis/agents/explorer/tiers.py +0 -110
  141. package/artemis-main/artemis/agents/explorer/tool_declarations.py +0 -394
  142. package/artemis-main/artemis/agents/explorer/universal_runner.py +0 -317
  143. package/artemis-main/artemis/agents/flash/context_compressor.py +0 -452
  144. package/artemis-main/artemis/agents/flash/flash_runner.md +0 -51
  145. package/artemis-main/artemis/agents/flash/flash_summarizer.md +0 -53
  146. package/artemis-main/artemis/agents/flash/flash_summarizer_single.md +0 -54
  147. package/artemis-main/artemis/agents/flash/runner.py +0 -1167
  148. package/artemis-main/artemis/agents/flash/summarizer.py +0 -511
  149. package/artemis-main/artemis/agents/history_analyzer/history_analyzer.md +0 -8
  150. package/artemis-main/artemis/agents/history_analyzer/history_analyzer.py +0 -182
  151. package/artemis-main/artemis/agents/image_processor/image_processor.md +0 -74
  152. package/artemis-main/artemis/agents/image_processor/image_processor.py +0 -322
  153. package/artemis-main/artemis/agents/log_analyzer/log_analyzer.md +0 -15
  154. package/artemis-main/artemis/agents/log_analyzer/log_analyzer.py +0 -403
  155. package/artemis-main/artemis/agents/log_analyzer/log_reader_sub_agent.md +0 -8
  156. package/artemis-main/artemis/agents/log_analyzer/output_analyzer.md +0 -11
  157. package/artemis-main/artemis/agents/log_analyzer/output_analyzer.py +0 -163
  158. package/artemis-main/artemis/agents/object_detector/object_detector.json +0 -9
  159. package/artemis-main/artemis/agents/object_detector/object_detector.py +0 -211
  160. package/artemis-main/artemis/agents/operator/operator.json +0 -3
  161. package/artemis-main/artemis/agents/operator/operator.py +0 -1394
  162. package/artemis-main/artemis/agents/operator/prompts.py +0 -1064
  163. package/artemis-main/artemis/agents/outputter/outputter.md +0 -36
  164. package/artemis-main/artemis/agents/outputter/outputter.py +0 -552
  165. package/artemis-main/artemis/agents/planner/planner.json +0 -32
  166. package/artemis-main/artemis/agents/planner/planner.py +0 -436
  167. package/artemis-main/artemis/agents/prompt_assembly.py +0 -79
  168. package/artemis-main/artemis/agents/summarizer/summarizer.py +0 -190
  169. package/artemis-main/artemis/agents/validator/action_execution.py +0 -98
  170. package/artemis-main/artemis/agents/validator/categories.py +0 -33
  171. package/artemis-main/artemis/agents/validator/execution_loop.py +0 -488
  172. package/artemis-main/artemis/agents/validator/incidents.py +0 -120
  173. package/artemis-main/artemis/agents/validator/pixel_safety_net.md +0 -15
  174. package/artemis-main/artemis/agents/validator/precondition_pixel.py +0 -320
  175. package/artemis-main/artemis/agents/validator/precondition_xml.py +0 -672
  176. package/artemis-main/artemis/agents/validator/tool_declarations.py +0 -332
  177. package/artemis-main/artemis/agents/validator/validator.py +0 -188
  178. package/artemis-main/artemis/agents/video_analyzer/__init__.py +0 -15
  179. package/artemis-main/artemis/agents/video_analyzer/audio_native.py +0 -543
  180. package/artemis-main/artemis/agents/video_analyzer/blackboard.py +0 -821
  181. package/artemis-main/artemis/agents/video_analyzer/chunk_agentic.py +0 -455
  182. package/artemis-main/artemis/agents/video_analyzer/chunk_conversation.py +0 -491
  183. package/artemis-main/artemis/agents/video_analyzer/chunk_native.py +0 -437
  184. package/artemis-main/artemis/agents/video_analyzer/conflict_resolution.py +0 -137
  185. package/artemis-main/artemis/agents/video_analyzer/gemini_files.py +0 -162
  186. package/artemis-main/artemis/agents/video_analyzer/native_coordinator.py +0 -541
  187. package/artemis-main/artemis/agents/video_analyzer/reliability.py +0 -128
  188. package/artemis-main/artemis/agents/video_analyzer/universal_engine.py +0 -487
  189. package/artemis-main/artemis/agents/video_analyzer/universal_tools.py +0 -323
  190. package/artemis-main/artemis/agents/video_analyzer/video_analyzer.md +0 -51
  191. package/artemis-main/artemis/agents/video_analyzer/video_analyzer.py +0 -875
  192. package/artemis-main/artemis/agents/video_analyzer/video_sub_agent.md +0 -15
  193. package/artemis-main/artemis/agents/video_analyzer/video_sub_agent_audio.md +0 -12
  194. package/artemis-main/artemis/clients/accessibility_client.py +0 -438
  195. package/artemis-main/artemis/clients/screen_client_factory.py +0 -403
  196. package/artemis-main/artemis/config/__init__.py +0 -309
  197. package/artemis-main/artemis/config/agent.py +0 -1098
  198. package/artemis-main/artemis/config/constants.py +0 -151
  199. package/artemis-main/artemis/config/core/__init__.py +0 -24
  200. package/artemis-main/artemis/config/core/engine.py +0 -118
  201. package/artemis-main/artemis/config/core/interpolator.py +0 -78
  202. package/artemis-main/artemis/config/llm.py +0 -267
  203. package/artemis-main/artemis/config/paths.py +0 -244
  204. package/artemis-main/artemis/config/runtime.py +0 -197
  205. package/artemis-main/artemis/config/settings.py +0 -315
  206. package/artemis-main/artemis/constants.py +0 -47
  207. package/artemis-main/artemis/context.py +0 -289
  208. package/artemis-main/artemis/controllers/__init__.py +0 -41
  209. package/artemis-main/artemis/controllers/controller_factory.py +0 -41
  210. package/artemis-main/artemis/controllers/device_controller.py +0 -29
  211. package/artemis-main/artemis/controllers/types.py +0 -37
  212. package/artemis-main/artemis/controllers/unified_controller.py +0 -649
  213. package/artemis-main/artemis/core/__init__.py +0 -21
  214. package/artemis-main/artemis/core/diagnostics/__init__.py +0 -90
  215. package/artemis-main/artemis/core/diagnostics/adb_keys.py +0 -270
  216. package/artemis-main/artemis/core/diagnostics/adb_server_connection.py +0 -330
  217. package/artemis-main/artemis/core/diagnostics/device_smoke.py +0 -364
  218. package/artemis-main/artemis/core/diagnostics/emulator_manager.py +0 -501
  219. package/artemis-main/artemis/core/diagnostics/engine.py +0 -438
  220. package/artemis-main/artemis/core/diagnostics/hierarchy_parity.py +0 -216
  221. package/artemis-main/artemis/core/diagnostics/probes/adb_probe.py +0 -887
  222. package/artemis-main/artemis/core/diagnostics/probes/base.py +0 -45
  223. package/artemis-main/artemis/core/diagnostics/probes/credentials_probe.py +0 -296
  224. package/artemis-main/artemis/core/diagnostics/probes/host_probe.py +0 -427
  225. package/artemis-main/artemis/core/diagnostics/probes/runtime_probe.py +0 -169
  226. package/artemis-main/artemis/core/diagnostics/probes/toolchain_probe.py +0 -139
  227. package/artemis-main/artemis/core/diagnostics/readiness.py +0 -83
  228. package/artemis-main/artemis/core/diagnostics/schema.py +0 -118
  229. package/artemis-main/artemis/core/tool_declaration.py +0 -43
  230. package/artemis-main/artemis/core/tool_failure.py +0 -56
  231. package/artemis-main/artemis/data_engine/context_vars.py +0 -24
  232. package/artemis-main/artemis/data_engine/engine.py +0 -1615
  233. package/artemis-main/artemis/data_engine/history_reader.py +0 -142
  234. package/artemis-main/artemis/data_engine/models.py +0 -131
  235. package/artemis-main/artemis/data_engine/storage.py +0 -1245
  236. package/artemis-main/artemis/data_engine/trace.py +0 -727
  237. package/artemis-main/artemis/drivers/__init__.py +0 -48
  238. package/artemis-main/artemis/drivers/android/adb_driver.py +0 -507
  239. package/artemis-main/artemis/drivers/android/hierarchy.py +0 -64
  240. package/artemis-main/artemis/drivers/android/input_ime.py +0 -120
  241. package/artemis-main/artemis/drivers/android/recorder.py +0 -57
  242. package/artemis-main/artemis/drivers/base.py +0 -290
  243. package/artemis-main/artemis/drivers/cloud/cloud_driver.py +0 -117
  244. package/artemis-main/artemis/drivers/factory.py +0 -80
  245. package/artemis-main/artemis/drivers/mock/mock_driver.py +0 -198
  246. package/artemis-main/artemis/drivers/types.py +0 -67
  247. package/artemis-main/artemis/graph/checkpoints.py +0 -1243
  248. package/artemis-main/artemis/graph/graph.py +0 -1055
  249. package/artemis-main/artemis/graph/perception.py +0 -234
  250. package/artemis-main/artemis/graph/state.py +0 -151
  251. package/artemis-main/artemis/graph/visibility.py +0 -238
  252. package/artemis-main/artemis/interfaces/cli/__init__.py +0 -19
  253. package/artemis-main/artemis/interfaces/cli/commands/__init__.py +0 -15
  254. package/artemis-main/artemis/interfaces/cli/commands/batch.py +0 -278
  255. package/artemis-main/artemis/interfaces/cli/commands/doctor.py +0 -468
  256. package/artemis-main/artemis/interfaces/cli/commands/helper.py +0 -226
  257. package/artemis-main/artemis/interfaces/cli/commands/init.py +0 -193
  258. package/artemis-main/artemis/interfaces/cli/commands/mcp.py +0 -862
  259. package/artemis-main/artemis/interfaces/cli/commands/run.py +0 -463
  260. package/artemis-main/artemis/interfaces/cli/commands/server.py +0 -151
  261. package/artemis-main/artemis/interfaces/cli/commands/server_lifecycle.py +0 -328
  262. package/artemis-main/artemis/interfaces/cli/commands/trace.py +0 -111
  263. package/artemis-main/artemis/interfaces/cli/commands/ui.py +0 -404
  264. package/artemis-main/artemis/interfaces/cli/main.py +0 -109
  265. package/artemis-main/artemis/interfaces/sdk/__init__.py +0 -31
  266. package/artemis-main/artemis/interfaces/sdk/client.py +0 -19
  267. package/artemis-main/artemis/interfaces/sdk/task.py +0 -72
  268. package/artemis-main/artemis/llm/__init__.py +0 -25
  269. package/artemis-main/artemis/llm/fake_model.py +0 -179
  270. package/artemis-main/artemis/llm/google/__init__.py +0 -57
  271. package/artemis-main/artemis/llm/google/provider.py +0 -185
  272. package/artemis-main/artemis/llm/google/usage.py +0 -148
  273. package/artemis-main/artemis/llm/parser.py +0 -32
  274. package/artemis-main/artemis/llm/reliability.py +0 -267
  275. package/artemis-main/artemis/llm/router.py +0 -389
  276. package/artemis-main/artemis/llm/schemas.py +0 -36
  277. package/artemis-main/artemis/llm/structured.py +0 -196
  278. package/artemis-main/artemis/main.py +0 -58
  279. package/artemis-main/artemis/mcp/__init__.py +0 -20
  280. package/artemis-main/artemis/mcp/action_executor.py +0 -760
  281. package/artemis-main/artemis/mcp/action_manifest.py +0 -320
  282. package/artemis-main/artemis/mcp/action_names.py +0 -172
  283. package/artemis-main/artemis/mcp/action_server.py +0 -202
  284. package/artemis-main/artemis/mcp/action_session.py +0 -245
  285. package/artemis-main/artemis/mcp/action_specs.py +0 -868
  286. package/artemis-main/artemis/mcp/action_types.py +0 -86
  287. package/artemis-main/artemis/mcp/actuators/__init__.py +0 -21
  288. package/artemis-main/artemis/mcp/actuators/adb.py +0 -414
  289. package/artemis-main/artemis/mcp/actuators/base.py +0 -113
  290. package/artemis-main/artemis/mcp/actuators/mock.py +0 -70
  291. package/artemis-main/artemis/mcp/adb_server.py +0 -490
  292. package/artemis-main/artemis/mcp/observation.py +0 -133
  293. package/artemis-main/artemis/mcp/xml_search_server.py +0 -297
  294. package/artemis-main/artemis/memory/__init__.py +0 -90
  295. package/artemis-main/artemis/memory/chunking.py +0 -1843
  296. package/artemis-main/artemis/memory/context_policy.py +0 -226
  297. package/artemis-main/artemis/memory/step_capsule.md +0 -73
  298. package/artemis-main/artemis/memory/step_memory.py +0 -281
  299. package/artemis-main/artemis/memory/transcript.py +0 -798
  300. package/artemis-main/artemis/platform/__init__.py +0 -61
  301. package/artemis-main/artemis/platform/base.py +0 -104
  302. package/artemis-main/artemis/platform/darwin.py +0 -184
  303. package/artemis-main/artemis/platform/linux.py +0 -207
  304. package/artemis-main/artemis/platform/windows.py +0 -193
  305. package/artemis-main/artemis/resources/__init__.py +0 -46
  306. package/artemis-main/artemis/runtime/__init__.py +0 -108
  307. package/artemis-main/artemis/runtime/adb_endpoint.py +0 -173
  308. package/artemis-main/artemis/runtime/awake_lease.py +0 -283
  309. package/artemis-main/artemis/runtime/awake_service.py +0 -343
  310. package/artemis-main/artemis/runtime/cancel_requests.py +0 -254
  311. package/artemis-main/artemis/runtime/daemon_client.py +0 -422
  312. package/artemis-main/artemis/runtime/device_lock.py +0 -1013
  313. package/artemis-main/artemis/runtime/device_pool.py +0 -478
  314. package/artemis-main/artemis/runtime/helper_manager.py +0 -1030
  315. package/artemis-main/artemis/runtime/process_probe.py +0 -98
  316. package/artemis-main/artemis/runtime/server_lifecycle.py +0 -435
  317. package/artemis-main/artemis/runtime/supervisor.py +0 -121
  318. package/artemis-main/artemis/runtime/trace_store.py +0 -375
  319. package/artemis-main/artemis/sdk/__init__.py +0 -26
  320. package/artemis-main/artemis/sdk/agent.py +0 -485
  321. package/artemis-main/artemis/sdk/builders/__init__.py +0 -29
  322. package/artemis-main/artemis/sdk/builders/agent_config_builder.py +0 -474
  323. package/artemis-main/artemis/sdk/constants.py +0 -15
  324. package/artemis-main/artemis/sdk/run_outcome.py +0 -58
  325. package/artemis-main/artemis/sdk/types/__init__.py +0 -61
  326. package/artemis-main/artemis/sdk/types/agent.py +0 -89
  327. package/artemis-main/artemis/sdk/utils.py +0 -28
  328. package/artemis-main/artemis/services/llm.py +0 -1040
  329. package/artemis-main/artemis/services/token_meter.py +0 -267
  330. package/artemis-main/artemis/telemetry/__init__.py +0 -35
  331. package/artemis-main/artemis/telemetry/models.py +0 -64
  332. package/artemis-main/artemis/telemetry/replay.py +0 -34
  333. package/artemis-main/artemis/telemetry/storage/json_storage.py +0 -47
  334. package/artemis-main/artemis/telemetry/tracer.py +0 -85
  335. package/artemis-main/artemis/toolchain/__init__.py +0 -52
  336. package/artemis-main/artemis/toolchain/descriptors.py +0 -92
  337. package/artemis-main/artemis/toolchain/resolver.py +0 -185
  338. package/artemis-main/artemis/tools/base.py +0 -232
  339. package/artemis-main/artemis/tools/command_tool.py +0 -1240
  340. package/artemis-main/artemis/tools/committee_prompts.json +0 -5
  341. package/artemis-main/artemis/tools/committee_tool.py +0 -422
  342. package/artemis-main/artemis/tools/diagnoser_submit_answer_tool.py +0 -87
  343. package/artemis-main/artemis/tools/diagnostic_tool.py +0 -120
  344. package/artemis-main/artemis/tools/explorer_tool.py +0 -581
  345. package/artemis-main/artemis/tools/history/__init__.py +0 -398
  346. package/artemis-main/artemis/tools/history/replay.py +0 -120
  347. package/artemis-main/artemis/tools/history/screenshot.py +0 -139
  348. package/artemis-main/artemis/tools/history/search.py +0 -563
  349. package/artemis-main/artemis/tools/image_processor_tool.py +0 -124
  350. package/artemis-main/artemis/tools/index.py +0 -47
  351. package/artemis-main/artemis/tools/log_tool.py +0 -108
  352. package/artemis-main/artemis/tools/mobile/launch_app.py +0 -132
  353. package/artemis-main/artemis/tools/mobile/log_utils.py +0 -138
  354. package/artemis-main/artemis/tools/mobile/ocr.py +0 -202
  355. package/artemis-main/artemis/tools/mobile/read_hierarchy.py +0 -108
  356. package/artemis-main/artemis/tools/mobile/read_logs.py +0 -116
  357. package/artemis-main/artemis/tools/mobile/search_logs.py +0 -260
  358. package/artemis-main/artemis/tools/object_detection_tool.py +0 -244
  359. package/artemis-main/artemis/tools/scratchpad.py +0 -819
  360. package/artemis-main/artemis/tools/system/adb_shell.py +0 -31
  361. package/artemis-main/artemis/tools/tool_wrapper.py +0 -270
  362. package/artemis-main/artemis/tools/video_tool.py +0 -261
  363. package/artemis-main/artemis/tools/wait_tool.py +0 -97
  364. package/artemis-main/artemis/utils/app_launch_utils.py +0 -207
  365. package/artemis-main/artemis/utils/coordinates.py +0 -606
  366. package/artemis-main/artemis/utils/credentials_validator.py +0 -201
  367. package/artemis-main/artemis/utils/cv_canvas.py +0 -189
  368. package/artemis-main/artemis/utils/cython_compat.py +0 -45
  369. package/artemis-main/artemis/utils/element_hit_test.py +0 -80
  370. package/artemis-main/artemis/utils/image_diff.py +0 -335
  371. package/artemis-main/artemis/utils/image_hash.py +0 -80
  372. package/artemis-main/artemis/utils/notes.py +0 -470
  373. package/artemis-main/artemis/utils/ocr_api.py +0 -105
  374. package/artemis-main/artemis/utils/ocr_xml_fusion.py +0 -318
  375. package/artemis-main/artemis/utils/plan_grammar.py +0 -513
  376. package/artemis-main/artemis/utils/python_executor.py +0 -213
  377. package/artemis-main/artemis/utils/startup_progress.py +0 -60
  378. package/artemis-main/artemis/utils/task_tree.py +0 -1174
  379. package/artemis-main/artemis/utils/text.py +0 -37
  380. package/artemis-main/artemis/utils/ui_filter.py +0 -651
  381. package/artemis-main/artemis/utils/video.py +0 -685
  382. package/artemis-main/artemis/utils/visualization.py +0 -802
  383. package/artemis-main/config/artemis.example.jsonc +0 -12
  384. package/artemis-main/mcp_server/README.md +0 -111
  385. package/artemis-main/mcp_server/__init__.py +0 -21
  386. package/artemis-main/mcp_server/__main__.py +0 -20
  387. package/artemis-main/mcp_server/background/__init__.py +0 -15
  388. package/artemis-main/mcp_server/background/task_runner.py +0 -453
  389. package/artemis-main/mcp_server/base.py +0 -49
  390. package/artemis-main/mcp_server/notifiers/__init__.py +0 -74
  391. package/artemis-main/mcp_server/notifiers/agentapi.py +0 -289
  392. package/artemis-main/mcp_server/notifiers/base.py +0 -45
  393. package/artemis-main/mcp_server/notifiers/composite.py +0 -87
  394. package/artemis-main/mcp_server/notifiers/desktop.py +0 -108
  395. package/artemis-main/mcp_server/notifiers/file.py +0 -69
  396. package/artemis-main/mcp_server/notifiers/script.py +0 -90
  397. package/artemis-main/mcp_server/notifiers/webhook.py +0 -87
  398. package/artemis-main/mcp_server/rules.md +0 -68
  399. package/artemis-main/mcp_server/server.py +0 -106
  400. package/artemis-main/mcp_server/tools/__init__.py +0 -29
  401. package/artemis-main/mcp_server/tools/device_state.py +0 -107
  402. package/artemis-main/mcp_server/tools/diagnose.py +0 -1249
  403. package/artemis-main/mcp_server/tools/inspect_trace.py +0 -394
  404. package/artemis-main/mcp_server/tools/task_manager.py +0 -627
  405. package/artemis-main/mcp_server/tools/task_runner.py +0 -548
  406. package/artemis-main/mcp_server/utils/__init__.py +0 -15
  407. package/artemis-main/mcp_server/utils/device_utils.py +0 -180
  408. package/artemis-main/mcp_server/utils/env_utils.py +0 -65
  409. package/artemis-main/packages/artemis-accessibility-helper/ArtemisAccessibilityHelper.apk +0 -0
  410. package/artemis-main/packages/artemis-accessibility-helper/app/build.gradle.kts +0 -35
  411. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/AndroidManifest.xml +0 -49
  412. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/A11yNode.java +0 -274
  413. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/ArtemisAccessibilityService.java +0 -227
  414. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/CommandServer.java +0 -463
  415. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/DisplayUtils.java +0 -111
  416. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/GestureController.java +0 -232
  417. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/HierarchyDumper.java +0 -832
  418. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/TokenReceiver.java +0 -36
  419. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/TokenStore.java +0 -38
  420. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/java/com/artemis/helper/XmlUtils.java +0 -102
  421. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/res/values/strings.xml +0 -4
  422. package/artemis-main/packages/artemis-accessibility-helper/app/src/main/res/xml/accessibility_service_config.xml +0 -10
  423. package/artemis-main/packages/artemis-accessibility-helper/build.gradle.kts +0 -3
  424. package/artemis-main/packages/artemis-accessibility-helper/build_apk.sh +0 -215
  425. package/artemis-main/packages/artemis-accessibility-helper/debug.keystore +0 -0
  426. package/artemis-main/packages/artemis-accessibility-helper/gradle.properties +0 -2
  427. package/artemis-main/packages/artemis-accessibility-helper/helper_manifest.json +0 -7
  428. package/artemis-main/packages/artemis-accessibility-helper/settings.gradle.kts +0 -17
  429. package/artemis-main/packages/artemis-client/DESIGN.md +0 -89
  430. package/artemis-main/packages/artemis-client/README.md +0 -112
  431. package/artemis-main/packages/artemis-client/examples/basic.py +0 -30
  432. package/artemis-main/packages/artemis-client/pyproject.toml +0 -36
  433. package/artemis-main/packages/artemis-client/src/artemis_client/__init__.py +0 -45
  434. package/artemis-main/packages/artemis-client/src/artemis_client/client.py +0 -401
  435. package/artemis-main/packages/artemis-client/src/artemis_client/errors.py +0 -66
  436. package/artemis-main/packages/artemis-client/src/artemis_client/models.py +0 -212
  437. package/artemis-main/packages/artemis-client/src/artemis_client/py.typed +0 -1
  438. package/artemis-main/packages/artemis-client/src/artemis_client/transport.py +0 -134
  439. package/artemis-main/packages/artemis-client/tests/test_client.py +0 -289
  440. package/artemis-main/packages/artemis-client/tests/test_transport.py +0 -85
  441. package/artemis-main/pyproject.toml +0 -259
  442. package/artemis-main/pyright-core.json +0 -17
  443. package/artemis-main/scripts/check_dependency_sources.py +0 -68
  444. package/artemis-main/scripts/install_deps.ps1 +0 -520
  445. package/artemis-main/scripts/install_deps.sh +0 -533
  446. package/artemis-main/scripts/quality_ratchet.py +0 -97
  447. package/artemis-main/scripts/real_device_video_acceptance.py +0 -483
  448. package/artemis-main/scripts/run_edge_case_part.py +0 -327
  449. package/artemis-main/scripts/run_ui.py +0 -242
  450. package/artemis-main/scripts/start.ps1 +0 -500
  451. package/artemis-main/scripts/test_all_edge_cases.py +0 -269
  452. package/artemis-main/scripts/verify_concurrency_and_devices.py +0 -385
  453. package/artemis-main/setup.py +0 -164
  454. package/artemis-main/start.bat +0 -35
  455. package/artemis-main/start.sh +0 -423
  456. package/artemis-main/third_party/mobile_use/LICENSE +0 -190
  457. package/artemis-main/third_party/mobile_use/METADATA +0 -27
  458. package/artemis-main/third_party/mobile_use/NOTICE +0 -12
  459. package/artemis-main/third_party/mobile_use/__init__.py +0 -19
  460. package/artemis-main/third_party/mobile_use/agents/__init__.py +0 -13
  461. package/artemis-main/third_party/mobile_use/agents/hopper/__init__.py +0 -13
  462. package/artemis-main/third_party/mobile_use/agents/hopper/hopper.md +0 -22
  463. package/artemis-main/third_party/mobile_use/agents/hopper/hopper.py +0 -80
  464. package/artemis-main/third_party/mobile_use/clients/__init__.py +0 -13
  465. package/artemis-main/third_party/mobile_use/clients/ui_automator_client.py +0 -482
  466. package/artemis-main/third_party/mobile_use/config/__init__.py +0 -13
  467. package/artemis-main/third_party/mobile_use/config/llm.py +0 -183
  468. package/artemis-main/third_party/mobile_use/config/output.py +0 -184
  469. package/artemis-main/third_party/mobile_use/context.py +0 -119
  470. package/artemis-main/third_party/mobile_use/controllers/__init__.py +0 -13
  471. package/artemis-main/third_party/mobile_use/controllers/platform_specific_commands_controller.py +0 -151
  472. package/artemis-main/third_party/mobile_use/controllers/types.py +0 -92
  473. package/artemis-main/third_party/mobile_use/controllers/unified_controller.py +0 -183
  474. package/artemis-main/third_party/mobile_use/graph.py +0 -54
  475. package/artemis-main/third_party/mobile_use/llm_service.py +0 -193
  476. package/artemis-main/third_party/mobile_use/main.py +0 -130
  477. package/artemis-main/third_party/mobile_use/sdk/__init__.py +0 -13
  478. package/artemis-main/third_party/mobile_use/sdk/agent.py +0 -1060
  479. package/artemis-main/third_party/mobile_use/sdk/builders/__init__.py +0 -13
  480. package/artemis-main/third_party/mobile_use/sdk/builders/agent_config_builder.py +0 -225
  481. package/artemis-main/third_party/mobile_use/sdk/builders/index.py +0 -33
  482. package/artemis-main/third_party/mobile_use/sdk/builders/task_request_builder.py +0 -243
  483. package/artemis-main/third_party/mobile_use/sdk/types/__init__.py +0 -13
  484. package/artemis-main/third_party/mobile_use/sdk/types/agent.py +0 -98
  485. package/artemis-main/third_party/mobile_use/sdk/types/exceptions.py +0 -109
  486. package/artemis-main/third_party/mobile_use/sdk/types/task.py +0 -234
  487. package/artemis-main/third_party/mobile_use/testing.py +0 -59
  488. package/artemis-main/third_party/mobile_use/tools/__init__.py +0 -13
  489. package/artemis-main/third_party/mobile_use/tools/index.py +0 -44
  490. package/artemis-main/third_party/mobile_use/tools/mobile/__init__.py +0 -13
  491. package/artemis-main/third_party/mobile_use/tools/mobile/launch_app.py +0 -89
  492. package/artemis-main/third_party/mobile_use/tools/tool_wrapper.py +0 -52
  493. package/artemis-main/third_party/mobile_use/utils/__init__.py +0 -13
  494. package/artemis-main/third_party/mobile_use/utils/app_launch_utils.py +0 -217
  495. package/artemis-main/third_party/mobile_use/utils/cli_helpers.py +0 -60
  496. package/artemis-main/third_party/mobile_use/utils/decorators.py +0 -158
  497. package/artemis-main/third_party/mobile_use/utils/file.py +0 -31
  498. package/artemis-main/third_party/mobile_use/utils/logger.py +0 -216
  499. package/artemis-main/third_party/mobile_use/utils/media.py +0 -213
  500. package/artemis-main/third_party/mobile_use/utils/shell_utils.py +0 -39
  501. package/artemis-main/third_party/mobile_use/utils/video.py +0 -398
  502. package/artemis-main/uv.lock +0 -4908
  503. package/bin/artemis-config.mjs +0 -15
  504. package/bin/artemis-embedded.py +0 -56
  505. package/bin/start-artemis.mjs +0 -30
  506. package/bin/start-dev.mjs +0 -112
  507. package/bin/sync-readme-docs.mjs +0 -49
  508. package/bin/test_artemis_embedded.py +0 -44
  509. package/index.html +0 -12
  510. package/remote-agent/index.ts +0 -232
  511. package/server/analytics.test.ts +0 -46
  512. package/server/analytics.ts +0 -24
  513. package/server/android-device-info.ts +0 -28
  514. package/server/android-sdk.ts +0 -104
  515. package/server/api-safety-analytics.test.ts +0 -57
  516. package/server/appium-auto-save.test.ts +0 -79
  517. package/server/appium-config.test.ts +0 -182
  518. package/server/appium-recorder/ai-deduplication.test.ts +0 -80
  519. package/server/appium-recorder/ai-deduplication.ts +0 -74
  520. package/server/appium-recorder/ai-observation.test.ts +0 -125
  521. package/server/appium-recorder/ai-observation.ts +0 -125
  522. package/server/appium-recorder/ai-recognition.test.ts +0 -27
  523. package/server/appium-recorder/ai-recognition.ts +0 -186
  524. package/server/appium-recorder/appium-runner.ts +0 -1993
  525. package/server/appium-recorder/appium-version.test.ts +0 -55
  526. package/server/appium-recorder/bounded-loop.test.ts +0 -55
  527. package/server/appium-recorder/bounded-loop.ts +0 -129
  528. package/server/appium-recorder/condition-timeout.ts +0 -4
  529. package/server/appium-recorder/element-tap.test.ts +0 -312
  530. package/server/appium-recorder/flow-layout.test.ts +0 -52
  531. package/server/appium-recorder/history-capture.ts +0 -35
  532. package/server/appium-recorder/image-check.ts +0 -174
  533. package/server/appium-recorder/managed-appium.ts +0 -198
  534. package/server/appium-recorder/managed-cleanup.test.ts +0 -113
  535. package/server/appium-recorder/open-gallery.ts +0 -61
  536. package/server/appium-recorder/prompt-optimizer.ts +0 -57
  537. package/server/appium-recorder/random-value-replay.test.ts +0 -101
  538. package/server/appium-recorder/random-value.test.ts +0 -114
  539. package/server/appium-recorder/random-value.ts +0 -34
  540. package/server/appium-recorder/replay-lifecycle.test.ts +0 -123
  541. package/server/appium-recorder/replay-log.ts +0 -13
  542. package/server/appium-recorder/replay-mp4.ts +0 -72
  543. package/server/appium-recorder/replay-video-segments.ts +0 -77
  544. package/server/appium-recorder/replay-video.ts +0 -125
  545. package/server/appium-recorder/report-summary.test.ts +0 -78
  546. package/server/appium-recorder/report-summary.ts +0 -60
  547. package/server/appium-recorder/report.ts +0 -935
  548. package/server/appium-recorder/repository.ts +0 -567
  549. package/server/appium-recorder/request-timeout.test.ts +0 -34
  550. package/server/appium-recorder/request-timeout.ts +0 -34
  551. package/server/appium-recorder/routes.ts +0 -524
  552. package/server/appium-recorder/run-history.ts +0 -53
  553. package/server/appium-recorder/scrcpy-recording-source.ts +0 -85
  554. package/server/appium-recorder/screenshot.ts +0 -22
  555. package/server/appium-recorder/script-export.ts +0 -80
  556. package/server/appium-recorder/script-import.test.ts +0 -45
  557. package/server/appium-recorder/stop-app.ts +0 -18
  558. package/server/appium-recorder/stopwatch.test.ts +0 -74
  559. package/server/appium-recorder/stopwatch.ts +0 -24
  560. package/server/appium-recorder/tree-dump.ts +0 -66
  561. package/server/appium-recorder/variable-store.ts +0 -22
  562. package/server/appium-recorder/variables.ts +0 -89
  563. package/server/appium-recorder/video-response.ts +0 -36
  564. package/server/appium-recorder/visual-change.ts +0 -184
  565. package/server/artemis.ts +0 -34
  566. package/server/config-access.test.ts +0 -27
  567. package/server/config-access.ts +0 -27
  568. package/server/config-store.ts +0 -137
  569. package/server/config.ts +0 -272
  570. package/server/device-locks/repository.ts +0 -147
  571. package/server/device-locks/service.ts +0 -72
  572. package/server/device-locks/types.ts +0 -22
  573. package/server/device-sessions/repository.ts +0 -169
  574. package/server/device-sessions/service.ts +0 -59
  575. package/server/device-sessions/types.ts +0 -24
  576. package/server/http-api.ts +0 -1505
  577. package/server/model-tester.ts +0 -121
  578. package/server/operations/repository.ts +0 -226
  579. package/server/operations/service.ts +0 -84
  580. package/server/operations/types.ts +0 -27
  581. package/server/paths.ts +0 -36
  582. package/server/remote-agents/protocol.ts +0 -40
  583. package/server/remote-agents/registry.test.ts +0 -65
  584. package/server/remote-agents/registry.ts +0 -191
  585. package/server/remote-agents/replay-integration.test.ts +0 -79
  586. package/server/remote-agents/routes.ts +0 -86
  587. package/server/request-body.test.ts +0 -40
  588. package/server/request-body.ts +0 -48
  589. package/server/script-agent.ts +0 -289
  590. package/server/script-db.ts +0 -255
  591. package/server/script-runner.ts +0 -554
  592. package/server/storage/sqlite.ts +0 -112
  593. package/server/test-case-import/formatter.ts +0 -28
  594. package/server/test-case-import/parsers/excel.ts +0 -69
  595. package/server/test-case-import/parsers/txt.ts +0 -11
  596. package/server/test-case-import/parsers/word.ts +0 -9
  597. package/server/test-case-import/service.ts +0 -58
  598. package/server/test-case-import/text-normalizer.ts +0 -98
  599. package/server/test-case-import/types.ts +0 -24
  600. package/server/test-case-import/validator.ts +0 -34
  601. package/src/App.vue +0 -1035
  602. package/src/analytics/summary.ts +0 -75
  603. package/src/api.ts +0 -320
  604. package/src/appium-recorder/AppiumPage.vue +0 -2861
  605. package/src/appium-recorder/RunHistoryDialog.vue +0 -203
  606. package/src/appium-recorder/action-descriptions.ts +0 -50
  607. package/src/appium-recorder/ai-deduplication.ts +0 -34
  608. package/src/appium-recorder/ai-prompt-presets.ts +0 -34
  609. package/src/appium-recorder/ai-recognition.ts +0 -48
  610. package/src/appium-recorder/api.ts +0 -209
  611. package/src/appium-recorder/bounded-loop.ts +0 -74
  612. package/src/appium-recorder/components/AiRecognitionPromptInput.vue +0 -41
  613. package/src/appium-recorder/components/AiRecognitionSettings.vue +0 -251
  614. package/src/appium-recorder/components/AiRecognitionTestDialog.vue +0 -86
  615. package/src/appium-recorder/components/BranchTimeoutSettings.vue +0 -23
  616. package/src/appium-recorder/components/BreakLoopSettings.vue +0 -45
  617. package/src/appium-recorder/components/ComponentInspector.vue +0 -33
  618. package/src/appium-recorder/components/ComponentTree.vue +0 -139
  619. package/src/appium-recorder/components/CoordinatePointPicker.vue +0 -23
  620. package/src/appium-recorder/components/FlowActionMenu.vue +0 -257
  621. package/src/appium-recorder/components/FlowCanvas.vue +0 -391
  622. package/src/appium-recorder/components/FlowNodeCard.vue +0 -318
  623. package/src/appium-recorder/components/FlowNodeSearch.vue +0 -62
  624. package/src/appium-recorder/components/FlowRoundedEdge.vue +0 -58
  625. package/src/appium-recorder/components/FlowStepEditor.vue +0 -543
  626. package/src/appium-recorder/components/ImageCheckDialog.vue +0 -172
  627. package/src/appium-recorder/components/LongPressSettings.vue +0 -58
  628. package/src/appium-recorder/components/LoopSettings.vue +0 -39
  629. package/src/appium-recorder/components/MergeBranchesDialog.vue +0 -102
  630. package/src/appium-recorder/components/NestedConditionBranches.vue +0 -403
  631. package/src/appium-recorder/components/NewScriptDialog.vue +0 -27
  632. package/src/appium-recorder/components/NodeDetail.vue +0 -179
  633. package/src/appium-recorder/components/PresetVariables.vue +0 -110
  634. package/src/appium-recorder/components/RandomValueSettings.vue +0 -139
  635. package/src/appium-recorder/components/RecordedSteps.vue +0 -469
  636. package/src/appium-recorder/components/RecorderWorkspace.vue +0 -132
  637. package/src/appium-recorder/components/ScriptParameterSettings.vue +0 -65
  638. package/src/appium-recorder/components/StageLogSettings.vue +0 -17
  639. package/src/appium-recorder/components/StopwatchSettings.vue +0 -40
  640. package/src/appium-recorder/components/TextClickSettings.vue +0 -19
  641. package/src/appium-recorder/components/VariableExtractionSettings.vue +0 -19
  642. package/src/appium-recorder/components/VariableTable.vue +0 -82
  643. package/src/appium-recorder/components/VisualChangeDialog.vue +0 -151
  644. package/src/appium-recorder/components/VisualChangeEndPicker.vue +0 -21
  645. package/src/appium-recorder/coordinate-preview.ts +0 -37
  646. package/src/appium-recorder/flow-appearance.ts +0 -70
  647. package/src/appium-recorder/flow-copy.ts +0 -279
  648. package/src/appium-recorder/flow-graph.ts +0 -869
  649. package/src/appium-recorder/flow-insert.ts +0 -27
  650. package/src/appium-recorder/flow-labels.ts +0 -141
  651. package/src/appium-recorder/flow-layout.ts +0 -88
  652. package/src/appium-recorder/flow-merge.ts +0 -123
  653. package/src/appium-recorder/flow-normalize.ts +0 -77
  654. package/src/appium-recorder/flow-remove.ts +0 -75
  655. package/src/appium-recorder/flow-search.ts +0 -29
  656. package/src/appium-recorder/flow-unmerge.ts +0 -145
  657. package/src/appium-recorder/image-check.ts +0 -121
  658. package/src/appium-recorder/long-press.ts +0 -27
  659. package/src/appium-recorder/native-control-state.ts +0 -33
  660. package/src/appium-recorder/node-locators.ts +0 -25
  661. package/src/appium-recorder/node-timeout.ts +0 -1
  662. package/src/appium-recorder/random-value.ts +0 -60
  663. package/src/appium-recorder/report-summary.ts +0 -60
  664. package/src/appium-recorder/run-history.ts +0 -53
  665. package/src/appium-recorder/stage-log.ts +0 -21
  666. package/src/appium-recorder/stopwatch.ts +0 -27
  667. package/src/appium-recorder/text-click.ts +0 -9
  668. package/src/appium-recorder/tree.ts +0 -176
  669. package/src/appium-recorder/types.ts +0 -201
  670. package/src/appium-recorder/variable-presets.ts +0 -24
  671. package/src/appium-recorder/variables.ts +0 -34
  672. package/src/appium-recorder/visual-change-pairs.ts +0 -155
  673. package/src/appium-recorder/visual-change.ts +0 -87
  674. package/src/assets/appium-actions/add.svg +0 -7
  675. package/src/assets/appium-actions/android.svg +0 -6
  676. package/src/assets/appium-actions/back.svg +0 -6
  677. package/src/assets/appium-actions/bidirection.svg +0 -6
  678. package/src/assets/appium-actions/browser.svg +0 -6
  679. package/src/assets/appium-actions/clear.svg +0 -3
  680. package/src/assets/appium-actions/crosshair.svg +0 -6
  681. package/src/assets/appium-actions/eye.svg +0 -3
  682. package/src/assets/appium-actions/pause.svg +0 -7
  683. package/src/assets/appium-actions/phone.svg +0 -9
  684. package/src/assets/appium-actions/pin.svg +0 -6
  685. package/src/assets/appium-actions/power.svg +0 -6
  686. package/src/assets/appium-actions/select.svg +0 -3
  687. package/src/assets/appium-actions/sidebar.svg +0 -6
  688. package/src/assets/appium-actions/text.svg +0 -6
  689. package/src/assets/appium-actions/zoom.svg +0 -6
  690. package/src/assets/device-actions/back.svg +0 -5
  691. package/src/assets/device-actions/home.svg +0 -3
  692. package/src/assets/device-actions/power.svg +0 -5
  693. package/src/assets/device-actions/tasks.svg +0 -3
  694. package/src/assets/device-actions/volume-down.svg +0 -3
  695. package/src/assets/device-actions/volume-up.svg +0 -3
  696. package/src/components/AppSidebar.vue +0 -62
  697. package/src/components/MidsceneMaintenanceNotice.vue +0 -17
  698. package/src/components/analytics/AnalysisCharts.vue +0 -189
  699. package/src/components/analytics/ReportAnalysis.vue +0 -78
  700. package/src/components/config/AiDeduplicationSettings.vue +0 -70
  701. package/src/components/config/AiPromptPresetsSettings.vue +0 -113
  702. package/src/components/config/AppiumConfigPanel.vue +0 -118
  703. package/src/components/config/AppiumModelSettings.vue +0 -45
  704. package/src/components/config/BaseConfigPanel.vue +0 -127
  705. package/src/components/config/FlowAppearanceSettings.vue +0 -150
  706. package/src/components/config/MidsceneConfigPanel.vue +0 -220
  707. package/src/components/config/ReplayReportSummarySettings.vue +0 -118
  708. package/src/components/device/DeviceInfoTooltip.vue +0 -55
  709. package/src/components/device/DevicePreviewPanel.vue +0 -482
  710. package/src/components/generator/GeneratedCodePanel.vue +0 -70
  711. package/src/components/generator/TestCaseFileUpload.vue +0 -97
  712. package/src/components/help/HelpCenter.vue +0 -204
  713. package/src/components/help/MarkdownDocument.vue +0 -139
  714. package/src/composables/use-device-preview.ts +0 -279
  715. package/src/composables/use-initial-resource.ts +0 -17
  716. package/src/composables/use-script-execution.ts +0 -277
  717. package/src/config/credentials.ts +0 -2
  718. package/src/config/midscene-model-presets.ts +0 -103
  719. package/src/config/prompt-example.ts +0 -10
  720. package/src/config/prompt-presets.ts +0 -172
  721. package/src/config/use-appium-auto-save.ts +0 -75
  722. package/src/config/use-model-config.ts +0 -161
  723. package/src/main.ts +0 -10
  724. package/src/pages/AiGeneratorPage.vue +0 -273
  725. package/src/pages/AnalysisPage.vue +0 -60
  726. package/src/pages/ArtemisPage.vue +0 -72
  727. package/src/pages/AutomationPage.vue +0 -161
  728. package/src/pages/ConfigPage.vue +0 -146
  729. package/src/pages/GeneratorPage.vue +0 -104
  730. package/src/pages/ManualStepsPage.vue +0 -179
  731. package/src/script-generator/codegen.ts +0 -126
  732. package/src/script-generator/index.ts +0 -4
  733. package/src/script-generator/presets.ts +0 -37
  734. package/src/script-generator/step-options.ts +0 -52
  735. package/src/script-generator/types.ts +0 -27
  736. package/src/style.css +0 -4188
  737. package/src/types.ts +0 -167
  738. package/src/vite-env.d.ts +0 -1
  739. package/tsconfig.app.json +0 -8
  740. package/tsconfig.json +0 -11
  741. package/tsconfig.node.json +0 -16
  742. package/vite.config.ts +0 -28
  743. package//346/265/201/347/250/213/350/212/202/347/202/271/346/223/215/344/275/234/350/257/264/346/230/216.md +0 -418
package/USAGE.md DELETED
@@ -1,1085 +0,0 @@
1
- # Appium 录制器使用说明
2
-
3
- 本文档说明 Appium 组件树录制器的完整使用方式,包括每个操作按钮的用途、录制方法和示例。
4
-
5
- 本文档随 npm 包发布,也可以从 README 的“功能文档”直接打开。常见问题请查看 [FAQ.md](./FAQ.md)。
6
-
7
- Appium 各流程节点的用途和配置方式,请查看 [流程节点操作说明](./流程节点操作说明.md)。AI 识别的场景选择、预设提示词、持续观察、分支、截图去重及超时配置,请查看 [AI 识别操作说明](./AI识别操作说明.md)。
8
-
9
- ## 页面内帮助
10
-
11
- 点击侧边栏最下方的问号图标,可以在“帮助与版本”窗口中查看:
12
-
13
- - 当前工具版本和对应的 Midscene 版本。
14
- - Vue、Element Plus、Appium、Midscene、Vue Flow、OpenCV.js、Vite 和 TypeScript 等主要技术及版本。
15
- - 本操作说明。
16
- - 常见问题和各版本更新记录。
17
-
18
- Midscene 操作说明读取 `USAGE.md`,Appium 操作说明读取 `流程节点操作说明.md`,AI 识别操作说明读取 `AI识别操作说明.md`,常见问题和更新记录分别读取 `FAQ.md` 与 `CHANGELOG.md`;文档更新后页面内容会同步更新。
19
-
20
- ## Midscene 操作说明
21
-
22
- ### 配置 Midscene 模型
23
-
24
- 进入“参数配置”,在 Midscene 模型区域选择模型提供方并填写所需参数。Midscene 执行依赖支持图片输入的多模态模型,填写后应先点击测试,确认模型可以正常响应。
25
-
26
- ### 生成测试脚本
27
-
28
- 进入“Midscene > 测试脚本生成”,填写脚本名称、场景标题、目标 App 和测试需求,也可以上传用例文件。点击“AI 生成”后检查生成步骤,确保测试数据、操作目标和成功条件准确。
29
-
30
- ### 自定义步骤编排
31
-
32
- 在测试脚本生成页面切换到“自定义步骤编排”,可以逐条添加操作、等待、查询和判断步骤。每条指令只描述一个明确目标,页面跳转后使用可观察的页面元素作为等待条件。
33
-
34
- ### 编辑并保存脚本
35
-
36
- 生成脚本后可以查看、编辑或复制代码。确认内容后点击“保存脚本”,保存的脚本会出现在“自动化测试”页面中。
37
-
38
- ### 执行 Midscene 脚本
39
-
40
- 进入“Midscene > 自动化测试”,选择脚本和 Android 设备后点击“开始执行”。执行期间保持设备亮屏和解锁,Midscene 会根据当前画面理解目标并执行操作。
41
-
42
- ### 停止执行
43
-
44
- 脚本运行期间点击顶部“停止执行”可以中止后续步骤。停止后查看执行输出,确认最后完成的步骤和停止位置。
45
-
46
- ### 查看执行输出
47
-
48
- 自动化测试页面会实时显示步骤状态、耗时和错误信息。执行失败时先检查模型配置、ADB 连接、设备画面以及指令中的目标描述是否清晰。
49
-
50
- ### Midscene 编写建议
51
-
52
- 一条指令只完成一个目标;输入、点击和等待尽量拆分;等待条件应描述页面中可观察到的稳定元素;不要在同一步骤中同时处理大量弹窗和业务操作。组件 ID 稳定并需要大量重复回放时,可以改用 Appium 流程。
53
-
54
- ## Appium 使用前准备
55
-
56
- ### 1. 连接 Android 设备
57
-
58
- ```sh
59
- adb devices -l
60
- ```
61
-
62
- 确认设备已连接,并且手机已允许 USB 调试。
63
-
64
- ### 2. 启动 Appium
65
-
66
- ```sh
67
- appium
68
- ```
69
-
70
- 如果没有安装 UiAutomator2 Driver:
71
-
72
- ```sh
73
- appium driver install uiautomator2
74
- ```
75
-
76
- ### 3. 启动项目
77
-
78
- ```sh
79
- npx --yes android-midscene-automation@latest
80
- ```
81
-
82
- 或源码开发:
83
-
84
- ```sh
85
- npm install
86
- npm run dev
87
- ```
88
-
89
- 打开页面后进入 `Appium` 菜单。
90
-
91
- ### 4. 配置运行路径(可选)
92
-
93
- 进入“参数配置 > 运行配置”可以设置:
94
-
95
- - `Android SDK 路径`:填写包含 `platform-tools/adb` 的 SDK 根目录。留空时依次读取 `ANDROID_SDK_ROOT`、`ANDROID_HOME`、系统常见 SDK 目录和 PATH 中的 ADB。
96
- - `回放报告目录`:填写 Markdown 回放报告的保存目录。支持绝对路径;相对路径以启动命令所在目录为基准。留空时使用启动目录下的 `output`。
97
-
98
- 回放开始前会检测 Android SDK。检测失败时不会创建 Appium session,回放输出会直接显示需要修正的 SDK 路径。
99
-
100
- ## 基本录制流程
101
-
102
- 1. 选择设备。
103
- 2. 在“参数配置”中添加预设 App 参数。
104
- 3. 回到 `Appium` 页面,在“节点与脚本”区域选择预设 App。
105
- 4. 等待设备预览和 App 组件树自动加载;必要时点击“刷新组件树”。
106
- 5. 在设备预览或 App 组件树中选择目标组件。
107
- 6. 在“开始”节点或任意步骤后的“插入操作”中选择要录制的操作。
108
- 7. 在“录制步骤”中检查流程、编辑节点备注并配置判断分支。
109
- 8. 输入脚本名称并保存。
110
- 9. 选择已保存脚本后点击“回放”。
111
-
112
- App 包名是必填项,只能从“参数配置”中已经添加的“预设 App 参数”选择,不能手动输入。未选择 App 时不能录制操作。
113
-
114
- ## 设备预览与组件树
115
-
116
- ### 设备预览
117
-
118
- - 设备预览优先使用 Midscene Playground 的 scrcpy 实时画面,可以直接点击和滑动手机画面。
119
- - 点击预览中的组件后,组件树会定位并选中对应节点,默认同时显示组件边框。
120
- - 实时流不可用时会自动使用 ADB 截图轮询,避免两种画面来源相互覆盖。
121
- - 画面停止更新时,可点击设备预览工具栏中的刷新按钮重新获取画面。
122
-
123
- ### App 组件树
124
-
125
- - 首次进入页面、切换设备、Activity 变化或页面结构变化后,组件树会自动刷新。
126
- - 自动刷新会尽量保留仍然存在的已选节点。
127
- - 录制操作、回放和手动刷新期间会暂停自动刷新,结束后自动恢复。
128
- - 组件树支持横向和纵向滚动;下方“当前 Activity”最多显示三行。
129
- - 手动点击“刷新组件树”可立即重新抓取当前页面结构。
130
-
131
- 注意:Appium 回放和组件树抓取都会占用 Android UiAutomation。系统会按设备串行执行,并在连接被抢占时清理残留进程后自动重试一次。
132
-
133
- ## 流程图节点
134
-
135
- 录制步骤以流程图节点展示。
136
-
137
- 节点类型:
138
-
139
- - 操作:执行点击、输入、滑动、返回等动作。
140
- - 判断:根据页面状态走“是 / 否”分支。
141
- - 校验:验证页面是否满足预期。
142
-
143
- 点击节点可以展开编辑面板,支持修改:
144
-
145
- - 节点名称
146
- - 备注,例如“登录按钮”“账号输入框”
147
- - 节点类型
148
- - 超时时间
149
- - 输入文本
150
- - 是否可选
151
- - selector 和父级上下文 selector
152
- - 判断节点的指定文本与匹配方式
153
-
154
- 流程画布支持以下操作:
155
-
156
- - 按住空白区域或节点拖动画布。
157
- - 按住 `Ctrl` 并滚动鼠标滚轮,在 `50%` 到 `200%` 之间缩放。
158
- - 点击“放大”打开流程总览;总览中同样可以点击节点编辑。
159
- - 点击节点后的“插入操作”可在任意步骤中间新增操作。
160
- - 点击节点右上角删除按钮可移除节点,流程引用会自动修正。
161
- - 浏览器刷新后会保持当前功能页面和 Appium 工作区 Tab;存在未保存修改时,刷新或关闭页面前会提示保存。
162
-
163
- ### 跨 Activity 录制
164
-
165
- 录制点击后如果检测到 Activity 发生变化,系统会提示选择继续录制或结束并保存。需要把多个页面保存在同一脚本时选择继续,等待新页面组件树刷新后即可录制后续操作;希望按页面拆分时,结束当前脚本并在新 Activity 中创建脚本,再通过“连接脚本”组合流程。
166
-
167
- 跨页面流程建议在跳转操作后添加“等待 Activity”,明确目标页面并提高回放稳定性。加载历史脚本时,即使手机当前 Activity 与脚本入口 Activity 不同,也可以查看和编辑流程;回放前应确认启动节点、等待 Activity 或前置操作能把设备带到正确页面。
168
-
169
- ## 操作说明
170
-
171
- ### 当前操作分类
172
-
173
- - 组件操作:录制点击、录制输入、提取变量、清空输入、长按、存在则点击、存在则输入、存在则清空。
174
- - 设备操作:点击坐标、系统返回、Home 键、最近任务、电源键、滑动、双指缩放、启动 APP、停止 APP、启动相册、清除 APP 数据。
175
- - 判断与等待:判断存在、判断勾选、文字点击、AI 识别、图像判断、等待出现、等待消失、等待 Activity。
176
- - 检测画面变化:在三级菜单中分别添加“开始”和“结束”,对比指定区域前后的画面。
177
- - 循环:添加有界循环、进入下一次循环和退出循环。进入下一次循环会跳过本轮剩余节点;退出循环会执行目标循环结束后的流程。
178
- - 流程控制:连接脚本、终止流程、输出日志和添加延时。
179
-
180
- 旧脚本中的“断言存在”和“断言文本”仍可回放,但新流程统一使用当前菜单中的判断与等待操作。
181
-
182
- ### 提取变量
183
-
184
- 读取选中组件的文字或属性并保存为脚本变量,后续输入、判断、定位和日志节点可以使用 `{{变量名}}` 引用。
185
-
186
- ### 停止 APP
187
-
188
- 停止指定包名的 App 进程,不卸载应用,也不清除登录信息和本地数据。节点中可以修改目标包名。
189
-
190
- ### 启动相册
191
-
192
- 打开设备可用的系统相册或常见相册应用,只负责进入相册,不自动选择照片或视频。
193
-
194
- ### 清除 APP 数据
195
-
196
- 清除目标应用数据并恢复初始状态,会删除登录信息和本地设置。该操作只允许放在流程开始位置,使用前应确认测试数据可以重置。
197
-
198
- ### 判断勾选
199
-
200
- 读取原生 Checkbox、RadioButton 或 Switch 的真实 checked 状态,并按勾选或未勾选进入对应分支。普通图片控件应改用图像判断。
201
-
202
- ### 文字点击
203
-
204
- 按指定文字精确或模糊查找原生组件,匹配后点击并进入成功分支,未匹配时进入另一分支。它不识别图片或自绘画面中的文字。
205
-
206
- ### AI 识别
207
-
208
- 将设备截图发送给视觉模型,可以执行单帧识别、持续观察或检测命中后提前结束。默认按顺序继续执行;启用分支后根据识别结果进入不同路径。
209
-
210
- ### 图像判断
211
-
212
- 使用本地 OpenCV 判断模板、图片勾选状态、黑屏、区域颜色或多帧变化,不调用模型。固定图标和稳定视觉特征适合使用该操作。
213
-
214
- ### 检测画面变化
215
-
216
- 从三级菜单分别添加“开始”和“结束”。开始节点保存指定区域的基准截图,结束节点与对应基准比较并在日志和报告中记录变化结果。
217
-
218
- ### 循环
219
-
220
- 在最大执行次数范围内重复执行循环体,可以固定次数运行,也可以根据元素出现或消失提前退出。最大次数用于防止脚本无限循环。
221
-
222
- ### 进入下一次循环
223
-
224
- 跳过当前轮剩余节点并进入指定的当前或外层循环下一轮。达到最大次数后执行循环结束路径。
225
-
226
- ### 退出循环
227
-
228
- 立即结束指定的当前或外层循环,随后执行该循环结束后的流程。
229
-
230
- ### 终止流程
231
-
232
- 主动结束整次回放,后续节点和连接脚本不再执行。系统仍会保存本次日志和报告。
233
-
234
- ### 输出日志
235
-
236
- 输出自定义内容和日志关键字,支持 `{{变量名}}`。适合标记测试阶段、记录读取值或为报告提供检索标识。
237
-
238
- ### 录制点击
239
-
240
- 用途:点击某个组件。
241
-
242
- 操作方法:
243
-
244
- 1. 在设备预览或组件树中选择按钮、图标、列表项等组件。
245
- 2. 点击“添加操作”。
246
- 3. 选择“录制点击”。
247
-
248
- 示例:
249
-
250
- ```text
251
- 点击 登录按钮
252
- 点击 添加设备入口
253
- 点击 我的 Tab
254
- ```
255
-
256
- 适用场景:
257
-
258
- - 点击按钮。
259
- - 点击列表项。
260
- - 点击页面入口。
261
-
262
- 注意:
263
-
264
- - 优先使用组件 selector。
265
- - 如果 Appium 找不到组件,会使用 bounds 坐标兜底。
266
-
267
- ### 录制输入
268
-
269
- 用途:向输入框输入文本。
270
-
271
- 操作方法:
272
-
273
- 1. 选择输入框组件。
274
- 2. 点击“添加操作”。
275
- 3. 选择“录制输入”。
276
- 4. 在弹窗中输入文本。
277
-
278
- 示例:
279
-
280
- ```text
281
- 输入 账号输入框:test@example.com
282
- 输入 密码输入框:123456
283
- ```
284
-
285
- 适用场景:
286
-
287
- - 账号输入。
288
- - 密码输入。
289
- - 搜索框输入。
290
- - 表单字段输入。
291
-
292
- 注意:
293
-
294
- - 如果账号框和密码框底层 id 一样,录制器会自动保存父级上下文 selector;回放时会先找父级,再找子输入框。
295
- - 录制后可以展开节点修改输入内容。
296
-
297
- ### 清空输入
298
-
299
- 用途:清空输入框已有内容。
300
-
301
- 操作方法:
302
-
303
- 1. 选择输入框组件。
304
- 2. 点击“添加操作”。
305
- 3. 选择“清空输入”。
306
-
307
- 示例:
308
-
309
- ```text
310
- 清空 搜索框
311
- 输入 搜索框:摄像机
312
- ```
313
-
314
- 适用场景:
315
-
316
- - 搜索框重复测试。
317
- - 输入框默认已有内容。
318
- - 修改表单字段前先清空。
319
-
320
- ### 点击坐标
321
-
322
- 用途:按当前组件中心坐标点击,不依赖 selector。
323
-
324
- 操作方法:
325
-
326
- 1. 选择目标区域。
327
- 2. 点击“添加操作”。
328
- 3. 选择“点击坐标”。
329
-
330
- 示例:
331
-
332
- ```text
333
- 点击坐标 540,1680
334
- ```
335
-
336
- 适用场景:
337
-
338
- - 组件树识别不到的自绘区域。
339
- - selector 不稳定,但坐标稳定的按钮。
340
-
341
- 注意:
342
-
343
- - 对分辨率、横竖屏、布局变化敏感。
344
- - 能用组件点击时,不建议优先用坐标点击。
345
-
346
- ### 长按
347
-
348
- 用途:长按某个组件或坐标。
349
-
350
- 操作方法:
351
-
352
- 1. 选择目标组件。
353
- 2. 点击“添加操作”。
354
- 3. 选择“长按”。
355
-
356
- 示例:
357
-
358
- ```text
359
- 长按 设备卡片
360
- ```
361
-
362
- 适用场景:
363
-
364
- - 长按打开菜单。
365
- - 长按删除列表项。
366
- - 长按进入编辑模式。
367
-
368
- 默认长按时间为 `800ms`,可展开节点修改超时时间。
369
-
370
- ### 返回键
371
-
372
- 用途:执行 Android 返回键。
373
-
374
- 操作方法:
375
-
376
- 1. 点击“添加操作”。
377
- 2. 选择“返回键”。
378
-
379
- 示例:
380
-
381
- ```text
382
- 点击设备详情
383
- 返回键
384
- 断言存在 设备列表
385
- ```
386
-
387
- 适用场景:
388
-
389
- - 从详情页返回列表页。
390
- - 关闭页面。
391
- - 关闭系统弹窗或软键盘。
392
-
393
- ### Home 键
394
-
395
- 用途:执行 Android Home 键。
396
-
397
- 操作方法:
398
-
399
- 1. 点击“添加操作”。
400
- 2. 选择“Home 键”。
401
-
402
- 示例:
403
-
404
- ```text
405
- Home 键
406
- 启动 App
407
- ```
408
-
409
- 适用场景:
410
-
411
- - 验证 App 从后台恢复。
412
- - 回到桌面后重新启动 App。
413
-
414
- ### 最近任务
415
-
416
- 用途:打开 Android 最近任务页面。
417
-
418
- 操作方法:
419
-
420
- 1. 点击“添加操作”。
421
- 2. 选择“最近任务”。
422
-
423
- 示例:
424
-
425
- ```text
426
- 最近任务
427
- Home 键
428
- ```
429
-
430
- 适用场景:
431
-
432
- - 验证多任务切换。
433
- - 验证 App 后台状态。
434
-
435
- ### 电源键
436
-
437
- 用途:发送 Android 电源键。
438
-
439
- 操作方法:
440
-
441
- 1. 点击“添加操作”。
442
- 2. 选择“电源键”。
443
-
444
- 示例:
445
-
446
- ```text
447
- 电源键
448
- 添加延时 1000ms
449
- 电源键
450
- ```
451
-
452
- 适用场景:
453
-
454
- - 锁屏 / 亮屏相关测试。
455
-
456
- 注意:
457
-
458
- - 不同设备锁屏行为可能不同。
459
- - 自动化回放时请确认设备不会因锁屏无法继续操作。
460
-
461
- ### 滑动
462
-
463
- 用途:执行上、下、左、右滑动。
464
-
465
- 操作方法:
466
-
467
- 1. 点击“添加操作”。
468
- 2. 选择“滑动”。
469
- 3. 输入方向:`上`、`下`、`左`、`右`。
470
-
471
- 示例:
472
-
473
- ```text
474
- 下滑
475
- 断言存在 下一页内容
476
- ```
477
-
478
- 适用场景:
479
-
480
- - 列表滚动。
481
- - 页面翻页。
482
- - 轮播切换。
483
-
484
- ### 双指缩放
485
-
486
- 用途:执行双指放大或缩小。
487
-
488
- 操作方法:
489
-
490
- 1. 点击“添加操作”。
491
- 2. 选择“双指缩放”。
492
- 3. 输入方向:`放大` 或 `缩小`。
493
-
494
- 示例:
495
-
496
- ```text
497
- 双指放大
498
- 双指缩小
499
- ```
500
-
501
- 适用场景:
502
-
503
- - 地图缩放。
504
- - 图片预览缩放。
505
- - 视频画面缩放。
506
-
507
- ### 启动 App
508
-
509
- 用途:启动当前选择的预设 App。
510
-
511
- 操作方法:
512
-
513
- 1. 先选择预设 App 参数。
514
- 2. 在录制步骤的“开始”节点下点击“插入操作”。
515
- 3. 选择“启动 App”,该操作会作为流程第一步插入。
516
-
517
- 示例:
518
-
519
- ```text
520
- 启动 App
521
- 等待 Activity com.example.MainActivity
522
- ```
523
-
524
- 适用场景:
525
-
526
- - 脚本第一步启动目标 App。
527
- - 从桌面或其他 App 回到目标 App。
528
-
529
- “启动 APP”只能从开始节点添加,并且每个脚本只能有一个启动节点。添加后菜单中的“启动 App”会自动置灰,删除该节点后恢复可用。启动时会通过 ADB 使用当前预设 App 参数中保存的包名打开应用。
530
-
531
- 录制时可以点击启动节点上的执行按钮立即启动 App,并刷新当前 Activity。回放前会先检查目标 App 是否已在前台:已经启动时跳过“启动 APP”节点并保留当前页面;通过“连接脚本”进入子脚本时,也会跳过子脚本中的启动节点。
532
-
533
- ### 添加延时
534
-
535
- 用途:等待固定时间。
536
-
537
- 操作方法:
538
-
539
- 1. 点击“添加操作”。
540
- 2. 选择“添加延时”。
541
- 3. 输入毫秒数。
542
-
543
- 也可以在流程节点后点击“插入延时”。
544
-
545
- 示例:
546
-
547
- ```text
548
- 点击 登录按钮
549
- 添加延时 1000ms
550
- 断言存在 首页元素
551
- ```
552
-
553
- 适用场景:
554
-
555
- - 等动画结束。
556
- - 等网络请求短暂完成。
557
- - 等系统弹窗出现。
558
-
559
- 注意:
560
-
561
- - 优先使用“等待 Activity”“断言存在”等状态等待。
562
- - 固定延时越多,脚本越慢。
563
-
564
- ### 判断存在
565
-
566
- 用途:判断某个组件或指定文本是否出现,并根据结果走不同分支。它可以用于弹窗,也可以用于按钮、列表项、提示文案等普通页面组件。
567
-
568
- 操作方法:
569
-
570
- 1. 选择目标组件上的稳定元素,例如标题、按钮、列表项或提示文案。
571
- 2. 点击“添加操作”。
572
- 3. 选择“判断存在”。
573
- 4. 点击判断节点,按需填写“指定文本”。
574
- 5. 选择“模糊匹配(包含)”或“精准匹配(完全一致)”。
575
- 6. 在“是”或“否”分支下点击“插入操作”,分别添加分支步骤。
576
- 7. 如果两个分支后续要执行相同操作,可以复制公共节点到对应分支,或把公共流程拆成“连接脚本”复用。
577
-
578
- 示例:
579
-
580
- ```text
581
- 判断存在 确认按钮
582
- 是 -> 点击 确认按钮
583
- 否 -> 不添加操作
584
- ```
585
-
586
- 分支说明:
587
-
588
- - 未配置指定文本时,只判断目标组件是否存在。
589
- - 配置指定文本后,会同时检查组件及其子节点文本。
590
- - 模糊匹配会忽略换行和连续空白差异,只要规范化后的文本包含目标内容即可。
591
- - 精准匹配要求 Appium 返回的完整文本与指定文本完全一致。
592
- - 分支可以包含多个连续步骤,也可以在分支末尾连接其他脚本。
593
-
594
- 适用场景:
595
-
596
- - 首次启动确认弹窗。
597
- - 权限说明弹窗。
598
- - 活动弹窗。
599
- - 只出现一次的引导弹窗。
600
-
601
- ### 判断同组件不同内容弹窗
602
-
603
- 用途:同一个页面有两个弹窗复用同一个组件,只是标题或正文不同,需要按文案区分弹窗类型。
604
-
605
- 操作方法:
606
-
607
- 1. 选择能覆盖弹窗正文的节点;如果文本位于子节点中,也可以选择其稳定父容器。
608
- 2. 点击“添加操作”。
609
- 3. 选择“判断存在”。
610
- 4. 展开节点,在“指定文本”中输入该弹窗特有的文案。
611
- 5. 根据需要选择模糊匹配或精准匹配。
612
- 6. 在“是”分支添加该弹窗对应的确认、取消或关闭步骤;“否”分支继续下一个判断或不添加操作。
613
-
614
- 示例:
615
-
616
- ```text
617
- 判断存在:指定文本“是否删除设备”
618
- 是 -> 点击 确定
619
- 否 -> 判断存在:指定文本“是否退出登录”
620
- 是 -> 点击 确定
621
- 否 -> 不添加操作
622
- ```
623
-
624
- 适用场景:
625
-
626
- - 两个弹窗 `resource-id`、按钮 id、class 都一样。
627
- - 同一个弹窗组件展示不同业务文案。
628
- - 需要根据弹窗内容执行不同分支。
629
-
630
- 注意:
631
-
632
- - 弹窗不是必出现时,先用“判断存在”形成分支,不要直接使用“断言文本”,否则弹窗未出现会让回放失败。
633
- - 不要只判断“确定”按钮是否存在,这会把两个弹窗都识别成同一种弹窗。
634
- - 优先用弹窗标题、正文、关键提示文案作为判断目标。
635
- - 节点详情里的 selector 会显示当前 Activity,方便确认该定位属于哪个页面。
636
-
637
- ### 存在则点击
638
-
639
- 用途:元素出现时点击,不出现时跳过。
640
-
641
- 操作方法:
642
-
643
- 1. 选择可能出现的按钮,例如权限确认、协议同意、活动关闭。
644
- 2. 点击“添加操作”。
645
- 3. 选择“存在则点击”。
646
-
647
- 示例:
648
-
649
- ```text
650
- 存在则点击 同意按钮
651
- 存在则点击 关闭活动弹窗
652
- ```
653
-
654
- 适用场景:
655
-
656
- - 一次性弹窗。
657
- - 偶尔出现的活动弹窗。
658
- - 首次启动协议确认。
659
-
660
- ### 存在则输入
661
-
662
- 用途:输入框出现时输入文本,不出现时跳过。
663
-
664
- 操作方法:
665
-
666
- 1. 选择可能出现的输入框。
667
- 2. 点击“添加操作”。
668
- 3. 选择“存在则输入”。
669
- 4. 在居中弹窗中输入文本。
670
-
671
- 示例:
672
-
673
- ```text
674
- 存在则输入 搜索框:摄像机
675
- ```
676
-
677
- 录制后可展开节点修改输入内容。
678
-
679
- ### 存在则清空
680
-
681
- 用途:输入框出现时清空,不出现时跳过。
682
-
683
- 示例:
684
-
685
- ```text
686
- 存在则清空 搜索框
687
- 存在则输入 搜索框:摄像机
688
- ```
689
-
690
- ### 存在则返回
691
-
692
- 用途:某个遮挡元素或页面出现时执行返回键,不出现时跳过。
693
-
694
- 示例:
695
-
696
- ```text
697
- 存在则返回 权限说明页
698
- 存在则返回 引导页
699
- ```
700
-
701
- 适用场景:
702
-
703
- - 临时引导页。
704
- - 偶尔出现的中间页。
705
- - 可通过系统返回关闭的遮挡页面。
706
-
707
- ### 等待出现
708
-
709
- 用途:等待页面加载到某个目标状态。
710
-
711
- 操作方法:
712
-
713
- 1. 选择目标页面的稳定元素。
714
- 2. 点击“添加操作”。
715
- 3. 选择“等待出现”。
716
-
717
- 示例:
718
-
719
- ```text
720
- 点击 登录按钮
721
- 等待出现 首页设备列表
722
- ```
723
-
724
- 适用场景:
725
-
726
- - 页面跳转后等待目标元素出现。
727
- - 单 Activity App 无法通过 Activity 判断页面时。
728
-
729
- ### 断言存在
730
-
731
- 用途:校验页面上必须存在某个组件。
732
-
733
- 操作方法:
734
-
735
- 1. 选择目标组件。
736
- 2. 点击“添加操作”。
737
- 3. 选择“断言存在”。
738
-
739
- 示例:
740
-
741
- ```text
742
- 断言存在 首页设备列表
743
- 断言存在 登录失败提示
744
- ```
745
-
746
- 适用场景:
747
-
748
- - 校验登录成功。
749
- - 校验页面跳转成功。
750
- - 校验按钮或列表存在。
751
-
752
- 注意:
753
-
754
- - 断言失败表示测试失败。
755
- - 不建议用于可有可无的弹窗。
756
-
757
- ### 断言文本
758
-
759
- 用途:校验组件文本是否包含指定内容。
760
-
761
- 操作方法:
762
-
763
- 1. 选择带文本的组件。
764
- 2. 点击“添加操作”。
765
- 3. 选择“断言文本”。
766
- 4. 输入要校验的文本。
767
-
768
- 示例:
769
-
770
- ```text
771
- 断言文本 登录失败提示:密码错误
772
- 断言文本 页面标题:设备
773
- ```
774
-
775
- 适用场景:
776
-
777
- - 校验错误提示。
778
- - 校验标题。
779
- - 校验列表文案。
780
-
781
- ### 等待元素消失
782
-
783
- 用途:等待某个组件从页面上消失。
784
-
785
- 操作方法:
786
-
787
- 1. 选择 loading、弹窗或遮罩组件。
788
- 2. 点击“添加操作”。
789
- 3. 选择“等待元素消失”。
790
-
791
- 示例:
792
-
793
- ```text
794
- 点击 登录按钮
795
- 等待元素消失 loading
796
- 断言存在 首页设备列表
797
- ```
798
-
799
- 适用场景:
800
-
801
- - 等 loading 结束。
802
- - 等弹窗关闭。
803
- - 等遮罩消失。
804
-
805
- ### 等待 Activity
806
-
807
- 用途:等待 Android 当前 Activity 切换到指定值。
808
-
809
- 操作方法:
810
-
811
- 1. 点击“添加操作”。
812
- 2. 选择“等待 Activity”。
813
- 3. 输入目标 Activity。
814
-
815
- 示例:
816
-
817
- ```text
818
- 点击 登录按钮
819
- 等待 Activity com.example.MainActivity
820
- ```
821
-
822
- 适用场景:
823
-
824
- - 点击按钮后进入新页面。
825
- - 启动 App 后等待首页 Activity。
826
-
827
- 注意:
828
-
829
- - 有些 App 使用单 Activity 架构,Activity 不会变化,这时应改用“断言存在”判断页面元素。
830
-
831
- ### 连接脚本
832
-
833
- 用途:把一个已保存脚本连接到当前脚本后继续执行。
834
-
835
- 操作方法:
836
-
837
- 1. 先保存被连接的脚本,例如“首页脚本”。
838
- 2. 打开当前脚本,例如“登录脚本”。
839
- 3. 在主流程节点或判断分支下点击“插入操作”。
840
- 4. 选择“连接脚本”,再选择目标脚本。
841
- 5. 保存当前脚本。
842
-
843
- 校验规则:
844
-
845
- - 主流程和判断分支均可选择同一 App 的其他已保存脚本,不要求入口 Activity 与插入点一致。
846
- - 目标脚本已绑定入口 Activity 时,回放会等待手机进入该 Activity;页面没有真正跳转时会超时失败。
847
- - 目标脚本未绑定入口 Activity 时,直接从当前画面执行。连接脚本不会自动切换手机页面,需在前序步骤中完成点击、返回等操作。
848
- - 目标脚本必须属于当前 App,且不能连接当前脚本自身。
849
- - 脚本互相连接形成循环时,回放会终止并提示循环连接。
850
-
851
- 示例:
852
-
853
- ```text
854
- 登录脚本:
855
- 输入账号
856
- 输入密码
857
- 点击登录
858
- 连接脚本:首页脚本
859
-
860
- 首页脚本:
861
- 启动 App
862
- 断言存在 首页元素
863
- 点击设备列表
864
- 断言存在 设备详情
865
- ```
866
-
867
- 适用场景:
868
-
869
- - 测试人员不知道点击后页面是什么。
870
- - 登录流程和首页流程由不同人录制。
871
- - 复用公共前置流程。
872
-
873
- 回放行为:
874
-
875
- - 不重新创建 Appium session。
876
- - 子脚本中的“启动 App”节点会自动跳过,不会重新启动 App。
877
- - 在当前页面状态继续执行目标脚本。
878
- - 子脚本单独回放时仍会正常执行自己的“启动 App”节点。
879
- - 如果脚本互相连接形成循环,会终止并提示循环连接。
880
-
881
- ### 回放报告总结
882
-
883
- 在“参数配置 → Appium配置 → 回放报告总结”中配置,默认关闭,与截图报告独立。
884
-
885
- 1. 在上方“提示词优化模型”填写 Base URL、API Key、Model Name,并点击“测试并保存”。该文本模型同时用于优化提示词和生成回放报告总结。
886
- 2. 开启“回放报告总结”。开关和报告提示词修改后自动保存。
887
- 3. 在回放按钮的设置中选择报告模板;不选择时使用默认测试报告。默认格式包括测试概览(脚本名称、起止时间、结果、总时长)、执行配置及节点参数、用例描述表格、失败详情和汇总,也可以选择出图时间分析或自定义模板。
888
- 4. 回放结束后将脱敏日志、主脚本与连接脚本配置发送给总结模型,生成的 Markdown 使用原回放报告路径,保存在配置的报告输出目录(默认 `output`);完成日志会显示报告路径。
889
-
890
- 开启报告总结后,工具会在回放前验证提示词优化模型。模型不可用时,开关旁会提示“模型不可用,使用默认模板”,回放仍会继续并生成基础报告。总结在设备操作结束后生成,页面会显示生成进度,总结耗时不计入测试总时长。关闭时继续生成原基础报告且不调用总结模型;请求失败、超时或返回空内容时保留基础报告和原始日志,并输出失败原因,不改变测试结果。模型请求最多等待 60 秒。
891
-
892
- 报告不会向模型发送截图和图片模板。为控制输入大小,脚本配置最多保留约 50000 字符,日志最多保留约 100000 字符;超限时保留头尾并标注中段省略,生成报告也会注明信息不完整。模型的原因分析属于辅助判断,应结合原始日志核实。
893
-
894
- ## 脚本保存与管理
895
-
896
- ### 保存和更新
897
-
898
- - 新脚本需要填写名称并选择预设 App 后保存。
899
- - 从顶部脚本下拉框或“脚本列表”加载历史脚本后,再次点击“保存”会更新原脚本,不会因为名称相同而报错。
900
- - 脚本数据只保存流程图 `flow_json`,其中包含主流程、判断分支、连接关系、节点备注和页面检查点。
901
- - 已保存脚本加载后仍可直接查看和编辑;当前 Activity 不影响脚本编辑。
902
-
903
- ### 脚本列表
904
-
905
- 在“录制与脚本”区域切换到“脚本列表”Tab,可以:
906
-
907
- - 加载脚本:回到“当前录制”继续查看、编辑或回放。
908
- - 下载脚本:导出包含完整流程的 JSON 文件。
909
- - 导入脚本:选择此前导出的 JSON 文件;名称重复时自动生成新名称,不覆盖已有脚本。
910
- - 删除脚本:删除数据库中的已录制脚本。
911
-
912
- 导入脚本后仍需在本机配置对应的预设 App,并连接可用的 Android 设备。
913
-
914
- ## 回放输出与报告
915
-
916
- ### 实时日志
917
-
918
- 点击“回放”后,日志会随着执行过程实时追加,不需要等待整个脚本结束。所有流程统一使用 `[节点 N]` 编号,常见内容包括:
919
-
920
- ```text
921
- [节点 1] 开始:启动 APP com.example.app
922
- [节点 1] 结果:APP 已在前台,跳过启动 com.example.app
923
- [节点 1] 完成:启动 APP com.example.app
924
- [节点 2] 判断:是
925
- ```
926
-
927
- 默认情况下,每次回放会启动一个独立端口的 Appium 服务。回放输出会完整保留该服务的 stdout/stderr,包括 `Appium`、`AndroidUiautomator2Driver`、`ADB`、请求参数、响应内容和驱动诊断信息,同时保留工具自身记录的请求方法、接口路径、HTTP 状态和耗时。例如:
928
-
929
- ```text
930
- 2026-08-22 13:57:35:756 - [Appium] Welcome to Appium v3.5.0
931
- [AndroidUiautomator2Driver@ec68] Got response with status 200: {...}
932
- [ADB] Running '.../adb -s device-id shell ...'
933
- [Appium] 请求:POST /session
934
- [Appium] 响应:HTTP 200 POST /session(328ms)
935
- ```
936
-
937
- 完整 Appium 日志可能包含输入值、设备信息和 WebDriver 请求参数。共享 `.log` 文件前请先检查并清理敏感内容。
938
-
939
- 如果通过环境变量 `APPIUM_SERVER_URL` 显式连接外部 Appium 服务,工具无法读取外部进程所在终端的 stdout/stderr,只会保存 WebDriver 请求、响应状态、耗时和错误响应。需要完整服务端日志时,请不要设置该环境变量,让工具为回放自动启动 Appium。
940
-
941
- “回放输出”默认只保留最近 `80` 行的可视高度,避免无限撑长页面。可以使用:
942
-
943
- - 复制:复制当前完整日志。
944
- - 展开查看:在弹窗中查看完整日志。
945
- - 清除:清空页面上的回放输出。
946
-
947
- 回放期间顶部会显示“终止”按钮。点击后会停止后续节点、关闭当前 Appium session,并继续生成本次回放的报告和日志;执行结果标记为“已终止”。
948
-
949
- ### 回放报告、日志和截图回放
950
-
951
- 每次回放结束后,无论成功、失败或手动终止,都会生成 Markdown 报告、纯文本日志和单文件 HTML 截图回放。三个文件使用相同的日期时间和脚本名称:
952
-
953
- ```text
954
- 当前日期时间-脚本名称.md
955
- 当前日期时间-脚本名称.log
956
- 当前日期时间-脚本名称.html
957
- ```
958
-
959
- 报告保存到“参数配置 > 运行配置”指定的目录;没有指定时,默认保存在启动命令所在目录的 `output` 文件夹中,例如:
960
-
961
- ```text
962
- output/2026-08-21_17-13-42-831-登录流程.md
963
- output/2026-08-21_17-13-42-831-登录流程.log
964
- output/2026-08-21_17-13-42-831-登录流程.html
965
- ```
966
-
967
- 报告包含:
968
-
969
- - 脚本、App、Activity、设备、执行时间和结果。
970
- - 每个节点的类型、selector、上下文 selector、输入值、超时、备注和分支配置。
971
- - 每个节点的实际执行状态与执行信息。
972
- - 完整回放日志。
973
-
974
- `.log` 文件保存页面中显示的完整回放过程,以及本次托管 Appium 进程未经截断的 stdout/stderr。生成成功后,报告与日志的绝对路径会追加到实时回放输出中;报告位置同时保存到数据库,便于后续追溯。
975
-
976
- `.html` 文件在每个实际执行节点前后采集设备截图,并将截图以 Base64 形式直接嵌入文件。打开后可以:
977
-
978
- - 在左侧查看执行步骤和当前截图对应的脚本、节点、阶段、结果、备注与 selector。
979
- - 在顶部时间轴查看截图所在的真实执行时间,并点击缩略图或时间轴跳转。
980
- - 使用“上一帧”“播放”“下一帧”及进度条控制回放;播放进度按实际回放耗时连续推进,不再按固定间隔逐张切换。
981
- - 在左侧步骤下方展开完整回放日志;日志默认收起。
982
-
983
- 判断分支、失败和手动终止会保留对应的最后画面。连接脚本中的实际执行节点也会进入同一条截图时间线。HTML 不依赖外部图片目录,可以单独复制和打开。
984
-
985
- ## 组合示例
986
-
987
- ### 示例 1:登录成功后连接首页脚本
988
-
989
- 登录脚本:
990
-
991
- ```text
992
- 启动 App
993
- 输入 账号
994
- 输入 密码
995
- 判断存在 用户协议弹窗
996
- 是 -> 点击 同意 -> 点击 登录 -> 判断登录是否成功 -> 连接脚本 首页脚本
997
- 否 -> 点击 登录 -> 判断登录是否成功 -> 连接脚本 首页脚本
998
- ```
999
-
1000
- 首页脚本:
1001
-
1002
- ```text
1003
- 启动 App
1004
- 断言存在 首页设备列表
1005
- 点击 添加设备
1006
- 断言存在 添加设备页面标题
1007
- ```
1008
-
1009
- 适合场景:
1010
-
1011
- - 录制登录时不知道登录成功后跳到哪个页面。
1012
- - 首页流程希望独立维护。
1013
-
1014
- ### 示例 2:登录成功 / 失败分支
1015
-
1016
- ```text
1017
- 输入 账号
1018
- 输入 密码
1019
- 点击 登录
1020
- 判断 首页设备列表是否存在
1021
- 是 -> 断言存在 首页设备列表
1022
- 否 -> 断言文本 登录错误提示
1023
- ```
1024
-
1025
- 操作方法:
1026
-
1027
- 1. 先录制输入和点击登录。
1028
- 2. 选择用于区分登录结果的稳定元素,添加“判断存在”。
1029
- 3. 在“是”分支插入首页校验或“连接脚本”。
1030
- 4. 在“否”分支插入错误提示断言。
1031
- 5. 如果两个分支后续有相同公共步骤,使用批量复制把公共节点复制到对应分支。
1032
-
1033
- ### 示例 3:一次性弹窗
1034
-
1035
- ```text
1036
- 启动 App
1037
- 判断存在 确认按钮
1038
- 是 -> 点击 确认按钮 -> 断言存在 首页
1039
- 否 -> 断言存在 首页
1040
- ```
1041
-
1042
- 适合场景:
1043
-
1044
- - 只第一次安装后出现的确认弹窗。
1045
- - 老用户不再出现的弹窗。
1046
-
1047
- ### 示例 4:列表滚动查找元素
1048
-
1049
- ```text
1050
- 启动 App
1051
- 断言存在 列表页标题
1052
- 上滑
1053
- 添加延时 500ms
1054
- 断言存在 目标列表项
1055
- ```
1056
-
1057
- 如果列表加载慢,可以把固定延时换成目标元素断言。
1058
-
1059
- ### 示例 5:从详情页返回列表页
1060
-
1061
- ```text
1062
- 点击 设备卡片
1063
- 断言存在 设备详情标题
1064
- 返回键
1065
- 断言存在 设备列表
1066
- ```
1067
-
1068
- 适合场景:
1069
-
1070
- - 校验页面返回路径。
1071
- - 校验返回后列表仍可见。
1072
-
1073
- ## 常见问题
1074
-
1075
- 常见问题已独立整理到 [FAQ.md](./FAQ.md)。
1076
-
1077
- ## 推荐录制规范
1078
-
1079
- - 每个脚本只负责一个清晰场景。
1080
- - 登录、首页、详情页可以拆成多个脚本,用“连接脚本”组合。
1081
- - 每次页面跳转后,添加一个“断言存在”或“等待 Activity”。
1082
- - 弹窗或其他可选组件使用“判断存在”,不要直接写死必点。
1083
- - 坐标点击只作为兜底。
1084
- - 给关键节点填写“登录按钮”“账号输入框”等备注,方便查看流程和报告。
1085
- - 回放失败后优先查看“回放输出”中的失败节点、Activity 和 selector,再打开 `output` 中的 Markdown 报告查看完整配置。