PhantomJS Cookbook

Rob Friesel

  • 出版商: Packt Publishing
  • 出版日期: 2014-06-12
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 276
  • 裝訂: Paperback
  • ISBN: 178398192X
  • ISBN-13: 9781783981922
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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

About This Book

  • 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

Who This Book Is 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.

What You Will Learn

  • 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

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.