This quick tutorial will help you to get started in mobile automation. This is intended for people who need a starting point.
Part 1 will be about setting up your workspace. Yes, it going to be tedious. But this is just a one-time effort. Once done, you will be able to proceed to the more exciting part: writing mobile automation scripts! That will be for Part 2.
There’s no skipping the following steps, so let’s get started.
Install Prerequisite Software:
*Note: this guide assumes you are using a Windows machine.
- Android Studio
- Java 8 (the JDK, not just the JRE)
- Python 3
- Python Libraries
Once the download is complete, launch the installer. Just hit next all the way through.
After the installation, you have to do the Android Studio Setup Wizard.
As of this writing, the latest version of Appium for desktop is 1.19.1. If a newer version is available, choose that one.
For easy installation, download the “exe” file.
Launch the installer and proceed until finished.
Link => https://nodejs.org/en/download/
Nothing special here, just go through the installation steps as you normally would.
Launch the installer and follow the steps. Take note of the location where you install Java 8. You will need it later.
When you launch the installer, don’t forget to check “Add Python 3.9 to PATH”
You can also choose “Customize installation” if you want to change the default location of python.
Launch a command prompt as an administrator and enter this command:
pip install robotframework-appiumlibrary
Create New Environment Variables (system wide):
- create JAVA_HOME = use the path where you installed Java 8
2. create ANDROID_HOME = set to the android SDK path (Go to Android Studio -> SDK Manager to find the correct location)
Update Path System Variable
Add the following:
Quick Configuration Check:
- Run the following via command line:
npm install -g appium-doctor
2. Review configuration checks and fix if there are errors. If you only see ‘info’ and ‘WARN’, that means your setup should work.
Create Android Emulator
You will need an android emulator too. Create a virtual device in Android Studio. Feel free to choose any device you prefer, but for the Android version, I suggest using the latest that is available.
Now your workspace setup is all good. Great progress!
For the next part, you’ll learn how to capture the elements of an Android app so that you can interact with it using Robot Framework.
Practice Test Automation
As a practitioner of Test Automation, I wanted to explore the possibility of creating a generic test automation…
Hire me on Upwork: https://www.upwork.com/o/profiles/users/~01eeac4f3861a8d129/