1

Is there a way to run a list of Robo Scripts (locally or to Firebase Test Lab) instead of running them one by one?

The way to run Robo Scripts locally one at a time is the following:

java -jar crawl_launcher.jar --apk-file your_app.apk --app-package-name your.app.package.name --android-sdk path/to/android/sdk -—robo-script-file generated_script.json

Moreover, is it possible to stop the App Crawler when the Robo Script is completed? (e.g. with a command in the script). Now, when the App Crawler completes the steps of the script proceeds to explore the app as usual with random actions.

Fivos
  • 558
  • 8
  • 19

1 Answers1

1

You can add

{
  "eventType": "TERMINATE_CRAWL"
}

as the last action in your Roboscript. It will stop Robo when Roboscript finishes.

  • When I add this, the whole Robo Script is totally ignored and the App Crawler starts to explore the app as usually. Could you please provide a url with the documentation of these eventTypes? – Fivos Feb 11 '22 at 09:05
  • 1
    It usually means that Roboscript is not well formed. Most probably, a comma is missing after the action block preceding the action block you appended to you Roboscript. As for documentation - we are currently working on releasing it to external users. – Stanislav Negara Feb 11 '22 at 20:02
  • https://firebase.google.com/docs/test-lab/android/robo-scripts-reference#execution-options This json is malformed, @StanislavNegara Do you work for Firebase Test Lab? – Pablo Cegarra Nov 08 '22 at 19:33
  • Execution options are a header block preceding a Roboscript in a file. Although the resulting file is a malformed JSON as a whole, execution options block and the Roboscript block are processed separately as well formed JSON. – Stanislav Negara Nov 11 '22 at 00:16