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

Manual testing


As you write an app, you want to verify that it works as expected. When you make changes to the app, you want confidence that you haven't inadvertently broken something.

While you can use a testing framework to verify the functionality, an easier approach, particularly for simple apps, is to exercise the UI yourself. To ensure that this is done in a consistent and reproducible way, write the test scripts for yourself or another person to follow. Let's write a few scripts now.

Creating a to-do item

The first test is to create a to-do item, add the text, maps, and an image, then verify that each of these data points have been saved. You will need two devices: one to create the to-do item and the other to verify that the data has synchronized correctly.

  1. Start the app on the first mobile device and click on Sign in.

  2. Enter your username and password and click on Sign in.

  3. Click on Add.

  4. Enter Test in the Name field and click on Create.

  5. Click on Edit for the to-do list that you just created...