PhantomJS Cookbook
暫譯: PhantomJS 食譜

Rob Friesel

  • 出版商: Packt Publishing
  • 出版日期: 2014-06-12
  • 售價: $1,910
  • 貴賓價: 9.5$1,815
  • 語言: 英文
  • 頁數: 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.

商品描述(中文翻譯)

超過 70 個食譜,幫助提升應用程式的生產力,使用 PhantomJS 進行實際測試

本書簡介

  • 學習使用無頭的 PhantomJS 瀏覽器的基本原理
  • 創建由 PhantomJS 支持的單元測試和功能測試套件
  • 將 PhantomJS 整合到開發和測試工作流程中,以提高單元測試的效率

本書適合誰

本書適合希望將 PhantomJS 整合到其開發和測試工作流程中的網頁開發專業人士。如果您是一名網頁開發人員,希望在工作時運行自動化單元測試,或者您是一名尋找快速測試自動化工具的 QA 工程師,那麼本書非常適合您。對 JavaScript 的一些先前知識將會有所幫助。

您將學到什麼

  • 開發自己的 PhantomJS 核心模組
  • 學習與網頁內容互動的複雜策略以及如何捕捉這些互動
  • 使用 PhantomJS 創建前端持續集成 (CI) 策略
  • 使用 Jasmine、Mocha 和 QUnit 等框架進行單元測試
  • 使用 Selenium、Capybara 和 CasperJS 等工具實施功能測試和端到端測試
  • 使用 Confess.js 和 YSlow 等庫自動化性能分析
  • 自動生成網頁內容的圖像和 PDF

詳細內容

本書從 PhantomJS 的基本知識開始,深入探討其核心模組,並指導您如何解決實際測試問題。本書探討各種測試自動化任務,包括使用 Jasmine、QUnit 和 Mocha 框架執行 JavaScript 單元測試;使用 Selenium、Capybara 和 CasperJS 等工具進行功能測試;使用 YSlow 等工具進行性能分析;以及更多內容。

如果您是一名網頁開發人員,希望在工作時運行自動化單元測試,或者您是一名尋找快速測試自動化工具的 QA 工程師,那麼本書非常適合您。對 JavaScript 的一些先前知識將會有所幫助。

最後瀏覽商品 (20)