Enroll in Selenium Training

Create an Appium test for Android App

Creating Test Overview

Installing app and Creating Test Demo

Download the free Appium Studio Community Edition

1. Connect an Android device

See instructions on how to connect Android devices here: Connecting Android Devices

2. Approve the Android Add Dialog

Create an Appium test for Android App

3. Open the device

Double click on the added device or click on the 'Open' icon. A device reflection should be opened.

Appium test for Android App 1

Once a device is 'open' a device reflection is available. You can use this reflection screen to control the device.

4. Import Android Application for testing

To select your application click on 'Import' icon. Select your APK/IPA/APP file. Your application will be added to the application repository.

You can also use the EriBank demo application, available in the application repository.

Select the application you would like to work with.

Select capabilities

Once a device and an application are selected you can select another capability, that will set your test/application lifecycle.

The selected capabilities will affect 1. Recording, 2. Code generation, 3. Execution within the studio.

5. Record your Appium test

Click on the 'Record' button.

Wait for the device to be prepared for recording.

Start to perform the operations on the device reflection screen.

Use your mouse to simulate touch and swipe actions, and your keyboard to send keys.

It is recommended to end your recording on the same page you have started the recording. It will enable easily cycled execution when you debug your script.

After you stop the recording the script is generated in the studio test tab.

Appium test for Android App 1

You can add new commands and modify the existing commands and commands parameters.

You can verify your recording is valid by executing the recorded script. Just click on the 'Play' button.

Preparing Applications For Appium Testing
Preparing Applications For Appium Testing
Previous Article
Create an Appium test iOS App
Create an Appium test iOS App
Next Article
Lakshay Sharma
I’M LAKSHAY SHARMA AND I’M FULL STACK TEST AUTOMATION ENGINEER. Have passed 12 years playing with automation in mammoth projects like O2 (UK), Sprint (US), TD Bank (CA), Canadian Tire (CA), NHS (UK) & ASOS(UK). Currently I am working with KNAB bank as SDET. I am passionate about designing Automation Frameworks that follow OOPS concepts and Design patterns. https://www.linkedin.com/in/lakshay-sharma-a4216312/
Reviewers
Virender Singh's Photo
Virender Singh

Similar Articles