Test automation

Self-healing test automation: why suites break after every release, and how automated repair fixes it

Writing a regression script is a one-time cost. Keeping it working is a recurring one — and in banking and insurance, it is usually the bigger one.

The hidden cost of test automation

A bank's regression suite can run to several thousand scripts across dozens of products. Every application release moves fields, adds mandatory sections and inserts new steps. Each of those changes breaks scripts, and each broken script needs a person to open it, work out what changed and fix it by hand.

Over time the maintenance outgrows the team. The suite runs less often, failures get waved through as "known issues", and eventually the automation is abandoned — not because it stopped being valuable, but because nobody can keep up with it.

Why most "self-healing" stops short

Most self-healing tools fix one kind of break: an element that moved or was renamed. If a button's identifier changes, the tool finds the button another way and carries on. That helps, but it is not what usually breaks a banking or insurance journey.

In BFSI applications, a release more often changes the journey itself:

  • a new mandatory section appears on a form;
  • a field gains a validation rule, such as a minimum value;
  • a second dropdown now depends on the first;
  • an optional control now reveals more mandatory fields;
  • a whole new page is inserted in the middle of the journey.

A locator fix cannot help with any of these. The script needs new steps, not just new addresses for old ones.

How automated repair works in NewAgeIT Platform

  1. It looks at the application as it stands now. The failed script is examined against the live application, not guessed from the error message.
  2. It produces a corrected script. It fills fields it has never seen, respects validation rules, handles dependent dropdowns and leaves optional elements alone rather than creating extra work.
  3. It re-runs the corrected script. A repair is only reported as successful if the corrected script has actually passed.
  4. A person approves it. The repair is offered for review. Nothing changes in your suite until someone accepts it.

Repair can run on a single test case, a whole pack, or everything that failed in last night's run. In controlled tests against an application deliberately changed in each of the five ways listed above — including an entire extra page — the platform produced a working script every time, confirmed by re-running it.

Repairs that respect shared steps

A banking journey often walks twenty or thirty pages, and most of its variations reuse most of those pages. NewAgeIT Platform builds journeys from reusable page steps, so a repair is made in the page step that actually needs it, and the journey keeps its shape.

When a page refuses to move forward because it has gained a required field, the failure shows up on the next page. The platform looks past that and fixes the page that needs it. If a fix would change other scripts that use the same step, each of them is named and a separate confirmation is required.

One change, the whole suite

Some changes touch everything: a renamed menu, a new login step, a different test environment. The safe way to handle them is to prove the change on one script against the live application, then apply that proven change across the suite — with a preview first, an audit record afterwards, and the option to undo.

Fixing scripts before they break

Preventive maintenance is also available. A script can be checked against the live application and its fragile element references replaced with stable ones before they fail.

What automated repair will not do

Automated repair fixes what it can see on the screen. Failures with another cause — test data that no longer exists, a permission the test user lacks, or a genuine defect — are reported with the reason instead of being "repaired". That is exactly the list a tester should be looking at.

Beyond web and mobile

Repair works across the systems banks and insurers depend on: web portals, Android apps, Salesforce, and core systems on Oracle Forms and IBM i green screens — including Finacle, Flexcube, LifeAsia and Ingenium.

What this means for your team

The cost of automation moves from rewriting scripts to reviewing and approving fixes. Teams keep their regression suites running release after release, instead of rebuilding them every few months.

See NewAgeIT Platform on your own application

A 30-minute call with our team. We usually start with a short proof of concept on a few of your journeys.

Salesforce, Oracle, Oracle Forms, FLEXCUBE, Finacle, LifeAsia and Ingenium are trademarks of their respective owners. NewAgeIT is an independent testing company and is not affiliated with or endorsed by these vendors.