Appium Bootcamp - Chapter 1: Get Started With Appium
Sauce AI for Test Authoring: Move from spirit to execution in second.|xBack to ResourcesBlogPosted July 16, 2014
Appium Bootcamp - Chapter 1: Get Started With Appium
[UPDATE- November 2019]You can find the raw Get Started with Appium white document here:Get Started with Appium- Java and Get Started with Appium- Ruby
This is the initiative station in a serial called Appium Bootcamp by noted Selenium expertDave Haeffner.
Dave recently immersed himself in the open origin Appium labor and collaborated with leading Appium contributor Matthew Edwards to bring us this material. Appium Bootcamp is for those who are brand new to mobile test automation with Appium. No conversance with Selenium is postulate, although it may be useful. This is the first of eight posts; a new post will be released each workweek.
Before You Get Started
Appium is progress to test mobile apps of all kinds (aboriginal, hybrid, and mobile web), has guest libraries written in every popular programming language, it & # x27; s open root, works on every prominent function scheme, and better of all -- it works for iOS and Android. But before you jump in with both ft, know that there is a bit of setup in order to get things up and running on your local machine.
A abbreviated Appium fuzee
Appium is architected similarly to Selenium -- there is a waiter which receives commands and execute them on a desired node. But instead of a desktop browser, the desired node is running a peregrine app on a mobile device (which can be either a simulator, an emulator, or a physical device). So in order for Appium to work, we will need to instal the dependent libraries for each device we care about.
Initial Setup
Testing an iOS app? Here & # x27; s what you & # x27; ll need:
+ Install Java(version 7 of the JDK or high)
+ Install Xcode
+ Install Xcode Command-line Build Tools
For more information on supported Xcode versions,read this.
Testing an Android app? Here & # x27; s what you & # x27; ll need:
+ Install Java(version 7 of the JDK or higher)
+ Install the Android SDK(version 17 or high)
+ Install the necessary software for your Android platform version in the Android SDK Manager
+ Configure an Android Virtual Device (AVD) that mimics the device you want to test against
For more info on setting up the Android SDK and configuring an AVD,read this.
Next, you & # x27; ll necessitate to install Appium. Luckily, there & # x27; s a handy binary for itAppium.appfor OSX andAppium.exefor Windows. This binary also happens to be a GUI wrapper for Appium.
Alternatively, if you want the absolute latest variation of Appium and aren & # x27; t afraid to get your manus dirty, then you caninstall Appium from sourceand run it from the bidding line.
For autonomous testing across multiple user personas, check out SUSATest — it explores your app like 10 different real users.
But if you & # x27; re new to mobile testing, then the one-click installer is a better place to start.
An Appium GUI primer
The Appium GUI is a one-click installer for the Appium server that enables easy conformation of your app and Appium. Aside from the easy install, it adds a key part of functionality -- an examiner. The examiner enables a horde of functionality, most notably: + Shows you all of the elements in your app + Enables you to record and playback user actions
While the examiner works easily for iOS, there are some problem areas with it in Android on Appium at the moment. To that end, the Appium squad encourages the use ofuiautomatorviewer(which is an inspector tool provided by Google that provides similar functionality to the Appium inspector tool). For more info on how to set that up, saythis.

More on inspectors and how to use them in a later spot. It & # x27; s worth note that while we can configure our app within the Appium GUI, it & # x27; s not necessary since we will be capable to do it more flexibly in code. More on that in the next post.
Making Sure Appium Is Setup
After you get your Appium one-click installer up and running, you can verify your setup by using it & # x27; s Doctor functionality. It is the button on the left of the ` Launch ` push. It is the one that looks like a doctor & # x27; s stethoscope. Click on that, and it should output info in the center console window of the Appium GUI.

If you don & # x27; t see anything outputted, refer tothis open issue.
What About A Programming Language?
Before you do a victory lap, you & # x27; ll also require to have chosen a scheduling language to write your tests in, instal said programming language, and installed it & # x27; s client bindings for Appium. Currently, Appium has client bindings forJava, JavaScript, Objective C, .NET, PHP, Python, and Ruby. The illustration in this series will be publish in Ruby. You can use variation 1.9.3 or later, but it & # x27; s advisable to use the latest stable adaptation. For instructions on installing Ruby and the necessary customer libraries (a.k.a. & quot; gems & quot;), readthis.
Outro
Now that you have Appium setup with all of it & # x27; s requisite habituation, along with a programing speech and Appium node dressing, we & # x27; re ready to lade up a test app and step through it.
About Dave Haeffner: Dave is a late Appium convert and the source of Elemental Selenium (a gratis, once weekly Selenium tip newsletter that is read by thousands of try professionals) as well as The Selenium Guidebook (a step-by-step guide on how to use Selenium Successfully). He is also the creator and maintainer ofChemistryKit(an open-source Selenium framework). He has helped numerous companies successfully enforce automated acceptance testing; including The Motley Fool, ManTech International, Sittercity, and Animoto. He is a founder and co-organizer of theSelenium Hangoutand has spoken at numerous conferences and meetups about acceptance testing.
Continue the indication the other chapter:
Automate This With SUSA
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.
Try SUSA FreeTest Your App Autonomously
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.
Try SUSA Free