Book Image

Offline First Web Development

By : Daniel Sauble
Book Image

Offline First Web Development

By: Daniel Sauble

Overview of this book

When building mobile apps, it’s easy to forget about the moments when your users lack a good Internet connection. Put your phone in airplane mode, open a few popular apps, and you’ll quickly see how they handle being offline. From Twitter to Pinterest to Apple Maps, some apps might handle being offline better—but very few do it well. A poor offline experience will result in frustrated users who will abandon your app, or worse, turn to your competitor’s apps Expert or novice, this book will teach you everything you need to know about designing and building a rigorous offline app experience. By putting the offline experience first, you’ll have a solid foundation to build upon, avoiding the unnecessary stress and frustration of trying to retrofit offline capabilities into your finished app. This basic principle, designing for the worst-case scenario, could save you countless hours of wasted effort.
Table of Contents (17 chapters)
Offline First Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Testing frameworks


At some point, you may decide that you're tired of running through test scripts whenever you make a code change. Fortunately, there are testing frameworks that can automate this tedious task, though writing and maintaining tests for these frameworks is its own kind of tediousness. You can use the scripts that you've already written and adapt them for whatever framework you choose. One popular option is Bryntum Siesta.

Bryntum Siesta

Siesta is a functional testing framework that runs in the browser. To use it, you write a series of test scripts that exercise the functionality of your app, load the framework in the browser of your choice, and run the scripts, watching them onscreen as they execute. Siesta closely emulates the experience of an actual person. It can click and input text in elements as needed.

Installing Siesta

To get Siesta up and running, we need to download Siesta Lite from Bryntum, create a harness file, and move the appropriate resources over to our app. This...