QA AND TEST AUTOMATION · PART 12 · LEADING QUALITY (SENIOR AND STAFF) · STAFF · 110 OF 112

Building a Test Platform Other Teams Use

At staff level, a tester's biggest lever is a platform that makes good testing the easy path for every team. What it contains, shown with the testability features ShopRung already has (reset, seed accounts, a bug switch, a fake AI model) and a one-command runner: 72 tests in 8.7 seconds, 14.5 when failures add their timeouts. Plus adoption, ownership, and the security rule for test endpoints.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 67
  63. 68
  64. 69
  65. 70
  66. 71
  67. 72
  68. 73
  69. 74
  70. 75
  71. 76
  72. 77
  73. 78
  74. 79
  75. 80
  76. 81
  77. 82
  78. 83
  79. 84
  80. 85
  81. 86
  82. 87
  83. 88
  84. 89
  85. 90
  86. 91
  87. 92
  88. 93
  89. 94
  90. 95
  91. 96
  92. 97
  93. 98
  94. 99
  95. 100
  96. 101
  97. 102
  98. 103
  99. 104
  100. 105
  101. 106
  102. 107
  103. 108
  104. 109
  105. 110
  106. 111
  107. 112
1 / 11

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • Paved road
  • testability hooks, never in prod
  • one command: 72 tests in 8.7 s
  • signal
  • adoption
  • run it as a product

Notes

The paved road

Start with the paved road: the easiest way to do the right thing. A project template with configuration, fixtures, a CI job and reporting already wired. One command to run everything. Shared fixtures for logging in, creating data and calling APIs. Conventions, such as role based locators and requirement ids in test names. And documentation with working examples, exactly like the downloadable projects in this course's labs.

What teams get
  • a project template: config, fixtures, CI job, reporting
  • one command to run everything
  • shared fixtures: login, data, API clients
  • conventions: locators, naming, requirement ids in tests
  • docs with working examples (like this course's labs)

Testability

The best platforms also change the product. ShopRung has the hooks that made every lab in this course possible: a reset endpoint that restores the same seed data, known accounts, a switch for seventeen planted bugs with a mystery mode, a deterministic fake AI model, a health check, a read only SQL console, and test ids on key elements. Ask product teams to build these in; they cost little and save every test author days.

ShopRung's testability hooks
POST /api/test/reset
  → the same seed data, always
seed accounts: alice, bob, admin
POST /api/test/bugs
  17 planted bugs + mystery mode
SHOPRUNG_CHAT_MODEL=fake
  → a deterministic AI model
GET /api/health, /sql (read only)
data-testid on key elements

Security

One rule is not negotiable. ShopRung's reset endpoint needs no login: anyone can wipe the data. That is fine for a practice shop and a disaster in a real product. Test hooks must be enabled only in test environments, by configuration, and there must be a test, run against production, that proves they return not found there. A platform that makes testing easy must not make attacking easy.

The rule
  • ShopRung's /api/test/reset has no login at all: anyone can wipe the data
  • fine for a practice shop
  • in a real product: enabled only in test environments, by config, and tested to be OFF in production
  • a test: prod returns 404

One command

One command matters more than it sounds. We wrote a small runner that resets ShopRung, sets the bug switch and runs all five suites from this course: seventy two tests in eight point seven seconds. With mystery mode, sixty six passed, six failed, and the run took fourteen and a half seconds, because failing UI assertions wait for their timeouts. A platform should report time, and make slow failures visible.

python run_all.py
suite  passed failed seconds
api        23      0    2.0
ui          7      0    4.9
agent       9      0    0.9
redteam    17      0    0.4
evals      16      0    0.3
total      72      0    8.7
with --bugs mystery:
  66 passed, 6 failed, 14.5 s

Signal

The platform also turns runs into signal. One result format across languages, such as JUnit XML or Allure. Every failure with its trace, logs and requirement id. Flaky test tracking, with quarantine and owners. Trends in duration, failures and flakes per suite. And alerts that go to the team that owns the test, not to a shared channel nobody reads.

Platform reporting
  • one results format (JUnit XML, Allure) across languages
  • failures with trace, logs and the requirement id
  • flaky test tracking and quarantine with owners
  • trends: duration, failures, flakes per suite
  • alerts to the owning team

Adoption

A platform nobody uses is a hobby. Start with one team's real pain, such as a suite that takes an hour or fails randomly, and fix it with them. Migrate one suite together, then use it as the example. Measure adoption: teams using the platform, time to a team's first test, feedback time and flake rate. Offer office hours. Make the paved road easier than the alternatives, rather than mandatory.

Getting teams on board
  • start with one team's real pain
  • migrate one suite with them
  • measure: teams using it, time to first test, PR feedback time, flake rate
  • office hours and examples
  • make the paved road easier, not mandatory

Ownership

Run the platform as a product. It has users, a backlog built from their requests, versioned releases with a changelog and deprecation notices, a service level objective for CI availability and speed, and a support rotation. One thing stays with product teams: they own their tests and their quality. The platform makes that easier; it does not take it over.

The platform team
  • a backlog from user requests
  • versioned releases, changelog, deprecation notices
  • an SLO: CI available, runners fast enough
  • support rotation
  • product teams still own their tests and their quality

Common mistakes

Mistakes. Building the platform in isolation and announcing it when done. Forcing it with mandates instead of making it better. Leaving test hooks open in production. Turning the platform team into a central QA team that owns everyone's tests. Not measuring adoption. And shipping breaking changes without notice, which teaches teams never to upgrade.

Avoid these
  • building in isolation
  • mandates instead of a better path
  • test hooks open in production
  • a central QA team owning everyone's tests
  • no adoption metrics
  • breaking changes with no notice

Say it like this

In the interview: with a platform that makes good testing the easy path. A project template, shared fixtures, one command to run everything, one report format and flake tracking. I ask product teams for testability hooks such as a reset endpoint, seed data and fault switches, guaranteed off in production. I start with one team's real pain, migrate their suite, and measure adoption and feedback time.

In the interview
  • "With a platform that is the easy path: a project template, shared fixtures, one command, one report format, flake
  • tracking. I ask product teams for testability hooks like reset, seed data and fault switches, off in production. I start with one team's pain and measure
  • adoption."

Interview questions

Q1What is a test platform?

Shared tools, environments, conventions and reporting that make good testing the easy path for every team.

Q2What is a paved road?

The easiest, supported way to do the right thing: a template, shared fixtures, one command, CI and reporting already wired.

Q3Which testability hooks should a product offer?

A data reset, seed accounts, fault or bug switches, deterministic fakes for external services and AI models, a health check and stable test ids.

Q4What is the security rule for test hooks?

Enabled only in test environments by configuration, with a test proving they return not found in production; ShopRung's reset needs no login, fine only for a practice shop.

Q5Why one command for all suites?

Anyone can run everything the same way; ShopRung's runner ran 72 tests in 8.7 s, and showed failures adding time (14.5 s with mystery bugs).

Q6How do you get teams to adopt a platform?

Start with one team's real pain, migrate a suite with them, make the paved road easier rather than mandatory, and measure adoption.

Q7Who owns tests on a platform?

Product teams own their tests and quality; the platform team owns the tools, like a product with users, releases and an SLO.

Q8Which metrics show a platform works?

Teams using it, time to first test, PR feedback time and flake rate.