Skip to content

Regression testing at an insurer when products change

B2Bnetwork team · · 6 min

IT in insurance

In brief

Regression testing at an insurer checks that a change to a product, tariff or documents has not broken what already worked, above all the servicing of in-force policies on older product versions. The regression suite covers the whole policy lifecycle: quote, issue, endorsement, renewal, claim notification and cancellation, plus tests that shift the system date. What works best is automation at the API level, comparing premiums and documents with golden master results.

What changes in products and what can break

Insurers change products more often than is visible from outside: new tariffs, new clauses and riders, changes to general terms and conditions, new document templates, commission changes for channels, adjustments to regulations. Each such change touches several systems at once.

ChangeWhere it can break
New tariffQuotes in every channel, renewals, premium refund on cancellation
New riderEndorsements to in-force policies, coverage check at claim time, reporting
Change to general termsDocuments, the IPID, versions assigned to policies, partner APIs
New document templatePDF generation, dispatch, archive, documents for old policies
Commission changeSettlements with agents and partners, posting

What breaks most often is not the new functionality but old policies. A rule change for a new product version can unintentionally change how an endorsement behaves on a policy sold three years ago under the previous terms. The customer notices only at the next endorsement or claim, often months after go-live, when it is hard to establish which change introduced the defect.

In-force policies on old versions

An insurer's book contains many versions of the same product at once. A policy sold under terms from two years ago is serviced under those terms until it expires, including at endorsement and claim time. Regression therefore has to cover:

  • every product version with in-force policies, not just the latest;
  • transitions between versions at renewal: the renewed policy gets the new terms and the new tariff, but the discount history stays;
  • mid-term endorsements on old versions, for example changing the sum insured or adding a driver;
  • the coverage check at claim time, which must read the terms as of the contract date.

A practical tool is a matrix: rows are product versions with in-force policies, columns are lifecycle operations. Every cell has at least one automated test. When a version has run off across the whole book, its row can be removed.

Time-based tests and batch jobs

Many insurance events are driven by the passage of time: renewal, an installment reminder, expiry of coverage, an insured person's age moving into another rating band. These events cannot be checked without shifting the system date or the dates in the test data.

A time-based test suite usually covers:

  1. Renewal of a policy with the new tariff and a loyalty discount.
  2. A missed installment and the reminder process up to cancellation.
  3. The premium refund on mid-term cancellation, calculated for the unused days.
  4. A change of calendar year and leap years in period calculations.
  5. Overnight batch jobs, with a check that they processed all policies for the day.

Testing in an environment where you have to control time and batch jobs is also covered in the article on regression testing with weekly releases.

Golden master results and automation

The fastest regression is based on comparison with golden master results. A set of several hundred or several thousand representative policies runs through the system before and after the change, and a tool compares premiums, refunds, documents and the data passed to other systems. Differences split into intended ones, caused by the change, and unintended ones, which are regressions.

A few principles make such a suite easier to maintain:

  • tests at the API level, not the UI, because they are faster and less brittle; the UI is checked with a few end-to-end tests, following the test pyramid;
  • documents compared as data, meaning field content rather than the image of the PDF, so that a font change does not produce hundreds of false differences;
  • synthetic or anonymized test data, as described in the text on test data and GDPR;
  • priority by risk: money and in-force policies first, then documents and reports, as in risk-based testing.

How automated regression was introduced ahead of quarterly tariff changes is described in the project on automating regression for a policy system.

Who builds and maintains the regression suite

A regression suite ages along with the products. Every product change requires not only new tests but also updated golden master results and the removal of tests for versions that have run off. Without an owner, after a year the suite contains tests nobody understands and false differences everyone ignores.

A clear split of roles works well. The business analyst describes the product change and its effect on lifecycle operations. The actuary provides the expected results for the tariff. Testers turn this into automated tests, maintain the data and golden master results, and report differences in the language of risk. Developers run the suite in the CI pipeline on every code and configuration change. How such a team works in a product change program is shown in the project on a team of analysts and testers for a product change program.

Regression and product oversight

Delegated Regulation 2017/2358 under the IDD requires the product manufacturer to test the product appropriately, including scenario analyses where relevant, before bringing it to market or significantly adapting it. That is product testing in the business sense: whether it meets the needs of the target market. Regression testing of systems complements it, because it provides evidence that the product works in the systems as designed.

So it is worth linking the two: for every product change, record which business scenarios were analyzed, which system tests confirm them and what the result was. Such a record helps in the product review and in an audit. How to plan testing is described in the article on test plans and test strategy. Testing techniques and the test process are covered by the ISTQB Foundation Level exam, which you can take at our accredited exam center.

Questions and answers

What does regression cover when an insurance tariff changes?

Quotes in every sales channel, renewals with the new tariff, endorsements and premium refunds on in-force policies, and the data passed to the claims system, the general ledger and reporting. On top of that, a comparison with the actuary's model for the new tariff and a comparison with golden master results for everything the change should not touch.

Why are in-force policies the hardest part of regression?

Because the book contains many versions of the same product, and each policy is serviced under the terms from the day it was sold until it expires. A change made for a new version can unintentionally change the behavior of an old one at endorsement, renewal or claim time. That is why the regression suite covers every product version with in-force policies.

How do you test renewals and other time-driven events?

By shifting the system date in the test environment or using test data with suitably set dates. The tests cover renewal, a missed installment, cancellation with the refund calculation, a change of year and leap years, and overnight batch jobs. The environment must let you run these jobs on demand, without waiting for the schedule.

How much regression testing should be automated?

All repeatable tests that involve money and in-force policies: quotes, endorsements, renewals, refunds. What stays manual is exploratory testing of new features and checking documents whose appearance a person has to judge. The automated suite should run in a time that allows it to be triggered on every change, not once before a big release.

What it looks like in a project

Changing a policy or claims system? Talk to an engineer who knows insurance products.

Let's talk

Read more: IT in insurance