skip to content

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

  1. Write a test plan that gives each test layer its proof, its place, its gate, and its limit.
  2. Build a replay suite from recorded traffic, and measure its replay fidelity against a live lab page.
  3. Build a lab detection target, and write the pass rule for a release.
  4. Record the upstream shape of a flow, and run a contract test against each stored shape.
  5. Run two versions of a collector on one sample, subtract the noise floor, and classify each difference.
  6. Define a release gate that joins the results of each test layer. Write the record rules of a permitted live canary.
  7. 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

  1. L01 the test layers of a collector
  2. L02 replay of recorded traffic
  3. L03 a lab target with its own detection as a release test (not yet published)
  4. L04 contract tests of the upstream shape
  5. L05 shadow traffic in production (not yet published)
  6. L06 the release gate and the permitted live canary
  7. L07 from a production failure to a lab reproduction