• Complain

Pedro Teixeira - Using Node.js for UI Testing

Here you can read online Pedro Teixeira - Using Node.js for UI Testing full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Pedro Teixeira Using Node.js for UI Testing
  • Book:
    Using Node.js for UI Testing
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2013
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Using Node.js for UI Testing: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Using Node.js for UI Testing" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Learn how to easily automate testing of your web apps using Node.js, Zombie.js, and Mocha

Overview

  • Use automated tests to keep your web app rock solid and bug-free while you code
  • Use a headless browser to quickly test your web application every time you make a small change to it.
  • Use Mocha to describe and test the capabilities of your web app.

In Detail

Automating tests for your user interfaces has always been the holy grail of programming. Now, using Zombie.js and Mocha you can create and quickly run your tests, allowing you to test even small changes. Increase your confidence in the code and minimize the number of times you have to use a real browser while you develop.

Using Node.js for UI Testing is a quick and thorough guide on how to automatically test your web app, keeping it rock solid and bug-free. You will learn how to simulate complex user behaviour and verify that your application behaves correctly.

You will create a web app in Node.js that uses complex user interactions and AJAX; by the end you will be able to fully test it from the command-line. Then you will start creating the user interface tests for this application using Mocha as a framework and Zombie.js as a headless browser.

You will also create a complete test suite, module by module, testing simple and complex user interactions.

What you will learn from this book

  • Creating your test suite using Mocha.
  • Building a web application using Node.js and Flatiron.js.
  • Loading documents into the Zombie.js headless browser.
  • Triggering user events in Zombie.js.
  • Querying the DOM to test your application behaviour.
  • Injecting complex events into your application.
  • Triggering and testing complex user interactions and AJAX calls.
  • Inspecting the Zombie headless browser state.

Approach

Full of techniques and tips for simulating user interactions and verifying that your application is behaving correctly.

Who this book is written for

This book is for frontend and backend web application developers that know how to program in JavaScript.

Pedro Teixeira: author's other books


Who wrote Using Node.js for UI Testing? Find out the surname, the name of the author of the book and a list of all author's works by series.

Using Node.js for UI Testing — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Using Node.js for UI Testing" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Using Node.js for UI Testing

Using Node.js for UI Testing

Copyright 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: March 2013

Production Reference: 1150313

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK..

ISBN 978-1-78216-052-6

www.packtpub.com

Cover Image by Suresh Mogre (<>)

Credits

Author

Pedro Teixeira

Reviewers

Ollie Bennett

David Mark Clements

Acquisition Editor

Joanne Fitzpatrick

Commissioning Editor

Priyanka Shah

Technical Editor

Chirag Jani

Copy Editors

Brandt DMello

Insiya Morbiwala

Alfida Paiva

Laxmi Subramanian

Ruta Waghmare

Project Coordinator

Esha Thakker

Proofreader

Dan McMahon

Indexer

Tejal R. Soni

Production Coordinator

Conidon Miranda

Cover Work

Conidon Miranda

About the Author

Pedro Teixeira is a prolific open source programmer and author of many Node.js modules. Since graduating in Software Engineering over 14 years ago, he has been a consultant, a programmer, and an active and internationally known Node.js community member.

He is a founding partner of The Node Firm and a Senior Programmer at Nodejitsu Inc., the leading Node.js platform as a service (PaaS) provider. He is also the author of the popular Node Tuts screencasts and two books about Node.js, namely, Hands-on Node.js (self-published) and Professional Node.js (Wrox Publication) .

When he was ten years old, his father taught him how to program a ZX Spectrum, and since then he has never wanted to stop. He taught himself how to program his fathers Apple IIc and then entered the PC era. During college he was introduced to the world of UNIX and open source, and became seriously addicted to it. In his professional life, he has developed systems and products built with Visual Basic, C, C++, Java, PHP, Ruby, and JavaScript for big telecom companies, banks, hotel chains, and others.

He has been a Node.js enthusiast since the very beginning, having authored many applications and also many well-known modules such as Fugue, Alfred.js, Carrier, Nock, and others.

I would like to thank my amazing wife Susana for her support and resilience, you have always been a corner stone and been there for me.

Id also like to thank the amazing JavaScript and Node.js community for being so enthusiastic and innovative, always taking everyone along on crazy rides, being at the fulcrum of expanding the reach and capabilities of programmers.

About the Reviewers

Ollie Bennett is a technical consultant based in London, with a passion for playing with the latest technologies. After completing a Masters degree in Theoretical Physics, he focused his attention on Web development, and maintains a portfolio of websites. Node.js and other recent JavaScript advancements are forming an ever increasing part of his interests.

His personal website address is http://olliebennett.co.uk/.

David Mark Clements is a Web entrepreneur residing in Northern Ireland. From a very early age he was fascinated with programming and computers. He first learned BASIC on one of the many Ataris he had accumulated by the age of nine. He learned JavaScript at the age of 12, moving into Linux administration and PHP as a teenager.

Now (as a twenty something), he enjoys working with CSS and HTML, but most of all he enjoys JavaScriptboth in the browser and using Node. He wrote Node Cookbook (Packt Publishing) , a selection of recipes to help coders master the art of asynchronous server-side JavaScript using Node.

Professionally, David is a freelancer who builds responsive websites and web apps for both enterprise and non-governmental organizations, and offers JavaScript/Node training.

You can follow David on Twitter at @davidmarkclem.

www.PacktPub.com
Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

httpPacktLibPacktPubcom Do you need instant solutions to your IT - photo 1

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packts online digital book library. Here, you can access, read and search across Packts entire library of books.

Why Subscribe?
  • Fully searchable across every book published by Packt
  • Copy and paste, print and bookmark content
  • On demand and accessible via web browser
Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Preface

Automating tests for user interfaces has always been the holy grail of programming. Now, using Zombie.js and Mocha you can quickly create and run your tests, making it simple to test even the smallest changes. Increase your confidence in the code and minimize the number of times you have to use a real browser while you develop.

Using Node.js for UI Testing is a quick yet thorough guide on how to automatically test your web app, keeping it rock-solid and bug-free. You will learn how to simulate complex user behavior and verify that your application behaves correctly.

You will create a web app in Node.js that uses complex user interactions and AJAX; by the end of this book you will be able to fully test it from the command line. Then you will start creating the user interface tests for this application using Mocha as a framework and Zombie.js as a headless browser.

You will also create a complete test suite, module by module, testing simple and complex user interactions.

What this book covers

, Getting started with Zombie.js , helps you to understand how Zombie.js works and what types of applications can be tested with it.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Using Node.js for UI Testing»

Look at similar books to Using Node.js for UI Testing. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Using Node.js for UI Testing»

Discussion, reviews of the book Using Node.js for UI Testing and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.