Back to case studies

Building

Full AI-run testing ahead of user acceptance testing, and an isolated test environment

AI ran every acceptance test case first and fixed the defects found, and we set up an isolated test environment.

Client
Consulting company
Period
About 1 month
Service
Building
01

Background and challenges

Background

Business systems built in-house for the client were about to enter user acceptance testing. Acceptance testing is where users confirm that a system fits their own work. The starting point was that we did not want them spending that time on basic defects.

The other issue was the test environment. Verification had previously used the production database, with the risk of deleting users' data. Before running tests exhaustively, there first had to be a place where it was safe to try things.

02

Scope of our support

Scope

We had AI run every case in the acceptance test scripts before the users did, and we fixed the defects that were found. We also built a test environment separated from production and set up checks to confirm that nothing in it connects to production.

03

How we worked

Approach

  1. 1

    Build a test environment separated from production

    We built a test environment made up of several services, separated from production. Its connection targets are checked mechanically from six angles to confirm that it cannot connect to production by mistake.

  2. 2

    Have AI operate the system as the scripts say

    AI operated the browser exactly as the acceptance test scripts describe and ran every case first. Because it follows the same steps as the users, it finds the defects the users would otherwise have run into. The result of each case was recorded as passed, fixed or requiring a decision.

  3. 3

    Write a reproduction test before fixing

    For each defect, a reproduction test was written first and confirmed to fail before the fix was made. This prevents a defect from being treated as fixed when it is not. The fix is confirmed when the same test then passes.

  4. 4

    Bring the test scripts into line with the implementation

    As the AI followed the scripts, mismatches between the wording of the scripts and the implementation also came to light. The scripts were corrected in many places.

04

How AI agents were used

AI agents

In this engagement, AI agents carried out the testing work itself. The AI operated the browser automatically, ran every case and went on to fix the defects. People were responsible for designing the procedure and the environment, and for confirming points that required a business judgement.

05

Deliverables

Deliverables

  • Pre-test results (Excel)
  • Procedure for AI pre-testing and defect fixing
  • Test environment separated from production
  • Connection-target checks (six angles)
  • Acceptance test scripts corrected to match the implementation
Pre-test results
DeliverablePre-test results
Procedure for AI pre-testing and defect fixing
DeliverableProcedure for AI pre-testing and defect fixing
06

Results

Results

The defects found were fixed before acceptance testing. Users can begin acceptance testing by checking whether the system fits their work, not by reporting basic defects.

The wording of the acceptance test scripts was also corrected in many places to match the implementation. With a test environment separated from production, verification can now be done without the risk of deleting users' data.

Contact

Facing something similar?

Tell us how the work runs today. From framing the issues to deciding where AI agents should start, the first consultation is free.