AI-Driven Automatic Test Script Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Manual creation of test scripts for software applications is a time-consuming and costly process, often leading to insufficient testing and software errors due to resource constraints, especially during peak load conditions.

Innovation Solution

Automated generation of test scripts using a master key file and user logs, where the master key file captures all possible interactions with a software application, and user logs are analyzed to populate missing information and generate HTTP-level or UX-level test scripts, with error correction capabilities.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If manual test script creation is used, then test script accuracy can be maintained, but time consumption and cost increase significantly

Engineering Contradiction:
Improvetest script creation timeVSAvoidmanual involvement in test generation
Core Design Contradiction:
Loss of timeVSExtent of automation

Solution Approach 1:

The system enables self-service test script generation by having the software application itself provide the data needed for test creation through its own execution and communication logs. The master key file is automatically generated from the application's own operational data, eliminating the need for external manual testing resources.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system creates a master key file that copies and stores all possible user interactions with the software application. This master key file serves as a template or copy from which automated test scripts are generated, allowing comprehensive test coverage without manual recreation of each test scenario.

Inventive Principle:
Principle #26Copying

2Reliability

If comprehensive testing is performed to ensure software reliability, then software quality improves, but testing resources and time requirements increase

Engineering Contradiction:
Improvesoftware testing completenessVSAvoidtesting speed and efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system performs preliminary action by capturing and storing all possible user interactions in the master key file before actual testing occurs. This pre-computed master key file contains complete interaction data that can be directly used to generate comprehensive test scripts, eliminating the need for time-consuming manual test creation while ensuring complete coverage.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent replaces manual mechanical test script writing with an automated system that extracts interaction data from the software application's own execution logs. The master key file generator automatically processes communication data between the application and user devices, substituting manual testing operations with automated data extraction and test generation mechanisms.

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

3Productivity

If user logs are used for test generation, then testing efficiency improves, but information completeness may be insufficient

Engineering Contradiction:
Improvetest generation efficiencyVSAvoidmissing header information and complete interaction data
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The system merges user logs with master key file data to create comprehensive test scripts. The master key file complements the user logs by providing complete interaction data, headers, and communication protocols that may be missing from the logs alone, resulting in complete and accurate test scripts that fully represent user interactions.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS10204035B1Systems, methods and devices for AI-driven automatic test generation
Publication Date: 2019.02.12 APPVANCE
  • US10204035B1 patent drawing
  • US10204035B1 patent drawing
  • US10204035B1 patent drawing

AI summary

A test script is generated in an automated fashion based on a master key file (and optionally, additionally based on user logs) in order to test a software application. The master key file may include one or more scripts of every (or nearly every) possible interaction (e.g., request, presentation, executed action, and so on) a user may have with the software application under test. Often times, the master key file captures each and every request that could be made from a client device to the software application under test executing at a server.