Visual Input Test Script Generator for Version-Agnostic Code Validation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for generating test scripts for computer code are resource-intensive and prone to errors, requiring completed code and correlating it with design specifications, leading to incomplete or inaccurate tests that are version-specific, increasing the risk of system crashes and security vulnerabilities.

Innovation Solution

A test script generating tool that uses visual inputs from a computer program specification document to create test scripts before the code is written, employing machine learning techniques, Bayesian analysis, and keyword-based sentimental classification to identify elements and generate accurate test scripts, allowing for flexibility and customization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If test scripts are generated based on completed computer program code, then the test scripts can be created, but the test scripts become version-specific and require additional processing resources for each new version

Engineering Contradiction:
Improvetest script generation speedVSAvoidtest script version compatibility
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent generates test scripts from design specifications before the computer program code is completed. By performing the test script generation action in advance based on the specification document, the system creates version-agnostic test scripts that can be applied to multiple code versions without requiring regeneration for each new version.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If conventional techniques correlate developed code with design specifications to generate test scripts, then accurate tests can be created, but additional computer processing and memory resources are consumed

Engineering Contradiction:
Improvetest script accuracyVSAvoidcomputer processing resources
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent extracts test script generation logic from the code correlation process and bases it solely on design specifications. By separating the test script generation from the actual code, the system eliminates the resource-intensive correlation step while maintaining test accuracy through direct specification-based testing.

Inventive Principle:
Principle #2Taking out (Extraction)

3Reliability

If test scripts are written after code completion, then the tests can cover actual implementation, but errors and inaccuracies from code conversion are introduced into test scripts

Engineering Contradiction:
Improvetest script completenessVSAvoiddesign specification fidelity
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

Instead of converting design specifications to code and then generating tests from code, the patent inverts the process by generating tests directly from design specifications. This eliminates the intermediate conversion step that causes information loss and ensures test scripts faithfully represent the original design requirements.

Inventive Principle:
Principle #13The other way round (Inversion)

4Reliability

If multiple test scripts are run to address code incompleteness and version changes, then comprehensive testing is achieved, but the development-testing cycle slows down

Engineering Contradiction:
Improvetesting thoroughnessVSAvoiddevelopment-testing cycle time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs test script generation as a preliminary action based on design specifications, creating a universal test script before code development begins. This single preliminary test script can be applied across multiple code versions, eliminating the need for repeated test script generation and multiple testing cycles.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10824545B2Computer code test script generating tool using visual inputs
Publication Date: 2020.11.03 BANK OF AMERICA CORP
  • US10824545B2 patent drawing
  • US10824545B2 patent drawing
  • US10824545B2 patent drawing

AI summary

A tool includes an interface, a memory, a conversion engine, an identifier tool, and a script engine. The interface communicatively couples the tool to a server. The tool obtains a plurality of visual inputs from a computer program specification document. The memory stores the plurality of visual inputs and a set of known computer code elements. Each respective element of the set of known computer code elements includes predetermined testing criteria for testing computer code that includes the respective element. The conversion engine generates a plurality of textual objects from the plurality of visual inputs. The identifier determines whether each respective textual object matches a respective element of the set of known computer code elements. If a match is found, the identifier tool associates the predetermined testing criteria of the respective element to the respective textual object. The script engine generates a test script using the predetermined testing criteria.