Automated Script Reclassification for Test Execution Failure Recovery

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Automated application testing scripts often fail due to misclassification of user actions as irrelevant, leading to execution failures, especially with complex user interactions like mouse movements and dropdown menus, where essential actions are omitted, causing scripts to fail without human intervention.

Innovation Solution

An automated system reclassifies recorded user actions by iteratively re-evaluating previously classified irrelevant actions and revising the script to ensure successful execution, starting from the failed action and attempting previous omitted actions until the script executes correctly, with user confirmation for final script approval.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If the script generation application automatically selects recorded actions based on initial classification criteria, then the script generation process is efficient and automated, but essential actions may be misclassified as irrelevant and omitted, causing script execution failures

Engineering Contradiction:
Improveautomation of script generationVSAvoidscript execution success
Core Design Contradiction:
Extent of automationVSReliability

Solution Approach 1:

The system implements feedback by detecting script execution failures and automatically reclassifying previously omitted recorded actions. When a script execution fails, the system identifies the failure point and re-evaluates the classification of actions that were previously marked as irrelevant, using this feedback loop to improve script reliability while maintaining automation.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs preliminary classification of recorded actions before script generation, but also prepares for reclassification by maintaining access to the full set of recorded actions. This preliminary action enables quick reclassification when failures occur, resolving the contradiction between automation efficiency and execution reliability.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If the system includes all recorded actions in the script, then script execution reliability improves, but the device complexity and processing overhead increase

Engineering Contradiction:
Improvescript execution successVSAvoidscript structure complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system applies partial action by initially including only classified relevant actions in the script. When execution fails, it selectively adds back specific previously omitted actions that are likely to be relevant, rather than including all recorded actions. This approach improves reliability while minimizing the increase in script complexity.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The script composition is made dynamic, allowing the system to adjust the included actions based on execution feedback. The script structure evolves from a static initial classification to a dynamic composition that adapts by selectively incorporating previously omitted actions when needed, balancing reliability and complexity.

Inventive Principle:
Principle #15Dynamics

3Measurement precision

If manual review and adjustment of recorded actions is performed, then classification accuracy improves, but the time and human resources required increase significantly

Engineering Contradiction:
Improveaction classification accuracyVSAvoidscript revision time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs self-service by automatically detecting script execution failures and initiating the reclassification process without human intervention. The system autonomously identifies failed actions, re-evaluates previously omitted recorded actions, and generates revised scripts, eliminating the need for manual review while maintaining high classification accuracy.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The automated feedback mechanism replaces manual review by using script execution results to trigger intelligent reclassification. This feedback-driven approach achieves high classification accuracy automatically, resolving the contradiction between precision and time consumption.

Inventive Principle:
Principle #23Feedback

4Productivity

If the system reclassifies and revises scripts automatically upon failure, then productivity and automation extent improve, but the complexity of the script generation system increases

Engineering Contradiction:
Improvescript revision efficiencyVSAvoidsystem architecture complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system extracts the reclassification logic as a separate, modular component that activates only when script execution fails. This extraction isolates the complexity into a dedicated failure-handling module, improving productivity through automation while managing system complexity through modular design.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The script generation and revision process is segmented into distinct phases: initial classification, script generation, execution monitoring, failure detection, and reclassification. This segmentation allows the system to automate the overall process while managing complexity through clear separation of concerns.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS9223647B2Automatic classification adjustment of recorded actions for automation script
Publication Date: 2015.12.29 MICRO FOCUS LLC
  • US9223647B2 patent drawing
  • US9223647B2 patent drawing
  • US9223647B2 patent drawing

AI summary

A method for automatic revision of an automation script includes obtaining a sequence of at least one classified recorded action and an automation script, the automation script including a sub-sequence of the sequence of classified recorded actions, wherein each action is included in the automation script in accordance with the classification of that action. At least a portion of the automation script is executed. Upon failure of an action of the portion of the automation script to execute, an action of the sequence of classified recorded actions is reclassified, it is verified if the action that failed to execute executes successfully after the reclassifying, and the automation script is revised. Relating computer program product and data processing system are also disclosed.