Test Developer eBook
A Coursebook on Test Developer
by Post Sharika
A Coursebook on Test Developer
Formats
Free sample
Chapter 1: Context Is King...--All tests are not created equal. This single truth separates developers who ship reliable software from those who spend their weekends debugging production failures. Yet most engineers never learn it. They adopt testing strategies the way they adopt coding frameworks—by copying what worked for someone else, somewhere else, on a completely different problem.That is a costly mistake.Consider two hypothetical systems. The first is a pacemaker's firmware.
If this software fails, someone dies. The second is a social media app for sharing cat videos. If this software fails, someone sees a cat five seconds later than expected. Both need testing. But if you use the same testing strategy for both, you are either criminally over-testing the cat app or dangerously under-testing the pacemaker.
The context of each system—its risk profile, its users, its regulatory environment, its tolerance for failure—should completely transform your approach.This is the foundational insight of the Context-Driven Testing school, and it is the first thing any aspiring Test Developer must internalize. Before you write a single assertion, before you choose a framework, before you automate anything, you must ask two questions: What is the context of this system, and what testing strategy does that context demand?Most developers skip these questions. They reach for "best practices" instead. But best practices are just common practices in someone else's context. They are not wrong.
They are just not universally right.This chapter will teach you to replace generic best practices with context-driven strategy. You will learn to distinguish verification from validation, map your testing efforts to the Agile Testing Quadrants, understand the economics of early bug detection, and ultimately shift your identity from a test writer to a risk analyst. By the end, you will never look at a test suite the same way again.The Myth of Best Practices The software industry loves best practices. Blog posts evangelize them. Conference talks sell them.
Senior engineers enforce them. The implicit promise is seductive: follow these steps, and you will achieve good outcomes. But there is a problem buried in the phrase itself.A practice cannot be "best" in isolation. It can only be best for a specific context.Test-driven development is widely considered a best practice. And for many teams, it is transformative.
But for a team building a one-week prototype to test a market hypothesis, TDD might be overkill. The time spent writing tests before code could be better spent shipping something users can click on. The practice is not bad. It is just wrong for that context.Code coverage requirements—"we must have 90% coverage"—are another example. High coverage sounds virtuous.
But tests that achieve coverage without asserting meaningful behavior are worse than useless; they create false confidence. A system with 95% coverage that only checks that functions return without crashing is less safe than a system with 60% coverage that thoroughly validates critical paths.The Context-Driven Testing school, articulated most clearly by Cem Kaner, James Bach, and Bret Pettichord in Lessons Learned in Software Testing, rejects the idea of universal best practices. Instead, it offers a set of principles:First, the value of any practice depends on context. Second, good testing is a skilled intellectual process, not a rote checklist. Third, there are no "best practices," only good practices for given contexts that may or may not apply elsewhere.This does not mean anything goes.
It means you must think. You must understand your specific situation—your product, your team, your users, your risks—and design a testing strategy that fits. That is harder than copying a blog post. But it is the only path to effective testing.Verification Versus Validation: The Critical Distinction Before diving into strategies, you need a conceptual framework. The software engineering literature offers a powerful distinction that most practitioners understand poorly: verification versus validation.Verification asks: Did we build the product right?Validation asks: Did we build the right product?These sound similar, but they are fundamentally different.
Verification is about correctness against specifications. Validation is about value for users. A system can be perfectly verified and completely useless. It can also be valuable and full of bugs, though that outcome is rare.Consider a tax filing application. Verification checks that the calculation engine follows the tax code exactly.
It confirms that when you input a salary of 50,000andadeductionof50,000 and a deduction of 50,000andadeductionof2,000, the output is exactly the correct tax liability according to the published formulas. That is essential. But validation asks a different question: Does this application actually help users file their taxes correctly? Does the user interface guide them to enter the right information? Are the instructions clear enough that a non-accountant can succeed?You can verify the tax calculation perfectly and still build a product that no one can use.
Conversely, you can build an intuitive, helpful tax wizard that contains a subtle error in one obscure deduction. Both failures are real. Both must be tested for. But they require different techniques.Verification is well-suited to automation. Unit tests, integration tests, contract tests—these are verification tools.
They confirm that the code does what the developer intended. Validation is harder to automate. It requires human judgment, exploratory testing, user research, and a deep understanding of the problem domain.The best Test Developers maintain both orientations. They write automated verification tests to catch regression bugs rapidly, and they conduct validation activities to ensure the product actually solves real problems. Neither can substitute for the other.The Agile Testing Quadrants: A Strategic Map How do you decide which tests to write, in what quantity, and at what level?
The Agile Testing Quadrants, introduced by Lisa Crispin and Janet Gregory in Agile Testing, provide a practical framework. The quadrants map tests along two dimensions: whether they support the team or critique the product, and whether they are technology-facing or business-facing.Quadrant 1 (Technology-Facing, Supporting the Team): This quadrant contains unit tests, component tests, and some integration tests. These tests are written by developers, run continuously, and provide rapid feedback on code correctness. They are technology-facing because they speak the language of code, not business requirements. A typical Q1 test checks that a sorting function returns the correct order or that a validation rule rejects invalid input.
These tests form the foundation of the test pyramid.Quadrant 2 (Business-Facing, Supporting the Team): This quadrant contains functional tests, story tests, and acceptance tests. These tests are written in business language (often using frameworks like Cucumber or Gherkin) and validate that features work as users expect. The key difference from Q1 is perspective: Q2 tests ask "does this feature deliver the promised business value?" rather than "does this function return the correct type?"Quadrant 3 (Business-Facing, Critiquing the Product): This quadrant contains exploratory testing, scenario testing, usability testing, and user acceptance testing. These activities are not easily automated. They involve humans interacting with the product, noticing anomalies, and asking "what if" questions.
Q3 is where validation happens. It is where you discover that the feature passes all automated checks but still confuses users.Quadrant 4 (Technology-Facing, Critiquing the Product): This quadrant contains non-functional testing: performance, security, scalability, reliability, and chaos engineering. These tests are technology-facing—they examine technical attributes—but they critique…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Post Sharika
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Informative, Educational
- Released
- 2026-05-11
- Pages (approx.)
- 138
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Post Sharika
The Binge Trigger Identification GuidePost Sharika$11.99
Linaclotide IBS C GuidePost Sharika$11.99
Free Trade Agreement EssentialsPost Sharika$11.99
Compulsive Spending for EntrepreneursPost Sharika$11.99
Euclid's Elements: The Birth of Mathematical RigorPost Sharika$11.99
How to Start a Ferrosilicon Manganese Business (Beginners Guide)Post Sharika$11.99
English Test Optimization GuidePost Sharika$12.99
How to Produce Antenna AccessoriesPost Sharika$11.99