Using Firebase Test Lab for Testing test cases of Phimpme Android
As now we started writing some test cases for Phimpme Android. While running my instrumentation test case, I saw a tab of Cloud Testing in Android Studio. This is for Firebase Test Lab. Firebase Test Lab provides cloud-based infrastructure for testing Android apps. Everyone doesn’t have every devices of all the android versions. But testing on all of them is equally important.
How I used test lab in Phimpme
Run your first test on Firebase
Select Test Lab in your project on the left nav on the Firebase console, and then click Run a Robo test. The Robo test automatically explores your app on wide array of devices to find defects and report any crashes that occur. It doesn’t require you to write test cases. All you need is the app’s APK. Nothing else is needed to use Robo test.
Upload your Application’s APK (app-debug-unaligned.apk) in the next screen and click Continue
Configure the device selection, a wide range of devices and all API levels are present there. You can save the template for future use.
Click on start test to start testing. It will start the tests and show the real time progress as well.
Using Firebase Test Lab from Android Studio
It required Android Studio 2.0+. You needs to edit the configuration of Android Instrumentation test.
Select the Firebase Test Lab Device Matrix under the Target. You can configure Matrix, matrix is actually on what virtual and physical devices do you want to run your test. See the below screenshot for details.
Note: You need to enable the firebase in your project
So using test lab on firebase we can easily test the test cases on multiple devices and make our app more scalable.
- Firebase Documentation: https://firebase.google.com/docs/test-lab/
- Youtube Video: https://youtu.be/4_ZEEX1x17k
- Run a Robo test: https://firebase.google.com/docs/test-lab/robo-ux-test
You must be logged in to post a comment.