Skip to content
All projects

Test automation for a B2B SaaS product in a multi-client pipeline

Project write-up

The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.

In brief

Problem
Every release can break the configuration of one of the clients, and manual tests cover only the default configuration.
Approach
Tests run against a set of representative (anonymized) client configurations, and the pipeline blocks a release when any of them regresses.
Goal
Full regression time: from days to hours, target ≤ 8 h; share of deployments causing an incident (change failure rate): < 15%.

Client context

Technology companies and software houses sell the quality of their own software, so their development processes are their showcase. The growing demands of enterprise clients (audits, SBOMs, security testing) pass down the supply chain. A SaaS vendor for HR departments, with many corporate clients and per-client configuration.

Challenge

Every release can break the configuration of one of the clients, and manual tests cover only the default configuration. Corporate clients require information about testing before an update.

Requirements and constraints

  • GDPR, that is Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, data processing agreements and, for high-risk processing, a data protection impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • ISO/IEC 27001:2022 requires a documented information security management system: risk analysis, a statement of applicability, access control and supplier management. Every element of the project must be traceable to a control in Annex A. (source)
  • The Polish Labor Code and GDPR in HR processes limit the scope of data an employer may process about candidates and employees, and hiring decisions cannot rest solely on automated processing (Article 22 GDPR). (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, every deliverable supplied with documentation that the client's team can take over.

Approach and architecture

We build automation according to the test pyramid: the most tests at the unit and API level, fewer at the interface level, and end-to-end scenarios only for critical business paths. The framework is built as a product (with code reviews, versioning and documentation) and from the first sprint runs in the CI pipeline, so the development team gets feedback in minutes rather than after a week.

Tests run against a set of representative (anonymized) client configurations, and the pipeline blocks a release when any of them regresses. A test report for clients is generated automatically with every release.

Key elements of the solution:

  • A set of representative client configurations
  • API and UI tests across a configuration matrix
  • A release gate in the pipeline
  • An automatic test report for clients

Team and roles

RoleCountResponsibility
QA lead1organizing testers' work, reviewing cases, defect metrics
Test automation engineer3framework, scripts, CI integration
DevOps engineer1CI/CD pipeline, infrastructure as code
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Regression audit and candidate selection1–2automation map, cost-benefit analysis
2. Framework build and CI integration3–6framework, pipeline, test code standard
3. Automation of critical paths7–13smoke and regression suites
4. Stabilization and reporting14–17quality dashboard, quarantine of flaky tests
5. Handover and team training18–20documentation, workshops, maintenance plan

Technology stack

Playwright, TypeScript, Cypress, GitHub Actions, Docker.

Risks and how we mitigate them

RiskHow we mitigate it
Flaky automated teststest quarantine, root cause analysis, stable selectors and independent data
No test data free of personal dataa synthetic data generator and masking that preserves referential integrity; a ban on copying production into tests
Unavailable or unstable test environmentsan environment booking schedule, virtualization of external services (mocks), a daily environment smoke test

Measurable goals and KPIs

The values below are targets that we set with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Full regression timefrom days to hours, target ≤ 8 hsuite execution time in CI
Share of deployments causing an incident (change failure rate)< 15%change and incident register
Share of flaky tests< 2%pipeline report (tests with varying results)

Lessons learned and good practices

In SaaS, testing the configuration matrix matters more than code coverage. An automatic test report builds the trust of corporate clients. A flaky test is worse than no test, because it undermines trust in the whole suite.

Why B2B.net

B2B.net S.A. has operated since 2015 and has worked for over 50 brands, mainly where audit is an everyday reality: in banks, insurance and critical infrastructure. We are an accredited exam center, so a testing methodology is not a claim for us but a working standard. We give a first proposal of specialists within 24 hours, and a team can start within 5 business days.

Acceptance criteria

Each phase ends with a formal acceptance against criteria agreed at the start. In this implementation, acceptance covers: an automation map and cost-benefit analysis; a framework, pipeline and test code standard; smoke and regression suites; a quality dashboard and quarantine of flaky tests; documentation, workshops and a maintenance plan. Final acceptance requires a KPI measurement report against the baseline, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with a cost and risk assessment for each.

Next step

Facing a similar challenge? Write to office@b2bnetwork.pl or call +48 577 317 312. You get a first proposal of specialists or a plan for the first step within 24 hours.

What would this look like for you?

Book a 30-minute call. We will prepare a plan for the first weeks and a team matched to your system.

Let's talk

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: IT