Compare Recordings for Drift
Drift is a field whose value changes every time the same traffic is recorded, such as a request id header, a timestamp or a generated token. A mock matches on the recorded value, so a drifting field in an outbound request turns into a miss on the next replay. Comparing several recordings of the same traffic finds those fields before they cost you a replay, and proposes a transform for each. This is the dashboard version of proxymock web's drift view, and both run the same detection.
Start a comparison
- Open a snapshot or a replay report and open its More actions menu.
- Select Compare for drift. The snapshot or report you started from is already in the list.
- Add one to three more snapshots or reports of the same traffic.
- Choose a Sensitivity: Permissive lists every field that varied at all, Normal lists fields that vary in more than one request, and Strict lists only fields that vary across several requests and endpoints.
- When a report is in the list, tick Include responses changed by chaos to keep responses a chaos rule changed. They are left out by default, because chaos changes them on purpose.
- Select Start comparison.
The comparison runs as a background job and its page shows how long it has been running. Each recording is read up to its first 50,000 requests. A snapshot that is still being analyzed cannot be compared yet.
Read the result
The page lists each field that varies, with its service, whether it is on inbound or outbound traffic, how many groups of matching requests it varies across, how many distinct values it took and some example values. The Proposed transform column shows the steps of the transform that makes the mocks ignore the field; hover it to see the full chain.
Add a transform to the snapshot
Select Add to snapshot to append the proposed transform to the snapshot's responder transforms. When the comparison includes more than one snapshot, Speedscale asks which one to change. A transform that is already on the snapshot is not added twice, and the row then shows Added. The change takes effect on the next replay of that snapshot. To see the requests it changes first, open the snapshot's Prepare tab and preview the transforms on the whole snapshot.