QAAnywhere

Remote QA & testing jobs, worldwide.

Guides

Designing a test automation framework: decisions before code

By Denis Bojkovski, Test Automation Architect · Published November 25, 2026

Start from the questions it must answer

On 25 November 2026, 56 of the 86 full descriptions on QAAnywhere mentioned a framework. Few said what they meant by it. Before writing code, write down what the team must be able to ask:

  • Is this change safe to merge, within ten minutes?
  • Is this build safe to release, within an hour?
  • When something fails, what broke and who should look?

A framework is good if it answers those cheaply. The number of design patterns in it is irrelevant.

Keep four layers apart

  1. Tests describe behaviour: arrange, act, assert.
  2. Domain helpers express user goals: place an order, invite a teammate.
  3. Drivers know the technology: page objects, API clients, queue readers.
  4. Infrastructure handles configuration, logging, data and reporting.

Dependencies point downwards only. A test should not build an HTTP request by hand, and a page object should not know which environment it runs in. When the product moves from one interface to another, only drivers should change.

Configuration

Use one typed settings object, filled in a fixed order: defaults in the repository, then environment variables. Fail at start-up when a required value is missing, with its name in the message. Secrets come from the pipeline's secret store, never from a file in the repository.

public sealed record TestSettings(Uri BaseUrl, string ApiKey)
{
    public static TestSettings Load()
    {
        string Need(string name) => Environment.GetEnvironmentVariable(name)
            ?? throw new InvalidOperationException(
quot;Set {name} before running the tests."); return new(new Uri(Need("TEST_BASE_URL")), Need("TEST_API_KEY")); } }

Data

Each test creates what it needs and can run alone, in any order, beside others. If the system cannot create data quickly, improving that is usually worth more than any framework feature. The details are in test data management.

Failures must explain themselves

For every failed test, collect the assertion message, the last steps, the request or correlation identifier, the build version, and the trace or screenshot. Ask a colleague who did not write the test to diagnose one failure from the report alone. What they ask you for is what the report lacks.

Decide what not to build

Test runners already do parallelism, retries, filtering and fixtures. Wrapping them creates a private language newcomers must learn. Build a wrapper only when you can name the problem it removes. The same applies to keyword engines: they help when people who do not program will truly write tests, and cost a lot when only engineers do.

Ownership

Decide who fixes a failing test. If developers may break tests but only testers repair them, the suite will be permanently behind. A workable rule is that whoever's change turned it red starts the investigation, and the test team owns the framework itself.

Reviewing a framework you inherit

Check Good sign
Clone to first green run Under 30 minutes, from the README
Run one test alone One command
Run the suite twice Same result
Random order Still passes
Newest failure Cause clear from the report
Adding a test Copy a nearby one, change little

Fix the lowest row that fails first. Rewriting a working framework in a fashionable tool rarely pays; migrating one slice at a time, with both running, carries less risk.

In interviews

You will often be asked to design a framework. Begin with questions about the product, the team, the release rhythm and existing tests. Draw the layers, then talk about data and failure diagnosis. Candidates who jump to a tool list skip the part that decides whether the framework survives. See how to become an SDET.

Open remote QA roles

  1. Quality Engineer (Automation JS/TS) - Software IndustryTruelogic Software · Remote
  2. QA Automation Engineer with AEM - RemoteRootshell Enterprise Technologies, Inc. · Remote
  3. Senior QA Automation Engineer - Real EstateTruelogic Software · Remote
  4. QA Automation EngineerSardine · Remote
  5. Test Automation Engineer - SeniorGdit · Any Location / Remote

More guides