Appium is a free open-source mobile automation tool from Saucelabs.
It is based on Selenium and borrows heavily from Selenium Webdriver.
The advantages of using Appium:
- Appium is based on Selenium WebDriver so you can easily learn it. The same process of finding elements using xpath, ids etc, also work here
- Using Appium, you test the production apk file. In short you don't mess with the application under test.
- You can use your favourite programming language
What you need to get started with mobile automation for android?
- Android SDK with eclipse
- An emulator or a real device running Android OS (In my case it is Nexus 5 running 5.0.1 Lollipop / Huawei Media pad running 4.3 Jelly bean)
- USB debugging options set
More information about the above requirements are explained in detail here: http://blog.sundeepmachado.com/2010/12/getting-started-with-android-mobile-os.html
How to install Appium on Windows?
- Install the latest Appium for Windows
The latest downloads are present here: https://bitbucket.org/appium/appium.app/downloads/
Take the latest Appium for Windows download |
- Configure the system path in Windows
The path variable should contain correct Android SDK tools path
Path Variable settings |
The path variable should also contain, Java SDK details and System root details For example as shown below
C:\Program Files\Java\jdk1.7.0_21\bin;E:\adt-bundle-windows-x86_64-20140702\sdk;E:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;E:\adt-bundle-windows-x86_64-20140702\sdk\tools;%SystemRoot%\system32;%SystemRoot%
- Start the Appium server
Start Appium Server |
An application will open, just click on the play button at the top right hand side corner.
The server will start at : http://127.0.0.1:4723/wd/hub
Sample project
Installing WhatsApp on Android device and clicking Eula accept button using Appium
The entire Appium sample project can be downloaded for free via github:
https://github.com/sjmach/Java/tree/master/AppiumAndroid
0 comments :
Post a Comment