small medium large xlarge

The Way of the Web Tester: A Beginner's Guide to Automating Tests

by

Cover image for The Way of the Web Tester

The Way of the Web Tester

A Beginner's Guide to Automating Tests

by

This book is for everyone who needs to test the web. As a tester, you’ll automate your tests. As a developer, you’ll build more robust solutions. And as a team, you’ll gain a vocabulary and a means to coordinate how to write and organize automated tests for the web. Follow the testing pyramid and level up your skills in user interface testing, integration testing, and unit testing. Your new skills will free you up to do other, more important things while letting the computer do the one thing it’s really good at: quickly running thousands of repetitive tasks.


Printed in full color.

Customer Reviews

The Way of the Web Tester is really The Way of the Conscientious Web Developer, providing a comprehensive journey through automated behavior-testing for web applications, from round-trip UI tests to fast-running unit tests. The examples are never simplistic, and helpful characters, including Diane the Developer and Tim the Tester, seem to know exactly what the reader is thinking. If you’re writing web applications, you should have this book in your back pocket.

- Dan North

Principal consultant, Dan North & Associates Ltd.

Everything in this book IS awesome! What I love most about _The Way of the Web Tester_ is that it’s a book for the whole team. Whether you’re a tester nervous about coding skills, or a coder anxious about writing maintainable tests, this book will encourage you to collaborate for success. The step-by-step visuals will guide you through good coding and design practices and principles for robust, valuable automated tests. Most importantly, you’ll learn how to deliver great software by writing tests first!

- Lisa Crispin

Co-author with Janet Gregory of "More Agile Testing: Learning Journeys for the Whole Team"

This is a highly inspirational book on test automation: as a reader, you get a deep understanding of what role test automation plays and the value it brings for the tech industry. Whether you’re a tester, developer, or product owner, after finishing there should no longer be any doubts: quality must be built in from the start.

- Julia Oskö

Engineer, Spotify

This book has some great ideas and examples, and I will recommend it to teams who are struggling with automation and how to start.

- Janet Gregory

Agile coach, with focus on testing, DragonFire, Inc.

Chapter 1 is probably the best overview of automated testing I have ever read.

- PJ Hampton

PhD candidate and teaching assistant, Ulster University

See All Reviews

Choose Your Format(s)

  • $36.00 In Stock

    Save $12.00 on the combo pack.

  • $29.00 In Stock
  • $19.00 In Stock
  • Ebooks are DRM free.

  • Ebook delivery options.

What You Need

A curiosity about how things work and a willingness to learn.

Contents & Extracts

Preface

  • Mapping the Pyramid
    • The Testing Pyramid excerpt
      • It Was Beautiful
      • The Wheels on the Bus
      • Three Hard Lessons Learned
      • Enter the Testing Pyramid
      • UI Tests
      • Integration Tests
      • Unit Tests
      • Rules of Thumb
      • Who’s Writing These Things
      • What We’ve Learned So Far
    • Smoking User Interface Tests
      • Another Botched Release
      • Enter the User Interface Test
      • How They Work
      • HTML Is for Asserting
      • CSS Is for Selecting
      • What We’ve Learned So Far
    • Adding UI Tests to Legacy Systems
      • Step 1: Confirm You’re on the Right Test Page
      • Step 2: Figure Out Your CSS Selectors
      • Step 3: Make Your Assertions
      • What We’ve Learned So Far
    • Connecting the Dots with Integration Tests
      • There Is No UI
      • Enter the Integration Test
      • How the Web Works
      • Talking HTTP
      • Taking a REST
      • What We’ve Learned So Far
    • Integration Testing RESTful Web Services
      • Testing the RESTful Permit API
      • HTTP GET
      • HTTP POST
      • HTTP PUT
      • HTTP DELETE
      • What We’ve Learned So Far
    • Covering Our Bases with Unit Tests excerpt
      • Everything Is Awesome!
      • The Challenge with UI Tests
      • Enter the Unit Test
      • How They Work
      • Turning It Up
      • What We’ve Learned So Far
    • Unit Testing in the Browser with JavaScript
      • Magic in the Browser
      • JavaScript and the Pyramid
      • Bug Hunt
      • Step 1: Scan the HTML
      • Step 2: Check the JavaScript
      • Step 3: Write the Tests
      • Static vs. Dynamic Typing
      • Open Mic
      • What We’ve Learned So Far
    • Climbing the Pyramid
      • The Pyramid in Action
      • Start with the Unit Tests
      • Step Up to the Integration Tests
      • Reach for the UI Tests
      • The Inverted Pyramid
      • How to Deal with Flaky Tests
      • What We’ve Learned So Far
  • Exploring the Pyramid
    • Programming 101
      • The Mechanics of Programming
      • The Importance of Style excerpt
      • Naming
      • Spacing
      • Dealing with Duplication
      • Playing the Game
      • Step 1: Fix the Spacing
      • Step 2: Choose Good Names
      • Step 3: Tackle Duplication in the Class
      • Step 4: Remove Duplication in the Test
      • What We’ve Learned So Far
    • Organizing Tests: Bringing Method to the Madness
      • The Land of Confusion
      • The Beauty of Isolation
      • The Clarity of Context
      • Intruder Alert
      • What We’ve Learned So Far
    • Effective Mocking
      • Listen to the Music
      • Enter the Mock
      • Step 1: Prepare the Mock
      • Step 2: Set Expectations
      • The Shackles of Coupling
      • The Swamp of Mocking
      • Ports and Adapters
      • Open Mike
      • What We’ve Learned So Far
    • Writing Tests First
      • Where to Begin
      • What Is Test-Driven Development (TDD)?
      • Step 1: Write a Failing Test
      • Step 2: Make the Test Pass
      • Step 3: Refactor
      • Advantages of Working This Way
      • Seeing It in Action
      • Cycle, Rinse, Repeat
      • Open Mic
      • What We’ve Learned So Far
      • Final Words
    • CSS Cheat Sheet
    • Google Chrome Developer Tools

Author

Jonathan Rasmusson is the author of The Agile Samurai. An experienced programmer, Jonathan has helped some of the world’s leading software companies find better ways of working and playing together. When not cycling to work in the throes of winter you can find him developing software and coaching teams at Spotify.