Search code examples
androidfirebasefirebase-test-lab

Firebase test lab - Supply Robo script from CI or command line?


I am using Firebase test labs along with Jenkins to run a Robo test after each build of my Android app. Currently I use a Yaml file to setup all the configurations I need. I supply a username and password using the Robo Directives. However, I now want to supply a Robo Script that controls the sign in process a little bit more than just supplying the login details. I have made the script in Android studio, but I don't see anywhere in the documentation that allows me to supply the location of the Robo Script from the Yaml file or command line, does anyone know if this is possible?

I have tried the documentation and various links from here - https://firebase.google.com/docs/test-lab/command-line


Solution

  • This feature is available today in beta, but not as a full release. You can use the --robo-script flag to specify a script to upload when using

    gcloud beta firebase test android run
    

    It is not available in the release version:

    gcloud firebase test android run
    

    After some time in beta, new features will be promoted to full release. See the CLI docs for the beta version here.