Scriptless Mobile Tests as JSON: One File for Android and iOS
Описание и применение
Файл JSON с тестами для Android и iOS позволяет быстро исправлять изменения UI, заменяя координаты на селекторы текста или id, и использовать один файл для обеих платформ.
Задача
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