Resonant Business Solutions
Writing Labourly's QA manual before automating its tests
Labourly is the HR platform of Resonant Business Solutions. Quality assurance (QA) on it is the work of checking that the platform does what it should. My QA work has contributed to productivity on Labourly, because defects are caught before they reach production. I wrote the QA manual to record what the platform does, as checked on the live system. Under my rules, an automated test or the status of a piece of work is built only on a behaviour the manual records as checked.
TL;DR
- In the QA manual, a flow is the written account of one thing Labourly does, step by step, including what happens when something goes wrong. A flow counts as verified for 90 days after it is checked on the live platform. After that, a script I wrote reports an error until the flow is marked unverified.
- I set who owns each kind of test on Labourly. Developers write the unit tests on their own code. QA owns the tests that drive a web browser through the platform the way a person would, and the checks done by hand.
- My definition of done sets the conditions a piece of work has to meet before it counts as finished. One of them is a verified flow that describes the work. Another is that the work's acceptance criteria, the statement of what correct looks like for it, hold against that flow.
- The developers' unit tests catch defects in the code. QA's end-to-end tests find the tasks on Labourly that break.
My QA manual bans may, should, usually and sometimes. Where a behaviour depends on a condition, the condition is stated, as in my example of an invitation that the system marks expired when it has not been accepted within 7 days.
- End-to-end tests on Labourly
- 71
- Web browsers the test project is set up for: Chromium, Firefox and WebKit
- 3
- Failure paths and edge cases in the first flow, each with its own test case
- 13
- How long a flow stays verified after it is checked on the live platform
- 90 days
What it is
Resonant Business Solutions builds and sells Labourly. In the company’s words on its website, “Built for Human Resource departments and staffing agencies, Labourly is a simple, intuitive solution for managing your skilled workforce.” Companies use Labourly to hire candidates and to manage each candidate’s certifications and professional documents.
As Labourly’s product owner, I translate between the developers, the chief executive, the chief technology officer, and sales and marketing. I also speak with clients and potential clients on discovery calls and sales calls. On those calls, I observe and analyse, explain features, identify pain points and validate assumptions. I build strategy from this feedback from outside the company, and from the needs I hear at the grassroots. I also do QA as part of the development team.
In the past, all of the QA work on Labourly was manual. I fixed all of it in the QA manual before automating any of it or creating any tooling. The process, the data and the infrastructure were set up before I created any AI agents.
Managing Labourly’s backlog with AI agents covers the AI agents I created to sort through the development team’s work board, the shared tracker where each piece of work has an owner and a status. It also covers the scripts I wrote for the agents to use as tools. Comparing language model output for Labourly covers the tooling I built to compare the answers of language models.
The problem
The product roadmap says what is wanted. The backlog, the ordered list of work still to be done, says what is planned. The development team’s work board says what is in progress. The QA manual records what the platform does once it has been checked on the live system. My rule is that a promise to a client, an automated test or a status on the board rests on what the manual records.
The test pyramid, the standard shape for testing in the software industry, has three layers. The base holds unit tests, which check each piece of code on its own, and integration tests, which check the pieces working together. In the middle, end-to-end tests drive a web browser through a whole task the way a person would use the platform. At the top, a person checks new or risky behaviour by hand. Each layer up is slower and costs more to run.
For a team that releases changes often, most of the checks have to be automated at the base. A defect caught when the code is written is cheap to fix. Found weeks later in a manual pass, after more code has been built on top of it, the same defect costs far more. With an automated base, a regression, a fault in something that used to work, is caught each time the code changes instead of being re-tested by hand at each release.
The test pyramid
checks by hand
A person checks new or risky behaviour. Once it is stable, it gets an automated test.
Owned by QA
end-to-end tests
An automated test drives a web browser through a whole task.
Owned by QA
unit and integration tests
Each piece of code, then the pieces together.
Owned by the developers
The test pyramid from top to base, with the owner I set for each layer on Labourly.
An inverted pyramid has few unit tests at its base and most of its checks done by hand at the top. As a platform grows, every release in an inverted pyramid waits longer on those checks. I give the automated base first priority because pushing checks down the pyramid keeps testing fast and cheap.
The inverted pyramid
checks by hand
Most of the checking.
end-to-end tests
More tests than at the base.
unit and integration tests
Few tests.
The same three layers inverted, with most of the checking done by hand.
The decision
In QA Operations, my guide to how QA runs on Labourly, I gave the base of the pyramid to the developers. The developer who writes or changes a piece of code writes its unit tests. The developer who builds or changes an API, the connection other software uses to reach a service, writes the integration tests for it. My rule is that no change is merged into the main version of the code until those tests have run on it and passed.
In my definition of done, merged code is one of six conditions.
- The behaviour is built and merged.
- A verified flow describes the shipped behaviour, with a success path, at least one failure path and the date it was checked on the live platform.
- Where the behaviour can be automated, a test for it passes.
- Everything the flow names is listed in the QA manual’s reference files.
- The acceptance criteria are met when checked against the verified flow.
- The status of the piece of work comes from the verified flow and is never set by hand.
QA owns the acceptance criteria. When I write a piece of work’s criteria in the QA manual’s style, with the system as the subject and at least one failure path, the criteria are already the draft of its flow.
Instead of a separate product for managing test cases, I chose to keep Labourly’s tests as code. Between them, the flows and the tests trace each requirement to its test and its result. A separate product would add licences and upkeep without tracing anything more. I would revisit the choice if a regulator ever required a formal audit trail from requirement to test to result.
What I did
The QA manual
I wrote the QA manual for three readers, in order of priority. For me, it is the reference for how the platform works. For the team and clients, it explains what the platform is expected to do. For AI agents and chatbots, it is a knowledge base they can query to run tests and answer questions. Where a sentence is clear to a person but ambiguous to an agent, my rule is to rewrite it.
Every flow is written in the present tense, with the system as the subject. The words click, navigate and press, which describe a user’s gestures, are banned from it. Each flow covers the success path, at least one failure path and any known edge cases, the rare situations at the limits of what the system handles.
A flow can name only the notifications, message templates and test accounts already listed in the manual’s reference files. A name that matches none of them is treated as a defect. Every file in the manual is also listed in its index, the page that links to all the others.
The validator
I wrote the validator, a script that checks the QA manual against those rules. It runs on Node, a program that runs JavaScript outside a web browser. Its 618 lines use no outside package. On each run, it checks these things.
- A flow’s header has every required field, in the right form. No two flows share an identifier.
- Every file opens with a link back to the index. The index lists every file and links to no file that is missing.
- Every notification a flow names is in the list of notifications. Every message template that list names exists.
- No banned word appears in the prose of a flow.
- Nothing in any file looks like a password or an access key.
The validator also compares each flow’s status in the index with the date of its last check on the live platform. Where the two disagree, the run fails.
The tests
Each end-to-end test is code for Playwright, a tool that drives a web browser. The test carries out one case from a test plan, the document that says in plain language what a person would check and how. The test’s file names its plan at the top. Where a flow describes the behaviour a plan covers, my rules have the plan refer to that flow. The test project is set up for three browsers: Chromium, Firefox and WebKit, the engine Safari is built on.
One test opens the login page, presses the Tab key through the form and checks that an element on the page holds the focus. Its case in the login test plan expects every field and button on the form to be reachable by keyboard, with no mouse.
Each test is numbered by area, feature and case, as in 01.01.01 for a successful login. That number has to match where the test’s file sits in the folders.
Labourly’s automated tests first ran on Perfecto, a cloud testing platform from Perforce. It was non-standard and the tests were finicky. I moved them to Selenium, a widely used tool for automating web browsers, but it was missing too much and gave false results. I then tried Playwright. Only then did the tests become stable. I am moving the tests to Playwright. Each new test starts from its old Perfecto or Selenium version.
There are 71 end-to-end tests. Their coverage spans 134 test cases and is still being updated as I write this.
What I’d do differently
I would make the same choices again. When Perfecto and then Selenium did not fit what Labourly’s tests needed, I moved on from each. What I would do now is finish the work: write more flows and check each one on the live platform, and move the remaining test cases to Playwright.
Result
The writing standard, the reference files, the validator, the numbering of the tests and the definition of done are in place for every flow I write. The first flow covers a company signing up for Labourly. It runs 21 numbered steps, with nine failure paths and four edge cases. Every path and edge case in it carries its own test case number.
The end-to-end tests I wrote give little to no false results. None of them fails because the test itself is broken. A defect in a piece of code is found by that code’s own unit tests. Some end-to-end tests fail on a task whose code passes its unit tests. In those, the fault lies more in how the whole task runs than in any one piece of code. Because a defect caught ahead of the development cycle does not go to production, Labourly is less exposed to defects.
The QA manual is the source of truth for every AI-related task on Labourly, on what each feature does and how it came to be. Keeping the flows in line with the live platform is the standing QA job. I track and prioritise it like any other work.
Sources
- Labourly, the platform itself. The line quoted in What it is, and what companies use it for.
The rest are internal Resonant Business Solutions documents and scripts, read from my own copies.
- QA Manual for Labourly, its
README.mdandCONTRIBUTING.md. The three readers in priority order and the rule for a sentence that is ambiguous to an agent. The writing rules, the four banned hedging words and the example of a stated condition in the deck, the three banned action verbs, and the coverage requirement. The cross-reference rule and the line treating a broken reference as a defect. The chain from flow to test plan to test, and the test numbering that has to match the folders. validate-docs.mjs, the validator. Its 618 lines and no npm dependencies, the checks its own header lists, and the check of the index against the 90-day verification window.directory.md, the index, and its status legend,verifiedandunverified.- The notification and template registries, the reference files a flow’s notifications and templates are checked against.
- The tenant signup flow. The step count, the failure paths, the edge cases and the fourteen case identifiers they carry.
- QA Operations, in the operator handbook. What QA records and what the other roles state, the three layers and what each costs, the cost of a defect found late, the inverted pyramid and why pushing checks down keeps testing fast and cheap, the owner of each layer and the boundary, the definition of done, the tooling decision and the condition for revisiting it, and keeping the flows in line with the live platform as the standing QA job.
- The product workspace. Acceptance criteria written in the QA manual’s style as the draft flow, and the status of a piece of work derived from a verified flow.
perfecto-test-cases/, fifteen files holding the previous test suite’s case names and their numbering.playwright/, the test project. Its configuration and its three browsers. The keyboard navigation test,18 - keyboard-navigation.spec.ts, read in full, and the login test plan case behind it.
These rest on my own account. Above the body, they are what my QA work has contributed to productivity, and what the unit tests and the end-to-end tests each find. In What it is, they are my roles at Labourly, the QA work being manual, and the QA manual coming before any automation, tooling or AI agents. In Result, they are what the tests find, what a defect caught ahead of the development cycle keeps out of production, and the QA manual’s use in AI-related tasks.