Book Image

Mobile Test Automation with Appium

By : Nishant Verma
Book Image

Mobile Test Automation with Appium

By: Nishant Verma

Overview of this book

Appium is an open source test automation framework for mobile applications. It allows you to test all three types of mobile applications: native, hybrid, and mobile web. It allows you to run the automated tests on actual devices, emulators, and simulators. Today, when every mobile app is made on at least two platforms, iOS and Android, you need a tool that allows you to test across platforms. Having two different frameworks for the same app increases the cost of the product and time to maintain it as well. Appium helps save this cost. With mobile app growth exploding, mobile app automation is mainstream now. In this book, author Nishant Verma provides you with a firm grounding in the concepts of Appium while diving into how to set up appium & Cucumber-jvm test automation framework, implement page object design pattern, automate gestures, test execution on emulators and physical devices, and implement continuous integration with Jenkins. The mobile app we have referenced in this book is Quikr because of its relatively lower learning curve to understand the application. It's a local classifieds shopping app.
Table of Contents (20 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
5
Understanding Appium Inspector to Find Locators
7
How to Automate Gestures
9
How to Run Appium Test on Devices and Emulators

Introduction to Cucumber


In Behavior Driven Development (BDD), the prime focus is on writing acceptance tests that describe the behavior of the application or system. Acceptance tests are written from a customer point of view and hence bring in the outside-in approach to the understanding and testing of the application. The emphasis is on making the test cases readable by everyone on the team so that any stakeholder can give feedback on the application's behavior.

Eric Evans, in his book Domain Driven Design (http://www.amazon.in/Domain-Driven-Design-Tackling-Complexity-Software/dp/0321125215), talks about the need for one language to bridge the gap between the domain experts and programmers on the team. Cucumber helps enforce the ubiquitous language within the team, which can be understood by anyone on the team. Cucumber tests are written in a language that can be understood by anyone in the team, and it's implementation tests the application. This way, Cucumber helps a team express the...