Szczegóły ebooka

Instant Testing with CasperJS. Create advanced and efficient CasperJS tests for your web development projects

Instant Testing with CasperJS. Create advanced and efficient CasperJS tests for your web development projects

Eric Brehault

Ebook
Professional web development implies systematic testing. While JavaScript unit tests will validate your JavaScript library’s quality, web functional testing is the only way to guarantee the expected behavior of your web pages. CasperJS is a fast and simple JavaScript testing API that can run on any platform, and it is currently one of the best and easiest ways to write your functional tests.

Instant Testing with CasperJS will teach you how to write efficient and accurate tests for your professional web developments. This practical guide explains the various different CasperJS principles through clear and detailed examples, covering a large set of common use cases. This book will progressively cover everything you need to know from CasperJS basic principles to the most advanced testing practices.

This book starts off by introducing you to the different testing assertions that you can perform with the CasperJS API. We will then move on to cover why bad timing between event triggering can ruin tests and learn strategies to avoid it. Finally, you will learn how to test efficient and complex web interactions like drag and drop, authentication, and file uploading. With Instant Testing with CasperJS, you will be able to set up an advanced and functional test suite for your web development projects quickly and efficiently.
  • Instant Testing with CasperJS
    • 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...
        • Theres 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
  • Tytuł: Instant Testing with CasperJS. Create advanced and efficient CasperJS tests for your web development projects
  • Autor: Eric Brehault
  • Tytuł oryginału: Instant Testing with CasperJS. Create advanced and efficient CasperJS tests for your web development projects.
  • ISBN: 9781783289448, 9781783289448
  • Data wydania: 2014-01-24
  • Format: Ebook
  • Identyfikator pozycji: e_3b6d
  • Wydawca: Packt Publishing