UI testing is an important element of the software testing cycle. To validate whether applications have the desired functionalities and that they are user-friendly. It helps to improve the software quality and also ensures users enjoy using the application.
What is UI Testing?
In software engineering, graphical user interface testing is the process of testing a product’s graphical user interface to ensure it meets its specifications.
Testing the UI manually is a very stressful and will have a bad effect during software development, you will learn how to automate the process of testing the UI of your Android project using Firebase Test Lab and Bitrise.
Firebase Test Lab
Firebase Test Lab is a cloud-based app-testing infrastructure. With one operation, you can test your Android or iOS app across a wide variety of devices and device configurations, and see the results — including logs, videos, and screenshots — in the Firebase console.
To check out how to test your app UI in Firebase Test Lab platform manually check it here
Bitrise has made it very easy to automate the process of testing your mobile apps (Android,IOS,Flutter) easily with just a few steps, you will follow the guide below to set it up and start automating your UI test.
If you don't have know the basics of Bitrise check here before you continue
Add Firebase Test Lab Step
To add it, goto dashboard -> Click on the App then select the project you want to automate the testing process.
After selecting the app It will open the image below, then you Click on “Workflow”
The image below will show
Now to add a new Step, you will click on the plus sign in the Workflow
When you click the plus sign you will see many Steps to choose from, but in this tutorial, you need to select a Firebase Test Lab Step.
You can see it’s still in the BETA stage of development, so select the Firebase Test Lab Step.
Note: the Test Lab Step need to be before “Android Build Step” please follow the order below.
1: Install missing Android SDK
2: Android Lint
3: Android Build
4: Virtual Device Testing for Android
Then click save(X+S) and push your new changes to your preferred source code management(Github,Gitlab, Bitbucket, etc)
After a successful Build goto your dashboard and click on the build.
After clicking on the Build the below Image will open
To see your Firebase Test lab report click on the “Test reports” button to get the below image.
Click on the “Firebase TestLab Tab”
then click on “Test Case” to open the below image
You can see how easy it is to automate your UI test using Bitrise+Firebase TestLab, so when ever you push your new changes Bitrise will automatically run your UI test.
Thanks for reading my article 😍😍😍😍👍
Let’s connect on