Book Image

Mastering PhoneGap Mobile Application Development

By : Kerri Shotts
Book Image

Mastering PhoneGap Mobile Application Development

By: Kerri Shotts

Overview of this book

PhoneGap is a useful and flexible tool that enables you to create complex hybrid applications for mobile platforms. In addition to the core technology, there is a large and vibrant community that creates third-party plugins that can take your app to the next level. This book will guide you through the process of creating a complex data-driven hybrid mobile application using PhoneGap, web technologies, and third-party plugins. A good foundation is critical, so you will learn how to create a useful workflow to make development easier. From there, the next version of JavaScript (ES6) and the CSS pre-processor SASS are introduced as a way to simplify creating the look of the mobile application. Responsive design techniques are also covered, including the flexbox layout module. As many apps are data-driven, you'll build an application throughout the course of the book that relies upon IndexedDB and SQLite. You'll also download additional content and address how to handle in-app purchases. Furthermore, you’ll build your own customized plugins for your particular use case. When the app is complete, the book will guide you through the steps necessary to submit your app to the Google Play and Apple iTunes stores.
Table of Contents (19 chapters)
Mastering PhoneGap Mobile Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Writing UI automation tests


To verify the correctness of our application on physical devices, we need to delve into user interface automation. These tests focus more on the interaction with your app and the verification of correct results rather than verifying the internal logic of the application. A test looks more like a collection of interactions with the app's widgets instead of it directly dealing with models, views, controllers, and the like. Checking for the proper result looks more like ensuring whether certain widgets are displayed on the screen rather than if an object has a specific property.

Although the goals of automation testing are the same as code testing, you do have to approach the tests from a different perspective. While testing your code directly, you have access to the objects that your code creates and you can interact with them easily. While testing your app via automation, you have to approach your app from the perspective of the user: what buttons should be pressed...