part 11 · sources checked 2026-11-30
test strategy for a collection product
This module shows how to test a collector in layers, from recorded pages to a release gate, and to reproduce a failure in the lab.
purpose
A collector has two test problems that a normal web service does not have. The site changes without notice, and each live test is load on a third party that its defender can see. Thus each test layer of a test plan states what it proves, where it runs, and what it cannot prove.
objectives
- Write a test plan that gives each test layer its proof, its place, its gate, and its limit.
- Build a replay suite from recorded traffic, and measure its replay fidelity against a live lab page.
- Build a lab detection target, and write the pass rule for a release.
- Record the upstream shape of a flow, and run a contract test against each stored shape.
- Run two versions of a collector on one sample, subtract the noise floor, and classify each difference.
- Define a release gate that joins the results of each test layer. Write the record rules of a permitted live canary.
- Export a run bundle from a production failure. Reproduce the failure in the lab, or write a reproduction record of why it does not reproduce.
lessons
5 of 7 published
a dim title is not yet published
- L01 the test layers of a collector
- L02 replay of recorded traffic
- L03 a lab target with its own detection as a release test (not yet published)
- L04 contract tests of the upstream shape
- L05 shadow traffic in production (not yet published)
- L06 the release gate and the permitted live canary
- L07 from a production failure to a lab reproduction