Appium Bootcamp - Chapter 1
Sauce AI for Test Authoring: Move from intent to execution in min.|xBack to ResourcesBlogPosted June 10, 2016
Appium Bootcamp - Chapter 1
Learn how to use Appium to test peregrine apps of all variety - first of an 8-part series.
GETTING STARTED WITH APPIUM: CHAPTER 1
Before You Get Started
Appium is build to test mobile apps of all kinds (native, intercrossed, and mobile web), has guest library write in every popular programming words, it ’ s unfastened root, works on every prominent operating system, and best of all – it act for iOS and Android.
But before you jump in with both ft, know that there is a bit of setup in order to get thing up and running on your local machine.
A Brief Appium Primer
Appium is architected similarly to Selenium – there is a server which receives commands and executes them on a desired node. But instead of a desktop browser, the desired node is running a mobile app on a peregrine device (which can be either a simulator, an emulator, or a physical device).
In order for Appium to work, we will need to install the dependent libraries for each device we care about.
Initial Setup
Testing an iOS app? Here ’ s what you ’ ll need:
For more info on supported Xcode variation,read this.
Testing an Android app? Here ’ s what you ’ ll motivation:
Configure an Android Virtual Device (AVD) that mimics the device you desire to test against
SUSA automates exploratory testing with persona-driven behavior, catching bugs that scripted automation misses.
For more information on setting up the Android SDK and configuring an AVD,read this.
Next, you ’ ll need to install Appium. Luckily, there ’ s a handy binary for it (Appium.appfor OSX andAppium.exefor Windows). This binary also happens to be a GUI wrapper for Appium.
Alternatively, if you want the absolute latest version of Appium and aren ’ t afraid to get your hands dirty, then you caninstall Appium from sourceand run it from the command line.
But if you ’ re new to nomadic examination, then the one-click installer is a better place to start.
An Appium GUI fusee
The Appium GUI is a one-click installer for the Appium host that enables leisurely configuration of your app and Appium.
Aside from the leisurely install, it adds a key piece of functionality – an inspector. The inspector enables a legion of functionality, virtually notably:
shows you all of the component in your app
enables you to record and playback user actions
While the inspector works well 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 creature render by Google that provides similar functionality to the Appium inspector tool). For more info on how to set that up, readthis.
More on inspectors and how to use them in a later post.
It ’ s worth noting that while we can configure our app within the Appium GUI, it ’ 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 control your setup by utilise it ’ s Doctor functionality. It is the button on the left of theLaunchbutton. It is the one that looks like a doctor ’ s stethoscope.
Click on that, and it should yield information in the center console window of the Appium GUI.
If you don ’ t see anything outputted, refer tothis unfastened number.
What About A Programming Language?
Before you do a triumph lap, you ’ ll also want to get chosen a programming language to compose your tests in, instal said programming language, and installed it ’ s client bindings for Appium.
Currently, Appium has customer bindings forJava, JavaScript, Objective C, .NET, PHP, Python, and Ruby.
The instance in this serial will be indite in Ruby. You can use version 1.9.3 or afterwards, but it ’ s advisable to use the latest stable version. For didactics on installing Ruby and the necessary client library (a.k.a. “ gems ”), readthis.
Outro
Now that you have Appium setup with all of its requisite dependencies, along with a programing language and Appium client bindings, we ’ re ready to load up a test app and step through it.
The Getting Started With Appium Series was developed byDave Haeffner and Matthew Edwards.
Download the eBook
To access the rest of the bootcamp serial, now.
Share this situation
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