UI automation test in Jetpack Compose Using UI Automator

<p>Sometimes, it is necessary to have high level, end to end, UI automation tests on an android application to ensure that features work as expected in &ldquo;real world&rdquo; production environments.</p> <p><a href="https://developer.android.com/training/testing/other-components/ui-automator" rel="noopener ugc nofollow" target="_blank">UI Automator</a>&nbsp;is a library that can be used to implement this kind of test.</p> <p>In this post, I will discuss how to write UI automation tests for an Android app using UI Automator.</p> <p>First, we will create a very simple Android app:</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*J2GMOYmGc8CCMOztRcDZjA.png" style="height:293px; width:700px" /></p> <p>The app has a TextField and a Button.</p> <p>When the user types in a name into the TextField and clicks on the save button, the app will display a welcome message:</p> <p><a href="https://medium.com/@jeffemuveyan/ui-automation-test-in-jetpack-compose-using-uiautomator-5e29f7d33882"><strong>Visit Now</strong></a></p>
Tags: UI Automator