PhantomJS Cookbook Front Cover

PhantomJS Cookbook

  • Length: 276 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2014-07-02
  • ISBN-10: 178398192X
  • ISBN-13: 9781783981922
  • Sales Rank: #3580956 (See Top 100 Books)
Description

Over 70 recipes to help boost the productivity of your applications using real-world testing with PhantomJS with this book and ebook

Overview

  • Learn the fundamentals of working with the headless PhantomJS browser
  • Create unit and functional test suites backed by PhantomJS
  • Integrate PhantomJS into development and testing workflows for efficient unit testing

In Detail

Beginning with the basics of PhantomJS, this book will dive into its core modules and guide you through how to solve real-world testing problems. This book explores a variety of test automation tasks, including executing JavaScript unit tests with the Jasmine, QUnit, and Mocha frameworks; functional tests with tools such as Selenium, Capybara, and CasperJS; performance analysis with tools such as YSlow; and much more.

If you are a web developer looking to run automated unit tests while you work, or perhaps you are a QA engineer looking for a fast test automation utility, then this book is perfect for you. Some prior knowledge of JavaScript would be helpful.

What you will learn from this book

  • Develop your own PhantomJS core modules
  • Learn sophisticated strategies for interacting with web page contents and how to capture those interactions
  • Create a front-end continuous integration (CI) strategy with PhantomJS
  • Perform unit testing with frameworks such as Jasmine, Mocha, and QUnit
  • Implement functional and end-to-end testing with PhantomJS using tools such as Selenium, Capybara, and CasperJS
  • Automate performance analysis with libraries such as Confess.js and YSlow
  • Automate the generation of images and PDFs of your web content

Approach

A task-based guide that provides solutions to real-world test automation problems.

Who this book is written for

This book is intended for web development professionals who want to integrate PhantomJS into their development and testing workflows. If you are a web developer looking to run automated unit tests while you work, or perhaps you are a QA engineer looking for a fast test automation utility, then this book is perfect for you. Some prior knowledge of JavaScript would be helpful.

Table of Contents

Chapter 1: Getting Started with PhantomJS
Chapter 2: PhantomJS Core Modules
Chapter 3: Working with webpage Objects
Chapter 4: Unit Testing with PhantomJS
Chapter 5: Functional and End-to-end Testing with PhantomJS
Chapter 6: Network Monitoring and Performance Analysis
Chapter 7: Generating Images and Documents with PhantomJS
Chapter 8: Continuous Integration with PhantomJS

To access the link, solve the captcha.