Skip to main content

Automated UI Testing for Android Automotive Applications

Android Automotive is a specialized version of the Android Operating System (OS) designed for automotive environments. These environments prioritize security and require additional permissions and considerations during both development and testing.

To accommodate these unique requirements, Google introduced new design principles to Android Automotive. Instead of traditional XML-based layouts used in native Android, applications use dynamic templates that adjust automatically to different screen sizes, orientations, and tiling configurations. This approach streamlines UI development and enhances adaptability.

With this dynamic layout generation, Squish offers multiple powerful methods to create and execute test scripts for Android Automotive:

OCR-Based Testing in Android Automotive

By leveraging text recognition, Squish can reliably interact with UI elements and as long as the font and OCR engine remain consistent, the right components are selected and tested.

OCR_final

Image-Based Testing in Android Automotive

Image based recording uses a screenshot of the device and the user is able to extract an object based on a mask applied to it. This object will then be clicked at by Squish, which allows the Squish to identify the same object based on image properties.

Image Search in Android Automotive Application

Script-Based Testing in Android Automotive

Squish fully supports scripting, enabling testers to create and enhance complex test cases manually. Object introspection is available, allowing users to identify elements dynamically and interact with them through the object map. This ensures precise validation of objects and properties.

Squish-AA-objectInteraction

Seamless Replay & Full Tooling Support


Despite the unique nature of Android Automotive, Squish maintains the same robust replay capabilities as it does for native Android, supporting the full Squish tooling suite.

For a detailed guide on OCR, image-based testing, and scripting, refer to the Squish manual. Additionally, check out our "How-to" video on Squish with Android Automotive for hands-on demonstrations.

Stay tuned for our upcoming advancements in Squish for Android Automotive, as we continue to enhance our testing capabilities to make automation even more seamless and efficient!

Comments