
Instant Testing with CasperJS
Create advanced and efficient CasperJS tests for your web development projects.
Eric Brehault(Author)
Packt Publishing
Published on 24. January 2014
Book
Paperback/Softback
68 pages
978-1-78328-943-1 (ISBN)
Description
Create advanced and efficient CasperJS tests for your web development projects.
Key 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
Book DescriptionProfessional 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.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
Who this book is for
Key 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
Book DescriptionProfessional 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.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
Who this book is for
More details
Language
English
Place of publication
Birmingham
United Kingdom
Target group
Professional and scholarly
US School Grade: College Graduate Student
Dimensions
Height: 235 mm
Width: 191 mm
Thickness: 4 mm
Weight
147 gr
ISBN-13
978-1-78328-943-1 (9781783289431)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Additional editions

Eric Brehault
Instant Testing with CasperJS
Create advanced and efficient CasperJS tests for your web development projects.
E-Book
10/2025
Packt Publishing
from
€20.39
Available for download
Person
A0/00ric BrA (c)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 PloneaEUR"a Python open source CMSaEUR"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 CorpusaEUR"a French open source consulting and development company providing services for web and mobile applicationsaEUR"specifically on environmental issues and in the fields of spatial analysis and data visualization.
As an IT engineer, he has used a lot of different server-side technologies, but since 2006, he has been focusing on PloneaEUR"a Python open source CMSaEUR"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 CorpusaEUR"a French open source consulting and development company providing services for web and mobile applicationsaEUR"specifically on environmental issues and in the fields of spatial analysis and data visualization.
Content
Table of Contents