More Information
Learn
  • 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
About

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.

Features
  • 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
Page Count 68
Course Length 2 hours 2 minutes
ISBN 9781783289448
Date Of Publication 24 Jan 2014

Authors

É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.