Instant Testing with CasperJS

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

Instant Testing with CasperJS

Éric Bréhault

1 customer reviews
Create advanced and efficient CasperJS tests for your web development projects.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.50
RRP $14.99
Save 29%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.50
$29.99p/m after trial
RRP $14.99
Subscription
eBook
Start 30 Day Trial

Frequently bought together


Instant Testing with CasperJS Book Cover
Instant Testing with CasperJS
$ 14.99
$ 10.50
Instant Mock Testing with PowerMock Book Cover
Instant Mock Testing with PowerMock
$ 14.99
$ 10.50
Buy 2 for $21.00
Save $8.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

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 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Getting Started with PhantomJS Book Cover
Getting Started with PhantomJS
$ 17.99
$ 12.60
Jasmine JavaScript Testing Book Cover
Jasmine JavaScript Testing
$ 19.99
$ 14.00
PhantomJS Cookbook Book Cover
PhantomJS Cookbook
$ 25.99
$ 18.20
Swift 3 Functional Programming Book Cover
Swift 3 Functional Programming
$ 35.99
$ 25.20
Data Visualization with D3.js Cookbook Book Cover
Data Visualization with D3.js Cookbook
$ 26.99
$ 18.90