How to automate Android native app using Leapwork on real Android Device?

How to automate Android native app using Leapwork on real Android Device?

Introduction
Leapwork's 2022.2.700 release provides the ability to automate native mobile apps (both on IOS and on Android). With the help of an Appium server set up on the machine, you can now run test case scenarios on actual physical devices.

We will now have a look at a use case scenario where we will try to send a test email through the Outlook application provided in almost every android phone.

Minimum Requirements

  1. We need an Appium Server up and running on our local machine where we want to set up mobile automation. Click here for the steps.
  2. We would also need to set up an Android Native Environment before we set up the Appium Server. Click here to know how to set up the environment.
  3. Lastly, before we can actually run our test cases, we would need to integrate our android devices with Leapwork. Click here for the detailed steps.

Apart from the above-mentioned 3 requirements, make sure you have your android phone connected to your local machine via data cable. Also, make sure to unlock your device prior to recording your test case.

Now that we are ready with all the must-haves, we can proceed with our use case. The steps we would be following here are the same as the ones you perform while you operate your phone physically.

Starting the Recorder

Opening the App Drawer

Starting the Outlook Application

Composing and Sending the Email

Saving the Steps

We have our flow created in less than 5 minutes, which can send email to anyone based on the address we provide in the Set Mobile Text block. You can also use a data-driven approach if you want to send an email to a large group by adding the "Read Excel" block with the method set to Iterate.

If you have any questions, please reach out to our Priority Support team.