How to Debug Android App on Chrome
By Jash Unadkat, Community Contributor - May 24, 2022
With the tremendous growth in the usage of mobile apps in the past few years, more organizations are developing apps that have an edge over their competitors. With ever-increasing customer expectations and a competitive landscape, developers need to quickly roll out bug-free apps and features.
This also translates to the fact that QAs need to test new features of the app thoroughly and comprehensively in shorter timelines to ensure a bug-free experience.
Given the mobile landscape is enormous and fragmented (particularly Android), teams need to conduct performance testing of apps across the latest and legacy handsets and OS versions. Naturally, comprehensive testing of apps in shorter timelines is an extremely challenging task.
Read More: How To Run Android Apps in a Browser
This article addresses this challenge by describing an intuitive method for teams to test their Android app across real devices in real conditions directly from the Chrome browser.
Debugging an Android App on Chrome Using BrowserStack App Live
Developers and testers need a comprehensive test infrastructure (mobile device lab) to achieve maximum test coverage for their mobile apps. A comprehensive test infrastructure demands significant investments. Naturally, this is not feasible for every organization.
BrowserStack’s real device cloud makes it possible for teams of all sizes to test and debug their Android App directly through Chrome or any web browser. Its real device cloud offers the latest and legacy mobile handsets from popular vendors such as Samsung, OnePlus, Google, Motorola, etc.
One needs to follow the steps below to start testing and debugging Android apps in Chrome:
Step 1 – Signup for a free trial on BrowserStack App-Live on Chrome browser.
Step 2 – Navigate to the App-Live Dashboard.
Step 3 – Upload your test APK file or directly download the test app from PlayStore.
Step 4 – After uploading the app, select the desired Android device you wish to test your app on. (Let’s consider Samsung S22, for example).
Note: Developers or QAs can also use other browsers like Safari, Edge, Firefox, etc, to follow the steps above.
Once the session starts, the app is loaded on the desired real device, and QAs can immediately start debugging it by testing all the features.
Developers and QAs can also leverage the App-live toolbox to perform the following operations:
- Test the app’s behavior when it is running in the background.
- Test different versions of the same application in the same test session using the Install New App option.
- Perform screenshot testing for specific pages to validate the security concerns of the app using the Capture Screenshot.
- Test the app’s viewing experience in portrait and landscape mode using the Rotate Device feature.
- Perform geolocation testing of the app using the Change Location feature to test the app’s behavior when accessed from different geographies across the world.
- Test the app’s behavior in poor network conditions using the Throttle Network feature.
- Test the app’s content in different languages using the Change Language to ensure the app is ready for a global release.
Read More: How to simulate slow network conditions for app testing (Android and iOS)
From the primary toolbar, developers can also leverage the following features:
- Switch Device feature allows you to test the same app on different handsets of your choice.
- Perform local testing of your work in progress hybrid or native apps on real devices.
- Report all the encountered bugs through Jira, Trello, Slack, and Github.
- Perform comprehensive debugging of Android apps using the DevTools. The DevTools also offer an element inspector for the comprehensive debugging of apps. (Refer to the image below for better understanding.
Test an Android App Now
Android OS dominates the mobile landscape with a 71% market share. Naturally, any organization willing to make its digital presence felt needs to have a flawless and intuitive Android app. Ensuring a bug-free app experience demands significant test coverage. Platforms like BrowserStack make it highly convenient and feasible for organizations to meet their test requirements.
With BrowserStack’s remote device infrastructure and simplified bug reporting, teams can debug their apps on the desired devices at lightning speed and confidently ship features faster. Moreover, teams do not need to worry about purchasing or maintaining any on-premise devices or complex setups.