Book Image

NativeScript for Angular Mobile Development

By : Anderson, Nathan Walker
Book Image

NativeScript for Angular Mobile Development

By: Anderson, Nathan Walker

Overview of this book

NativeScript is an open source framework that is built by Progress in order to build truly native mobile apps with TypeScript, JavaScript or just Angular which is an open source framework built by Google that offers declarative templates, dependency injection, and fully featured modules to build rich applications. Angular’s versatile view handling architecture allows your views to be rendered as highly performant UI components native to iOS and Android mobile platforms. This decoupling of the view rendering layer in Angular combined with the power of native APIs with NativeScript have together created the powerful and exciting technology stack of NativeScript for Angular. This book focuses on the key concepts that you will need to know to build a NativeScript for Angular mobile app for iOS and Android. We’ll build a fun multitrack recording studio app, touching on powerful key concepts from both technologies that you may need to know when you start building an app of your own. The structure of the book takes the reader from a void to a deployed app on both the App Store and Google Play, serving as a reference guide and valuable tips/tricks handbook. By the end of this book, you’ll know majority of key concepts needed to build a successful NativeScript for Angular app.
Table of Contents (17 chapters)
13
Integration Testing with Appium

Integration testing

There are several full application frameworks out there, but we will show you how to use Appium (http://appium.io). Appium is an awesome open source application testing framework. Appium supports both iOS and Android, which makes it a perfect fit for doing all our on-device testing. You want to start creating tests to test your basic flow through your application, and even create more complicated tests that test alternate flows through your app.

Let's get it installed first; run the following command:

npm install appium wd nativescript-dev-appium --save-dev

The preceding command installs Appium, the Appium communication driver WD (http://admc.io/wd/), and the NativeScript driver (https://github.com/NativeScript/nativescript-dev-appium). The WD driver is what communicates with Appium and the NativeScript driver. The nativescript-dev-appium is the driver...