Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Instant Testing with CasperJS
Instant Testing with CasperJS
Instant Testing with CasperJS
Ebook137 pages27 minutes

Instant Testing with CasperJS

Rating: 0 out of 5 stars

()

Read preview

About this ebook

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

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.
LanguageEnglish
Release dateJan 24, 2014
ISBN9781783289448
Instant Testing with CasperJS

Related to Instant Testing with CasperJS

Related ebooks

Internet & Web For You

View More

Related articles

Reviews for Instant Testing with CasperJS

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Instant Testing with CasperJS - Éric Bréhault

    Table of Contents

    Instant Testing with CasperJS

    Credits

    About the Author

    About the Reviewer

    www.PacktPub.com

    Support files, eBooks, discount offers and more

    Why Subscribe?

    Free Access for Packt account holders

    Preface

    What this book covers

    What you need for this book

    Who this book is for

    Conventions

    Reader feedback

    Customer support

    Downloading the example code

    Errata

    Piracy

    Questions

    1. Instant Testing with CasperJS

    Installing CasperJS (Simple)

    Getting ready

    How to do it...

    How it works...

    There's more...

    Installing CasperJS with Homebrew on Mac OS X

    Installing PhantomJS on Ubuntu

    Using the CasperJS Ruby executable

    Getting started with CasperJS (Simple)

    Getting ready

    How to do it...

    Timing is everything

    Live recording

    How it works...

    There's more...

    XPath selectors

    Assertion methods

    The WaitFor methods

    The wait() method

    Installing Resurrectio from the GitHub sources

    Writing advanced tests (Intermediate)

    How to do it...

    Downloading files

    Uploading files

    Authentication

    Keyboard and mouse events

    How it works...

    There's more...

    Passing parameters to the download() method

    setHttpAuth might have surprising timing

    Best practices (Intermediate)

    Testing the real thing

    Surviving design changes

    Creating test suites

    Running CasperJS on Jenkins

    Running CasperJS on Travis-CI

    Beyond testing (Advanced)

    Web scripting

    Screenshot production

    Instant Testing with CasperJS


    Instant Testing with CasperJS

    Copyright © 2014 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    First published: January 2014

    Production Reference: 1230114

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-78328-943-1

    www.packtpub.com

    Credits

    Author

    Éric Bréhault

    Reviewer

    Sven Anders Robbestad

    Acquisition Editors

    Pramila Balan

    Harsha Bharwani

    Commissioning Editor

    Govindan K

    Technical Editors

    Veena Pagare

    Manal Pednekar

    Copy Editors

    Insiya Morbiwala

    Stuti Srivastava

    Project Coordinators

    Sherin Padayatty

    Sageer Parkar

    Proofreaders

    Simran Bhogal

    Paul Hindle

    Production Coordinator

    Nilesh Bambardekar

    Cover Work

    Valentina D'silva

    About the Author

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

    I would like to thank all my teachers.

    About the Reviewer

    Sven Anders Robbestad is a software developer with extensive experience in web technologies. He is also an experienced developer of mobile apps for phones and tablets. Primarily experienced in the field of machine learning and web intelligence, he currently resides in Norway where he works at a

    Enjoying the preview?
    Page 1 of 1