Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Appium Essentials
Appium Essentials

Appium Essentials: Explore mobile automation with Appium and discover new ways to test native, web, and hybrid applications

eBook
Mex$378.99 Mex$541.99
Paperback
Mex$676.99
Subscription
Free Trial

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Appium Essentials

Chapter 2. Getting Started with Appium

Today, a lot is going on in the field of mobile development, and we need to test these developments to meet the expectations of the end users. It is this progress that has contributed to the growth of mobile automation. Dan Cuellar came up with a brilliant idea that involved integrating the tool with Selenium, post which he created Appium. Appium is a good tool and is widely used to automate mobile apps. The best part is that it is open source.

In this chapter, we will learn the following:

  • The advantages of Appium
  • System requirements for Android/iOS
  • Installing different software
  • Creating emulators and simulators
  • Setting up an Eclipse Java project

Appium – pros and cons

Appium is an open source tool for automating mobile apps, such as native, web-based, and hybrid applications designed for the Android, iOS, and Firefox OS platforms.

Before diving into Appium's advantages, let's discuss its shortcomings, as follows:

  • No direct support for Android Alert Handling: Alert handling is not implemented yet for native apps via Alert API but, we have an alternative to handle it which we will see in Chapter 7, Advanced User Interactions. Hopefully, alert handling will be implemented soon.
  • Limited support for Android versions: Appium directly supports Android Version 17 or later, but if we want to work with versions older than version 17, then we can use the integrated tool Selendroid.
  • Lack of image recognition: We can't locate images; to work with images, we have to work with screen coordinates, which is not the best way but again it's in their road map to apply the locator strategy to find images.
  • Mobile gestures support...

System requirements for Android/iOS

We have read about Appium; now, it's time to know about the system requirements for Android/iOS.

Android requirements on Windows and Mac

The following are the system requirements for Appium on Android:

  • Java (version 7 or later)
  • Android SDK API (version 17 or later)
  • Android Virtual Device (AVD) or real device

iOS requirements

These are the system requirements for iOS devices to start with Appium:

  • Mac OS X 10.7 or later
  • Xcode (greater than or equal to 4.6.3; 5.1 is recommended) with the command-line build tool
  • Java version 7 or later
  • Homebrew
  • Node and npm

In the following section, we will look at how to install different software.

Installing different software

To get started with Appium, we need to install some software on our machines. Let's start the installation process on different machines.

Appium installation for Android

The prerequisites for the installation of Appium on Android are as follows:

  • JDK (Java development kit)
  • Android SDK (Software development kit)
  • Appium for different OSes

Installing JDK on Windows

In order to install the JDK, you can visit http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.

After installing the JDK, you need to set the environment variables. To do this, perform the following steps:

  1. Open System Properties by pressing the Windows logo + Pause key or right-click on My Computer and then click on Properties.
  2. Click on Advanced system settings.
  3. Click on Environment Variables.
  4. Under User variables, click on New. Then, you will get the following screenshot:
    Installing JDK on Windows
  5. Enter the Variable name as JAVA_HOME.
  6. Enter the Variable value as the installation path for the JDK, for example...

Creating emulators and simulators

We'll now look at how we can create emulators and simulators, starting with an iOS simulator and then move on to an Android simulator.

An iOS simulator

We don't need to create a simulator for Mac; it already comes with Xcode under developer tools. When you start the Appium server for the first time, it will prompt you to authorize the use of Instruments, or if you are running it from npm, run sudo authorize_ios to work with the simulator.

An Android emulator

There are two ways to create an AVD for testing android apps:

  • Create the AVD from the command line
  • Create the AVD using the AVD Manager

Let's create AVD using the command line, as follows:

  1. Open the Command Prompt and type android list targets; this will generate a list of available targets.
  2. Run android create avd –n <name of the AVD> -t <targetID which you can get from the first step> --abi <again you can get it from first step>.

Note

You can also customize the AVD with...

Setting up an Eclipse Java project

We need an integrated development environment (IDE) to write test scripts; in the market, there are a lot of open source IDE's such as Eclipse, NetBeans, IntelliJ IDEA, and others. Here we are going to use an Eclipse IDE. If you have downloaded the Android ADT bundle, then you will get Eclipse along with it. Otherwise, you can download it from http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/lunasr1a.

Once you have downloaded the IDE, launch it by double-clicking on the eclipse.exe icon.

After this, you need to perform the following steps to set up the Java project:

  1. After clicking on the icon, it will ask you for a Workspace location. Enter the location and click on the OK button, as shown here:
    Setting up an Eclipse Java project
  2. Click on the Workbench icon on the welcome screen, which is at the top-right corner of the screen.
  3. Create a new project by clicking on the shortcut icon; you can also do this by navigating to File | New | Project. A dialog box will appear...

Appium – pros and cons


Appium is an open source tool for automating mobile apps, such as native, web-based, and hybrid applications designed for the Android, iOS, and Firefox OS platforms.

Before diving into Appium's advantages, let's discuss its shortcomings, as follows:

  • No direct support for Android Alert Handling: Alert handling is not implemented yet for native apps via Alert API but, we have an alternative to handle it which we will see in Chapter 7, Advanced User Interactions. Hopefully, alert handling will be implemented soon.

  • Limited support for Android versions: Appium directly supports Android Version 17 or later, but if we want to work with versions older than version 17, then we can use the integrated tool Selendroid.

  • Lack of image recognition: We can't locate images; to work with images, we have to work with screen coordinates, which is not the best way but again it's in their road map to apply the locator strategy to find images.

  • Mobile gestures support: Some of the gesture...

Left arrow icon Right arrow icon

Description

This book is intended for automation testers and developers who want to enhance their skills from web-based automation to mobile application automation using Appium. Basic knowledge of mobile application testing, Selenium WebDriver, and programming is assumed.

Who is this book for?

This book is intended for automation testers and developers who want to enhance their skills from web-based automation to mobile application automation using Appium. Basic knowledge of mobile application testing, Selenium WebDriver, and programming is assumed.

What you will learn

  • Understand the desired capabilities that need to be acquired before starting Appium
  • Get to know and use the settings that are required to automate mobile applications
  • Interact with mobile applications by identifying elements using different locator strategies and techniques
  • Install mobile apps onto an emulator/simulator or a real device using Appium scripts
  • Test scripts written to automate applications
  • Configure mobile devices and perform automation testing on them
  • Explore the advanced features of Appium such as scroll, zoom, and swipe
Estimated delivery fee Deliver to Mexico

Standard delivery 10 - 13 business days

Mex$149.95

Premium delivery 3 - 6 business days

Mex$299.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Apr 09, 2015
Length: 188 pages
Edition : 1st
Language : English
ISBN-13 : 9781784392482
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Mexico

Standard delivery 10 - 13 business days

Mex$149.95

Premium delivery 3 - 6 business days

Mex$299.95
(Includes tracking information)

Product Details

Publication date : Apr 09, 2015
Length: 188 pages
Edition : 1st
Language : English
ISBN-13 : 9781784392482
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Mex$ 2,584.97
Appium Essentials
Mex$676.99
Mastering Mobile Test Automation
Mex$1004.99
Mobile Test Automation with Appium
Mex$902.99
Total Mex$ 2,584.97 Stars icon

Table of Contents

8 Chapters
1. Appium – Important Conceptual Background Chevron down icon Chevron up icon
2. Getting Started with Appium Chevron down icon Chevron up icon
3. The Appium GUI Chevron down icon Chevron up icon
4. Finding Elements with Different Locators Chevron down icon Chevron up icon
5. Working with Appium Chevron down icon Chevron up icon
6. Driving Appium on Real Devices Chevron down icon Chevron up icon
7. Advanced User Interactions Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.5
(19 Ratings)
5 star 47.4%
4 star 10.5%
3 star 5.3%
2 star 15.8%
1 star 21.1%
Filter icon Filter
Top Reviews

Filter reviews by




Jitendra Kumar Jul 20, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is very good help for beginners in mobile automation testing .Author has started from the basics & the book has been written in a good way to cover all that which requires to run Appium.
Amazon Verified review Amazon
Ajay Mar 22, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Good Book for beginners
Amazon Verified review Amazon
Ram Jul 18, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very effective for beginners,covers most advanced topics in Appium.its a quick reference for anyone who's working on Appium automation.Author has described everything from basic to advance , I admire the author’s approach towards explaining the concepts .I would very much recommend this book for all the Appium users!
Amazon Verified review Amazon
megha sapra Jul 20, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Easy understandable.Described each and every concept thoroughly.Good book for mobile tester. Appium Essentials
Amazon Verified review Amazon
liyiwan Mar 02, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
even i haven't saw it,but it maybe good for us!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela