Amazon cover image
Image from Amazon.com

PhantomJS Cookbook.

By: Material type: TextTextPublication details: Packt Publishing, 2014.Description: 1 online resourceContent type:
  • text
Media type:
  • computer
Carrier type:
  • online resource
ISBN:
  • 1306875684
  • 9781306875684
  • 9781783981939
  • 1783981938
  • 9781783981922
  • 178398192X
Subject(s): Additional physical formats: Print version:: No titleDDC classification:
  • 006.7 23
LOC classification:
  • T55.4-60.8
Online resources:
Contents:
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with PhantomJS; Introduction; Installing PhantomJS; Launching the PhantomJS REPL; Running a PhantomJS script; Running a PhantomJS script with arguments; Running PhantomJS with cookies; Running PhantomJS with a disk cache; Running PhantomJS with a JSON configuration file; Debugging a PhantomJS script; Chapter 2: PhantomJS Core Modules; Introduction; Inspecting the version at runtime; Managing cookies with the phantom object.
Specifying a path for external scriptsSetting up a global PhantomJS error handler; Controlling the exit status of a PhantomJS script; Inspecting command-line arguments; Inspecting system environment variables; Saving a file from a PhantomJS script; Reading a file from PhantomJS; Creating a custom module for PhantomJS; Loading custom modules in PhantomJS; Chapter 3: Working with webpage Objects; Introduction; Creating a web page instance in PhantomJS with the webpage module; Opening a URL within PhantomJS; Generating a POST from PhantomJS; Inspecting page content from a PhantomJS script.
Includes external JavaScript on the pageRecording debugger messages; Simulating mouse clicks in PhantomJS; Simulating keyboard input in PhantomJS; Simulating scrolling in PhantomJS; Simulating mouse hovers in PhantomJS; Blocking CSS from downloading; Causing images to fail randomly; Submitting Ajax requests from PhantomJS; Working with WebSockets in PhantomJS; Chapter 4: Unit Testing with PhantomJS; Introduction; Running Jasmine unit tests with PhantomJS; Using TerminalReporter for unit testing in PhantomJS; Creating a Jasmine test runner for PhantomJS and every other browser.
Running Jasmine unit tests with GruntWatching your tests during development with Grunt; Running Jasmine unit tests with the Karma test runner; Generating code coverage reports with Istanbul and the Karma test runner; Running Jasmine unit tests with Karma and PhantomJS from WebStorm; Running QUnit tests with PhantomJS; Running Mocha unit tests with PhantomJS; Chapter 5: Functional and End-to-end Testing with PhantomJS; Introduction; Running Selenium tests with PhantomJS and GhostDriver; Using WebdriverJS as a Selenium client for PhantomJS; Adding Poltergeist to a Capybara suite.
Taking screenshots during tests with PoltergeistSimulating precise mouse clicks with Poltergeist; Installing CasperJS; Interacting with web pages using CasperJS; End-to-end testing with CasperJS; Exporting test results from CasperJS in XUnit format; Detecting visual regressions using PhantomCSS; Chapter 6: Network Monitoring and Performance Analysis; Introduction; Generating HAR files from PhantomJS; Listing CSS properties; Generating an appcache manifest; Executing a simple performance analysis; Executing a detailed performance analysis.
Summary: A task-based guide that provides solutions to real-world test automation problems. 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.
Holdings
Item type Current library Collection Call number Status Date due Barcode Item holds
eBook eBook e-Library EBSCO Computers Available
Total holds: 0

Print version record.

A task-based guide that provides solutions to real-world test automation problems. 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.

Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with PhantomJS; Introduction; Installing PhantomJS; Launching the PhantomJS REPL; Running a PhantomJS script; Running a PhantomJS script with arguments; Running PhantomJS with cookies; Running PhantomJS with a disk cache; Running PhantomJS with a JSON configuration file; Debugging a PhantomJS script; Chapter 2: PhantomJS Core Modules; Introduction; Inspecting the version at runtime; Managing cookies with the phantom object.

Specifying a path for external scriptsSetting up a global PhantomJS error handler; Controlling the exit status of a PhantomJS script; Inspecting command-line arguments; Inspecting system environment variables; Saving a file from a PhantomJS script; Reading a file from PhantomJS; Creating a custom module for PhantomJS; Loading custom modules in PhantomJS; Chapter 3: Working with webpage Objects; Introduction; Creating a web page instance in PhantomJS with the webpage module; Opening a URL within PhantomJS; Generating a POST from PhantomJS; Inspecting page content from a PhantomJS script.

Includes external JavaScript on the pageRecording debugger messages; Simulating mouse clicks in PhantomJS; Simulating keyboard input in PhantomJS; Simulating scrolling in PhantomJS; Simulating mouse hovers in PhantomJS; Blocking CSS from downloading; Causing images to fail randomly; Submitting Ajax requests from PhantomJS; Working with WebSockets in PhantomJS; Chapter 4: Unit Testing with PhantomJS; Introduction; Running Jasmine unit tests with PhantomJS; Using TerminalReporter for unit testing in PhantomJS; Creating a Jasmine test runner for PhantomJS and every other browser.

Running Jasmine unit tests with GruntWatching your tests during development with Grunt; Running Jasmine unit tests with the Karma test runner; Generating code coverage reports with Istanbul and the Karma test runner; Running Jasmine unit tests with Karma and PhantomJS from WebStorm; Running QUnit tests with PhantomJS; Running Mocha unit tests with PhantomJS; Chapter 5: Functional and End-to-end Testing with PhantomJS; Introduction; Running Selenium tests with PhantomJS and GhostDriver; Using WebdriverJS as a Selenium client for PhantomJS; Adding Poltergeist to a Capybara suite.

Taking screenshots during tests with PoltergeistSimulating precise mouse clicks with Poltergeist; Installing CasperJS; Interacting with web pages using CasperJS; End-to-end testing with CasperJS; Exporting test results from CasperJS in XUnit format; Detecting visual regressions using PhantomCSS; Chapter 6: Network Monitoring and Performance Analysis; Introduction; Generating HAR files from PhantomJS; Listing CSS properties; Generating an appcache manifest; Executing a simple performance analysis; Executing a detailed performance analysis.

English.

Added to collection customer.56279.3

Powered by Koha