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 tariff change requires regression testing of thousands of parameter combinations (driver age, region, claims history, discounts).
- Approach
- We automate premium calculation at the API level, driving the tests with data from tariff tables: for each change we generate a set of combinations using pairwise testing and compare the result with an independent oracle calculator built with actuaries.
- Goal
- Full regression time: from days to hours, target ≤ 8 h; Share of automated regression cases: ≥ 70% of critical paths.
Client context
The insurance market in Poland is shifting sales to digital channels and bancassurance, which requires integration with partners and consistent customer service across many channels. A property and casualty insurer with a policy system handling motor, home and business insurance, sold through agents, multi-agencies and an online channel.
Challenge
Every tariff change requires regression testing of thousands of parameter combinations (driver age, region, claims history, discounts). Manual tests cover only a sample, and premium errors surface only in complaints and on comparison sites.
Requirements and constraints
- The IDD directive and the Polish act on insurance distribution regulate needs assessment, delivery of documents (KID/IPID) and management of conflicts of interest in distribution. A digital sales path must leave a trail that can be reconstructed when a complaint is filed. (source)
- Solvency II and the KNF (Polish Financial Supervision Authority) guidelines for insurance undertakings require data quality for calculating reserves and capital, documented data lineage and control over models. The data warehouse and reporting must pass validation by the actuarial function. (source)
- GDPR, Regulation (EU) 2016/679, requires data minimization, a legal basis for processing and data processing agreements, and, for high-risk processing, a data protection impact assessment (DPIA). In practice it rules out copying production data to test environments without anonymization or pseudonymization. (source)
- DORA, Regulation (EU) 2022/2554, requires ICT risk management, a register of contracts with ICT providers, classification and reporting of major incidents, and regular testing of operational resilience. For the project this means every new component needs an owner, a dependency map and a resilience test scenario, and the provider (including us) is entered in the register of information on contracts. (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
Instead of automating everything in manual regression, we select cases with a simple calculation: frequency of execution, feature stability, maintenance cost and risk. Tests are data independent (each one prepares and cleans up its own data), carry tags that let you run smoke, regression and nightly suites, and flaky tests go into quarantine instead of blocking releases.
We automate premium calculation at the API level, driving the tests with data from tariff tables: for each change we generate a set of combinations using pairwise testing and compare the result with an independent oracle calculator built with actuaries. We limit agent interface tests to a few critical policy issuing paths.
Key elements of the solution:
- Data-driven API tests of the premium calculator
- A pairwise combination generator with risk weights
- Test oracle: an independent Python implementation of the tariff approved by actuaries
- A report of differences per tariff parameter
Team and roles
| Role | Count | Responsibility |
|---|---|---|
| QA lead | 1 | organizing testers' work, test case reviews, defect metrics |
| Test automation engineer | 3 | framework, scripts, CI integration |
| Test analyst (ISTQB) | 1 | designing and executing test cases, reporting defects |
| Business analyst | 1 | requirements, processes, acceptance criteria |
| Product owner and domain experts (client side) | as needed | priorities, business decisions, acceptance |
Phased schedule
| Phase | Weeks | Deliverable |
|---|---|---|
| 1. Regression audit and candidate selection | 1–3 | automation map, cost-benefit calculation |
| 2. Framework build and CI integration | 4–8 | framework, pipeline, test code standard |
| 3. Automation of critical paths | 9–16 | smoke and regression suites |
| 4. Stabilization and reporting | 17–21 | quality dashboard, quarantine of flaky tests |
| 5. Handover and team training | 22–24 | documentation, workshops, maintenance plan |
Technology stack
Python, pytest, PICT, REST Assured, Playwright, Jenkins, Allure.
Risks and how we mitigate them
| Risk | How we mitigate it |
|---|---|
| Undocumented behavior of the old system | characterization tests (golden master) before the change, comparison of old and new results |
| Flaky automated tests | test quarantine, root cause analysis, stable selectors and independent data |
| No test data free of personal data | a synthetic data generator and masking that preserves referential integrity; a ban on copying production to test |
| Diverging stakeholder expectations | stakeholder map, a shared definition of success, a monthly steering committee |
Measurable goals and KPIs
The values below are goals that we set with the client after a baseline measurement in the first phase.
| KPI | Target | How it is measured |
|---|---|---|
| Full regression time | from days to hours, target ≤ 8 h | suite execution time in CI |
| Share of automated regression cases | ≥ 70% of critical paths | test repository |
| Critical defects found after release | 0 critical defects in the first 30 days | production incident register |
Lessons learned and good practices
An independent test oracle built with actuaries catches errors that a comparison of the old version with the new one will not notice. Pairwise testing lets you sensibly cover a space of combinations that cannot be tested in full. Automation pays off when it runs on every change, not once before a release.
Why B2B.net
We combine two models: we provide individual specialists and whole teams (time and materials, team leasing), and when a client prefers to hand over responsibility for the result, we work at a fixed price for a defined scope. We have access to a large network of engineers in six cities, SAP Center of Expertise competencies, and experience with ISO 27001, DORA and NIS2 requirements. If someone leaves the team, a replacement is in place within 5 business days.
Next step
If you recognize these problems in your own organization, let's start with a short diagnosis: one workshop with your team and a written recommendation. Write to office@b2bnetwork.pl.
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 talkB2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.