Monkey (Robo🤖) Testing on Firebase Test Lab - Android🔥

Monkey (Robo🤖) Testing on Firebase Test Lab - Android🔥

Introduction

Robo Testing, also known as Monkey Testing, on Firebase is a cutting-edge approach to automating tests using random inputs and events. Unlike traditional testing methods, Robo Testing offers a more reliable and efficient way of detecting and fixing critical issues early on with minimal efforts. Firebase Test Lab provides a range of preconfigured virtual devices and emulators for testing and debugging your apps in both Android and iOS environments.

Getting started with Firebase Test Lab

To begin using Firebase Test Lab for Robo Testing, follow these steps:

  1. Create a Firebase Project: Head over to the Firebase Console , click on "Add Project," enter the project name, and continue.

  2. Access Test Lab: Find the Test Lab under the "Release and Monitor" section in the Firebase Console.

  3. Upload APK/AAB File: Upload the APK or AAB file of the app you want to test using Robo.

  4. Run a Test: Click on "Run a Test" and wait for the test to complete.

  5. Optional Configuration: If your app contains authentication or login screens, you can configure Robo Testing to perform random tests within those areas as well.

Firebase Test Lab

Analyzing the Test Results with Test Matrix

After the test is completed, you can find the test results in the Test Lab under Test Matrix. Click on the recent test to access the details.
Test Matrix

Screenshot Clusters

The Test Matrix includes Screenshot Clusters, which is a collection of all screenshots taken during the Robo Test. This allows you to identify any unexpected user experiences.

Screenshot Clusters

Test Results/Feedbacks

Click on the device name shown under Test Matrix to explore a wide variety of test results in detail, helping you identify issues in the app.

Test Issues

Test Issues

In addition to failures, Test Issues provides useful warnings and best practices that your app should follow based on industry standards. For example, it may show warnings regarding the usage of non-SDK interfaces and API usage violations.

Robo

The Robo tab provides an overview of the crawl performed during the Robo test, along with stats and suggestions for app improvements based on best practices. It also displays a detailed graph of the Robo crawl journey.

Logs

The Logs tab offers detailed logs from the entire test execution, and you can perform searches to find useful context from the log lines. You can also export the log file for further analysis.

Screenshots and Videos

The Screenshots tab displays individual screenshots captured during the Robo test, while the Videos tab records the entire test execution journey as a video. You can download the video if needed.

Performance

The Performance tab is a valuable feature to track and analyze the app and device's performance during the test. It provides metrics such as app start-up time, graphics performance stats, CPU usage, memory usage, network usage, and more.

Performance

Accessibility

Accessibility
The Accessibility tab displays all accessibility issues found during the test, along with associated recommendations. It can help identify touch target size, low contrast elements, content labeling issues, and implementation improvements.

Conclusion

In conclusion, Robo Testing on Firebase Test Lab brings a myriad of benefits to automated testing. Improved accuracy, extensive testing, and increased efficiency are just a few examples. Firebase Test Lab offers several other testing features that we may cover in future posts. For now, embrace the world of Firebase Test Lab for Robo testing on Android and enjoy the benefits it brings.