Appium is an open source test automation framework which is used for testing hybrid apps, native apps, and mobile web apps for Android and iOS using webdriver.
How to Use Appium:
To use Appium, we need the following items:
Appium for Ubuntu
So, we start from Android sdk. First of all, download the Android sdk. After downloading the sdk, run the following command in your terminal.
This will download all the Android's API. Whatever you used after that we enter into the emulator open command. It will open the emulator.
Next, we start the emulator, which works on Android API 5.0.1.
After that, we will install the Appium on Ubuntu machine.
> brew install node # get node.js > npm install -g appium # get appium > npm install wd # get appium client > appium & # start appium > node your-appium-test.js
After installation, we start the Appium server.
We can see our connected device listed in Command Prompt type 'adb devices' on our terminal.
Appium does not support versions of Android lower than 4.2. So if you want to test the lower version of Android you can use Selendroid.
In the first section of this article, we described the Installation and configuration of Appium on an Ubuntu machine. Now we will explain how to run automation test cases on Android devices using Appium.
So, for test the app we have to put the app apk in an Android device which we want to test. After that, we start writing the code using selenium webdriver. We are using a TestNg framework with selenium webdriver.
So when we run the program, the Appium server automatically starts the mapping with the emulator and running the script on the emulator.
Here is the result of automation test case.
Feel free to ask me any question.