Firebase Test lab — Knowledge boost for Android App Testing

Rohit Tiwari
3 min readDec 14, 2017

--

Beating out one the major challenges of testing Android application where range of test device in real time is very limited, Firebase Test Lab is Google’s collection of testing tools which provide facility to test your app on ample of devices hosted in a Google data center.

What all you can do with Firebase test lab:
1-
Run Robo Test : Robo test analyzes the structure of your app’s UI and then explores it methodically, crawling automatically into the app simulating user activities.
2 -
Instrumentation Test: Test Lab lets you run Espresso and UI Automator 2.0 instrumentation tests written to exercise your app from the Firebase console, Android Studio, or the g-cloud command line interface
3-
Game Loop Test: Testing Games have been a challenge for all the tester. Test lab helps you to tackle that by implementing game loop test .

Note- This post focus primarily on Robo Test i.e which require zero coding

Get started-

  1. Setup a account in firebase https://firebase.google.com/
  2. Create a new Project ( i.e CloudTest)
Create a new Firebase Project and get started

3. Under menu section select Test lab

4. Now drop or upload you APK file

Upload your APK

5. Select Robo Test and click continue

Select Test type ( For beginner start with Robo Test)

6. Upload your test APK file or script, in case you want to customize your test flow

Upload your test APK ( try apkpure.com )

7. Select the devices with API level on which you would like to test your app

***Please note there is a quota on device usage as per plan- Free plan provides a daily quota of 5 physical and 10 virtual device test executions that is refreshed at (12AM PST)***

8. Select targeted orientation and locale

9. Switch to Advance option > Set test timeout execution> Set Test depth coverage

Advance options

10. Please note if your app has a login page, test crawler will not be able to crawl inside the app until login credential is not pre-set. Set Test credential like -

Enter Username Resource = edit_login_email , Enter username- rtiwari

Enter Password Resource = edit_login_password, Enter password- qwerty123

Note: Use UiAutomatorViewer to get resource id or bug your developer to get the R.id :-)

11. Now start the test -

Start the test
Running a test

12 . Now just sit down and let Firebase test your app for you. You will be notified when test is executed completely.
The test matrix results contain logs, Activity maps , Screenshots ,Videos and Performance matrix.

Also, we can run firebase test from firebase Console, gcloud CLI and with CI system.

Now you are all set to try your first cloud test.
Thanks, Keep smiling keep testing.
Cheers!

--

--