Test Android native app with Appium – quick tutorial example

In this post we will show how to create automatic test for native application in Android.
We will show it in simple test case (only swipe to second fragment in FragmentActivity)

Tests run thanks to Appium (link)

1. Download Appium and install it
2. Open folder that contains installed appium and appium.exe file
3. Start appium.exe
In our simple test class we will use following libraries:
java-client-2.2.0.jar
selendroid-standalone-0.16.0-with-dependencies.jar

4. Click on triangle in top-right of window.
Now, you can see some logs in appium console window.
5. Make sure, that your emulator (I tried it on emulator only) is running.

Ok now we can create separate class with our test case. For simplicty we use only class with main method and we will not consider any test frameworks like testNG or jUnit.