ENGLISH

Testing Node.js Web UIs

Book information

Publisher
Packt Publishing
Year
2013
ISBN
9781782160533, 1782160531, 978-1-78216-052-6
Language
english
Format
EPUB
Filesize
2 MB (1574709 bytes)
Pages
146\0
Time added
2019-09-25 00:15:54

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