Testing Node.js Web UIs
Book information
Description
Full of techniques and tips for simulating user interactions and verifying that your application is behaving correctly. This book is for frontend and backend web application developers that know how to program in JavaScript. Abstract: Full of techniques and tips for simulating user interactions and verifying that your application is behaving correctly. This book is for frontend and backend web application developers that know how to program in JavaScript Content: Cover Copyright Credits About the Author About the Reviewers www.PacktPub.com Table of Contents Preface Chapter 1: Getting Started with Zombie.js A brief history of software and user interface testing Enter the automation era Unit tests versus integration tests What Zombie.js is Understanding the server-side DOM Zombie.js is your headless browser Summary Chapter 2: Creating a Simple Web App Defining the requirements of our web app Setting up Node.js and Flatiron Installing Node.js Installing Node from the source code Installing Flatiron and starting your application. Creating your to-do appSetting up the database Accessing CouchDB from Node Application layout Developing the frontend User registration Logging in and session management The to-do list File summary Summary Chapter 3: Installing Zombie.js and Mocha Changing the application manifest Setting up a test environment Summary Chapter 4: Understanding Mocha Organizing your tests Using before and after hooks Using asynchronous hooks How hooks interact with test groups Using assertions Changing the assertion message Performing asynchronous tests Summary. Chapter 5: Manipulating the Zombie BrowserWhen is the browser ready? Options when visiting URLs debug headers maxWait Checking the existence of elements Filling a form Testing the login form Testing the to-do list Testing the to-do list page Testing the to-do item creation Testing to-do item removal Putting it all together Summary Chapter 6: Testing Interactions Acting on radio buttons Testing the user interaction Selecting values Summary Chapter 7: Debugging Running a specific test Enabling the debugging output per test Using the browser JavaScript console. Dumping the browser stateDumping the whole document Summary Chapter 8: Testing AJAX Inflicting drag-and-drop Summary Index.
Similar books
Professional node.js: building JavaScript-based scalable software
2013 · PDF
Professional node.js: building JavaScript-based scalable software
EPUB
Professional Node.js: building JavaScript-based scalable software
2013 · EPUB
Node Patterns - Databases
2015 · EPUB
CRM real. Cómo revolucionar la gestión de la relación con el cliente
EPUB
Shelf Life para a Indústria Química 1ED
2013 · EPUB
21st Century Realism: John Deely's Recovery of Poinsot's Doctrine of Signs
2018 · PDF
21st Century Realism: John Deely's Recovery of Poinsot's Doctrine of Signs
2018 · PDF