AI Test Script Migration with Iterative Validation Feedback

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing test automation frameworks are often incompatible, requiring significant manual recoding efforts when organizations need to switch from one framework to another, hindering the adoption of better-suited frameworks.

Innovation Solution

An AI model is used to iteratively convert test automation scripts from a first framework to a second framework, generating and refining converted scripts that meet the criteria of the target framework through multiple rounds of validation and re-engineering prompts.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If test automation scripts are manually recoded to migrate between incompatible frameworks, then compatibility with the new framework is achieved, but significant manual coding time and effort are consumed

Engineering Contradiction:
Improveframework compatibilityVSAvoidmanual coding time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

An AI model serves as an intermediary between the source framework scripts and the target framework requirements. The AI model receives the original scripts, analyzes them, and generates converted scripts that are compatible with the new framework, eliminating the need for manual recoding while ensuring framework compatibility.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The manual mechanical process of recoding scripts is replaced with an automated AI-based conversion system. The AI model performs the script conversion task that would otherwise require human developers to manually rewrite code, significantly reducing the time and effort required for framework migration.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Productivity

If AI model converts scripts automatically, then manual coding time is reduced, but the converted scripts may not meet verification criteria and require re-engineering

Engineering Contradiction:
Improvescript conversion speedVSAvoidscript validation accuracy
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The system implements a feedback loop where converted scripts are automatically validated against verification criteria. When validation fails, the AI model receives feedback about the deficiencies and generates revised scripts that address the identified issues, iterating until the scripts meet the required standards.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

Verification criteria are established beforehand before the conversion process begins. This allows the AI model to target its conversion efforts toward meeting specific requirements from the outset, and enables automated validation to check whether the converted scripts satisfy these pre-defined criteria.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If multiple validation and re-engineering iterations are performed, then script quality and compatibility are improved, but processing time increases

Engineering Contradiction:
Improvescript qualityVSAvoidconversion process duration
Core Design Contradiction:
ReliabilityVSDuration of action of moving object

Solution Approach 1:

The system performs validation checks selectively based on the verification criteria, focusing on the most critical aspects of script quality. The iterative re-engineering process is triggered only when necessary based on validation failures, avoiding unnecessary iterations that would extend processing time without adding value.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS20260023673A1Artificial intelligence-based software test code migration refinement
Publication Date: 2026.01.22 THE TORONTO DOMINION BANK
  • US20260023673A1 patent drawing
  • US20260023673A1 patent drawing
  • US20260023673A1 patent drawing

AI summary

An example operation may include one or more of storing verification criteria associated with at least one of a first automation framework and a second automation framework in a memory device, converting a script associated with the first automation framework into a converted script associated with the second automation framework based on execution of a first artificial intelligence (AI) model on a prompt and the script, performing a comparison of the converted script to the verification, determining that the converted script is not valid based on the comparison of the converted script to the verification criteria, generating an additional prompt with instructions to re-engineer the converted script based on execution of a second AI model on the prompt and the converted script, and generating an updated converted script based on execution of the first AI model on the additional prompt and the script.