Appium is an automation tool for testing mobile web, native, and cross-platform or hybrid applications based on Selenium.
Since Appium is an open-source automation testing tool, it can be used free of charge.
Appium supports both native and hybrid apps.
Appium supports both iOS and Android.
Appium runs on real iOS and Android devices, emulators, or simulators.
Appium supports both Safari and Chrome web browsers.
Appium allows the use of the Robot Framework.
Appium uses JSON wire protocol.
Appium allows test scripts written in Java, Python, Ruby, C#, JavaScript, and PHP or any language that supports Selenium.
Appium allows multiple devices testing with different OS simultaneously.
Appium desktop GUI is easy to use.
The fact that Appium is free and open-source is a big plus for me. Many paid software automation tools have a free community version but the key features are hidden behind a pay-wall making it nearly impossible to master the software without paying a fee. Multi-language support is another plus. In cases where the test scripts are longer and more complicated, I discovered that using a programming language such as Java over Python will help speed up the script execution times.
Setting up Appium to test on real devices is challenging.
Testing on real iOS devices requires an active paid Apple developer account.
Appium test execution is slow.
Locating some apps objects is difficult.
Android versions below 4.2 are not supported.
Appium cannot switch between testing mobile app features and web app features in the same test script.
I had issues setting up Appium to test on a real iOS device. Since Apple removed the restriction that prevented non-paid developer accounts from running apps on real devices, I let my paid developer membership lapse. My initial excitement of executing a test script on a real iOS device turned into frustration. After a phone call to support, I learned that the free developer account only allows for the installation of apps created and built using Xcode. The iOS simulator does not allow the installation of third-party apps such as Amazon Mobile, Facebook, or Twitter. A paid Apple developer account is a must for executing test scripts for third-party apps on a real iOS device!
Basic knowledge of a programming language supported by Appium is required. Knowledge of Selenium is helpful but not required.
Good manual testing skills.
Some experience using automation tools.
Good critical thinking skills.
Good troubleshooting skills.
Ability to write test scripts.
A computer with Windows 10 or macOS X 10.7 or later.
Java Development Kit (JDK) or Java SE version 8 or later.
A simulator or real iOS device.
Node and npm version 10+ or later.
An emulator or real Android device.
Appium or Appium Desktop.
Integrated development environment (IDE).
A computer with macOS X 10.7 or later.
The latest version of Xcode.
Java Development Kit (JDK) or Java SE version 8 or later.
Homebrew.
Node and npm version 10+ or later.
A simulator or real iOS device.
An active paid Apple developer account is needed to run Appium on a real iOS device.
Appium or Appium Desktop.
Integrated development environment (IDE).
Read the Appium documentation - http://appium.io/docs/en/about-appium/intro/.
Run Appium Doctor.
Write efficient test scripts. Writing redundant code slows down the execution of the test script.
Use Appium Inspector or UiAutomatorViewer to get the element locator. The UiAutomatorViewer only supports Android.
Whenever possible, avoid using Xpath. Using Xpath slows down the execution of the test script. Xpath depends on the hierarchical structure of the app. If the hierarchical structure of the app changes, the test will fail.
Make use of the accessibility ID locators.
I initially installed the Appium Desktop. The GUI interface makes it easy to write scripts and locate elements. In my excitement, I wrote a test script using the GUI only to have it fail due to a missing component. Appium doctor identified the missing component right away.
Appium is a useful tool for automated mobile app testing. Appium’s multi-language support gives Appium a low learning curve. With practice, it is easy to become an expert in Appium in no time. Happy Testing!
Banner Image - Pixabay Image by Photo Mix from Pixabay