Search code examples
firebase-test-lab

Recorded Robo Test fails to execute any actions


I've recorded a simple login Robo Test to be executed by App Crawler. I've provided the script to app crawler, and I see in the logs where it loads it, and tries to execute it. However, it always fails at the first action by saying it cannot find the Element.

I see on the screen where it tries to start executing the actions, but it immediately says it executed zero actions and then goes into the pre-canned scripts.


Solution

  • The most common reason for such cases is that your app looks/behaves differently during recording and replaying phases. In particular:

    • Your app might be built with one app package id for debug APK (which is used for Roboscript recording) and a different one for release APK (which you use to perform a Robo crawl with the recorded Roboscript).

    • Your app might show different dialogs or have a somewhat different screen setup during recording and replaying phases (e.g., due to different environments and/or versions).

    You either need to ensure a consistent app look/behavior or modify the recorded Roboscript to remove attributes that are different during recording and replaying phases (e.g., resource ids that use app package id as prefix or contextDescriptors for parent elements).