Instant Testing with CasperJS [Instant]

This title is available as an eBook only
Instant Testing with CasperJS [Instant]
eBook: $14.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Table of Contents
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Learn how to practice efficient and solid web page testing using CasperJS
  • A hands-on guide with step-by-step instructions for running CasperJS tests on Travis-CI and Jenkins
  • Covers a large set of standard and advanced use cases

Book Details

Language : English
eBook : 68 pages
Release Date : January 2014
ISBN : 1783289430
ISBN 13 : 9781783289431
Author(s) : Éric Bréhault
Topics and Technologies : All Books, Instant, Web Development, Open Source

Table of Contents

Instant Testing with CasperJS
  • Instant Testing with CasperJS
    • Installing CasperJS (Simple)
    • Getting started with CasperJS (Simple)
    • Writing advanced tests (Intermediate)
    • Good practices (Intermediate)
    • Beyond testing (Advanced)

Éric Bréhault

Éric Bréhault wrote his very first web pages in 1993, started JavaScript application development in 1998, and is still enjoying it.

As an IT engineer, he has used a lot of different server-side technologies, but since 2006, he has been focusing on Plone—a Python open source CMS—and been an active participant of its community. His main contribution has probably been Plomino, a Plone-based application builder. He has also worked on different, modern web mapping solutions such as Leaflet.

JavaScript has always been an important part of his work, and he started using CasperJS in 2012 as his favorite testing utility. He developed Resurrectio, a CasperJS test recorder Chrome extension.

He works as a technical manager at Makina Corpus—a French open source consulting and development company providing services for web and mobile applications—specifically on environmental issues and in the fields of spatial analysis and data visualization.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant Testing with CasperJS [Instant] +    WordPress Multisite Administration =
50% Off
the second eBook
Price for both: €21.45

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Install CasperJS properly on different platforms
  • Discover the basic syntax of CasperJS scripts
  • Master timing in JavaScript testing
  • Record a live web sequence as a CasperJS script
  • Run CasperJS on continuous integration tools like Travis-CI or Jenkins

In Detail

Professional web development implies systematic testing. While JavaScript unit tests will validate your JavaScript library’s quality, web functional testing is the only way to guarantee the expected behavior of your web pages. CasperJS is a fast and simple JavaScript testing API that can run on any platform, and it is currently one of the best and easiest ways to write your functional tests.

Instant Testing with CasperJS will teach you how to write efficient and accurate tests for your professional web developments. This practical guide explains the various different CasperJS principles through clear and detailed examples, covering a large set of common use cases. This book will progressively cover everything you need to know from CasperJS basic principles to the most advanced testing practices.

This book starts off by introducing you to the different testing assertions that you can perform with the CasperJS API. We will then move on to cover why bad timing between event triggering can ruin tests and learn strategies to avoid it. Finally, you will learn how to test efficient and complex web interactions like drag and drop, authentication, and file uploading. With Instant Testing with CasperJS, you will be able to set up an advanced and functional test suite for your web development projects quickly and efficiently.


Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. A concise guide full of step-by-step recipes to teach you how to create CasperJS tests for your web development projects.

Who this book is for

This book will be extremely useful for web developers who are new to testing or who want to move from another testing solution to CasperJS. It is assumed that you are familiar with web development and have a good knowledge of JavaScript.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software