Instant Testing with CasperJS

Create advanced and efficient CasperJS tests for your web development projects.

Instant Testing with CasperJS

Starting
Éric Bréhault

3 customer reviews
Create advanced and efficient CasperJS tests for your web development projects.
$14.99
RRP $14.99
eBook

Get unlimited access to this and 3,500 other courses today!

With unlimited access to a constantly growing library of over 3,500 courses, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

+ Collection
Free Sample

Book Details

ISBN 139781783289431
Paperback68 pages

Book Description

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.

Table of Contents

Chapter 1: Instant Testing with CasperJS
Installing CasperJS (Simple)
Getting started with CasperJS (Simple)
Writing advanced tests (Intermediate)
Best practices (Intermediate)
Beyond testing (Advanced)

What You Will 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

Authors

Table of Contents

Chapter 1: Instant Testing with CasperJS
Installing CasperJS (Simple)
Getting started with CasperJS (Simple)
Writing advanced tests (Intermediate)
Best practices (Intermediate)
Beyond testing (Advanced)

Book Details

ISBN 139781783289431
Paperback68 pages
Read More
From 3 reviews

Read More Reviews