Skip to content

    Testing guides

    How we test, in the open

    The strategies, tools and practices behind every Quality Zone engagement, with code you can reuse in your own project.

    Testing strategies

    Four approaches we combine depending on your app, your release pace and what is at stake.

    • Risk-based testing

      Test the parts that would hurt most if they broke, first.

      We map your critical user journeys, business impact and technical complexity, then spend the testing time where a failure costs the most.

    • Shift-left testing

      Start testing before the code is finished.

      Reviewing requirements and designs for testability catches gaps early, when they are cheapest to fix.

    • Continuous testing

      Automated checks on every change.

      Tests run in your CI/CD pipeline on each commit, so regressions show up minutes after they are introduced.

    • Exploratory testing

      Learning the app, designing tests and running them at the same time.

      Structured sessions that find the edge cases and usability problems scripted automation misses.

    Tools and frameworks

    We pick tools that fit your stack and your team, so you can keep running the tests after we hand them over.

    Web and mobile automation

    Playwright
    Fast, reliable end-to-end testing across Chromium, Firefox and WebKit
    Cypress
    Developer-friendly testing for modern web applications
    Selenium WebDriver
    Cross-browser testing in Java, Python or C#
    Appium
    Automation for native and hybrid iOS and Android apps

    API testing

    Postman and Newman
    API collections that also run in CI/CD
    REST Assured
    Java REST API testing with a readable, BDD-style syntax
    Karate
    API tests, mocks and performance checks in one tool

    Performance testing

    k6
    Load tests written in JavaScript
    Apache JMeter
    Load testing for web applications and APIs
    Artillery
    Load and smoke testing for HTTP, WebSocket and more

    CI/CD

    GitHub Actions
    Test runs on every push and pull request
    GitLab CI
    Pipelines with parallel test jobs and reports
    Jenkins
    Test stages in self-hosted build pipelines

    Code examples

    Short, realistic samples of the test code we write and hand over.

    Playwright end-to-end test

    A sign-in test using accessible locators and web-first assertions.

    TypeScript
    import { test, expect } from '@playwright/test';
    
    test.describe('Sign in', () => {
      test('signs in with valid credentials', async ({ page }) => {
        await page.goto('/login');
    
        await page.getByLabel('Email').fill('user@example.com');
        await page.getByLabel('Password').fill(process.env.TEST_PASSWORD!);
        await page.getByRole('button', { name: 'Sign in' }).click();
    
        await expect(page).toHaveURL(/dashboard/);
        await expect(page.getByRole('heading', { name: 'Welcome back' })).toBeVisible();
      });
    
      test('shows an error for a wrong password', async ({ page }) => {
        await page.goto('/login');
    
        await page.getByLabel('Email').fill('user@example.com');
        await page.getByLabel('Password').fill('wrong-password');
        await page.getByRole('button', { name: 'Sign in' }).click();
    
        await expect(page.getByRole('alert')).toHaveText(/incorrect email or password/i);
      });
    });

    Selenium page object

    Keeps locators in one place so tests read like user actions.

    Java
    public class LoginPage {
        private final WebDriver driver;
    
        @FindBy(id = "email")
        private WebElement emailField;
    
        @FindBy(id = "password")
        private WebElement passwordField;
    
        @FindBy(css = "button[type='submit']")
        private WebElement signInButton;
    
        public LoginPage(WebDriver driver) {
            this.driver = driver;
            PageFactory.initElements(driver, this);
        }
    
        public void signIn(String email, String password) {
            emailField.sendKeys(email);
            passwordField.sendKeys(password);
            signInButton.click();
        }
    
        public boolean isSignedIn() {
            return driver.getCurrentUrl().contains("/dashboard");
        }
    }

    GitHub Actions pipeline

    Unit tests first, then end-to-end tests, with the report kept when something fails.

    YAML
    name: QA pipeline
    
    on:
      push:
        branches: [main]
      pull_request:
    
    jobs:
      unit:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-node@v4
            with:
              node-version: 22
              cache: npm
          - run: npm ci
          - run: npm run test:unit
    
      e2e:
        runs-on: ubuntu-latest
        needs: unit
        steps:
          - uses: actions/checkout@v4
          - uses: actions/setup-node@v4
            with:
              node-version: 22
              cache: npm
          - run: npm ci
          - run: npx playwright install --with-deps
          - run: npx playwright test
          - uses: actions/upload-artifact@v4
            if: failure()
            with:
              name: playwright-report
              path: playwright-report/

    Best practices

    Checklists we follow on every project to keep results consistent.

    Test design

    • Name tests after the behavior they check
    • Arrange, act, assert: one clear purpose per test
    • Keep tests independent so they can run in any order
    • Use data-driven tests to cover input variations
    • Create and clean up test data as part of the test

    Automation

    • Automate the journeys that matter most first
    • Prefer roles, labels and test IDs over brittle CSS or XPath
    • Wait for conditions, never for fixed amounts of time
    • Share setup through fixtures and helpers
    • Review test code with the same care as product code

    CI/CD

    • Run tests in parallel to keep feedback fast
    • Publish reports and alert the right people on failure
    • Use containers for consistent test environments
    • Quarantine flaky tests and fix them, don't ignore them
    • Block merges when critical tests fail

    Working with the team

    • Join planning and estimate the testing effort
    • Review user stories for testability
    • Talk to developers early and often
    • Keep test documentation up to date
    • Share quality trends, not just bug counts

    Want this applied to your app?

    Tell us what you're building and we'll suggest what to test first, with a fixed price before any work starts.