Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Scriptless Mobile Tests as JSON: One File for Android and iOS

说明与用途

使用 JSON 文件编写移动测试,替代坐标录制,支持 Android 和 iOS 的跨平台运行,并可通过编辑单行快速修复 UI 变更。

问题

Recorded mobile tests fail when UI elements are renamed or layout changes, requiring re-recording.

结果

A single JSON file can be edited to fix renamed UI elements, eliminating the need to re-record tests on both platforms.

工作流

  • Start with launchApp action specifying appId for Android and iOS
  • Add one step per user action, naming elements by visible text or id, no coordinates or waits
  • Validate the JSON file with the validator, which reports errors per step
  • Import the validated file via Tests tab or flow_import and replay on Android and iPhone

证据

A recorded test usually holds three things that break: a screen position for each tap, a snapshot of the screen it was recorded on, and a device model it silently assumes.

来源

A JSON flow keeps none of those. Each step names an element by what a person would call it (its text or its id), and each run looks for that element on the screen as it is right now.

来源

  • 记录日期: 2026-10-26T15:11:29.352Z