Web Script Correction via Database Schema Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Web application testing is inefficient due to frequent updates causing existing scripts to become invalid, with 70%-80% of script failures attributed to invalid data correlation, requiring time-consuming re-recording and rewriting of scripts.

Innovation Solution

A method and apparatus that determine an invalid reference in a script, use a data relationship mapping to identify the corresponding storage location in a database, and query the up-to-date value to correct the invalid reference, allowing the script to run correctly without re-recording.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If web application scripts are updated frequently to adapt to changing requirements, then adaptability is improved, but script validity deteriorates causing 70%-80% of scripts to become invalid

Engineering Contradiction:
Improvescript adaptabilityVSAvoidscript validity
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system automatically detects invalid references in scripts by comparing script references against current database schema, providing feedback about which references are invalid. This feedback mechanism allows the system to identify and correct invalid scripts without manual intervention, resolving the contradiction between frequent updates and script validity.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The script correction system operates autonomously by automatically querying the database schema, identifying invalid references, and correcting scripts without requiring manual re-recording or rewriting. This self-service approach maintains script validity even as applications are frequently updated.

Inventive Principle:
Principle #25Self-service

2Reliability

If invalid scripts are manually re-recorded and rewritten to correct data correlations, then script validity is improved, but time consumption increases

Engineering Contradiction:
Improvescript validityVSAvoidscript correction time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system automatically corrects invalid scripts by querying the database schema and identifying the correct data correlations without requiring manual re-recording or rewriting. This self-service correction process eliminates the time-consuming manual intervention while maintaining script validity.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The manual mechanical process of re-recording and rewriting scripts is replaced by an automated system that uses database schema querying and reference validation to correct scripts automatically, significantly reducing the time required for script correction.

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

3Measurement precision

If comprehensive data correlation validation is performed on all scripts, then measurement precision is improved, but system complexity increases

Engineering Contradiction:
Improvedata correlation accuracyVSAvoidtesting system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system extracts only the necessary data correlation information from the database schema that is relevant to validating script references. By extracting only the needed information rather than performing comprehensive validation on all possible data correlations, the system maintains high measurement precision while avoiding excessive system complexity.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS10713237B2Automatically correcting invalid scripts in web applications
Publication Date: 2020.07.14 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US10713237B2 patent drawing
  • US10713237B2 patent drawing
  • US10713237B2 patent drawing

AI summary

According to an aspect, a method for correcting an invalid script in a web application includes determining an invalid reference in an invalid script. A storage location is determined in a database corresponding to the invalid reference based on a data relationship mapping, wherein the data relationship mapping indicates the correspondence between the reference and a storage location in the database. An up-to-date value at the storage location is queried and he queried up-to-date value is determined to be the correct value of the invalid reference.