Cash desk software replaced without a single discrepancy · Codelabs
RU|EN|KK
← All cases
CASE 11Protocol emulators and acceptance

Cash desk software replaced without a single discrepancy

The cash desk software was being replaced, and it had to be proven that the new system counts exactly as the old one did. We wrote an emulator for every gaming client — twelve of them — ran thousands of bets through them and reconciled the reports of both systems line by line. Any discrepancy failed the build, so "it seems to add up" became a verifiable fact.

QACash desksAutomated tests

How it works

For every gaming client we wrote a headless emulator of its network contract — twelve of them. The emulator behaves like a real client but without an interface and in any number of instances.

A run is thousands of bets, and every win is reconciled against the odds tables taken straight from the backend sources rather than from the documentation: documentation goes stale, code does not.

The reports of the old and the new system are reconciled line by line. Any discrepancy produces a non-zero exit code in CI, that is, a red build. "It seems to add up" does not pass acceptance.

In numbers

  • ·12 emulators of network protocols
  • ·thousands of bets per run
  • ·every win checked against the odds tables
  • ·a discrepancy means a red build in CI

Describe your task — we will tell you what part of it we have already built