Chapter 1. Getting Started

Here is a short anecdote from one of the authors that we will use in the rest of this chapter to introduce some of the concepts we will develop in this book.

A few years ago, I faced what appeared to be a simple problem: One of the tests of the product I was working on at the time had failed earlier that day, and I had already spent hours trying to locate the problem. I had gone through most of the code base that was being exercised by this test. I had placed numerous breakpoints in various places in my code, but the variables always contained the correct values, and the flow of the code followed the exact path it was supposed to.

I was running out of ideas, and I was slowly coming to the conclusion that if the problem ...

Get Next Generation Java™ Testing: TestNG and Advanced Concepts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.