Automated Test Script Generation Using UC-API Templates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Generating test scripts for automated product testing is a time-consuming and resource-intensive process that requires expertise in both the target product and test automation frameworks, making it difficult to find individuals with the necessary skills to design and implement effective test cases.

Innovation Solution

A computer-implemented method and system for automatically generating test scripts using a graphical user interface (GUI) that allows users to create a test case flow with sequential and parallel execution of nodes and sub-nodes, utilizing use-case-based application programming interfaces (UC-APIs) without requiring programming knowledge, and generating a test array that can be executed by a test automation framework.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If test scripts are manually developed by experts with dual expertise in target product and test automation, then test case quality and reliability are improved, but the time and resource cost increases significantly

Engineering Contradiction:
Improvetest case qualityVSAvoidscript development time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the test script generation process into distinct components: test case flow definition, template selection, parameter mapping, and script generation. This segmentation allows automated processing of each component while maintaining overall test quality through structured validation at each stage.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary automated generation system that bridges the gap between simple test case definitions and complex executable scripts. This intermediary layer uses templates and algorithms to transform high-level test specifications into detailed test scripts without requiring manual expert intervention for each script.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If manual test script development is used, then complex test logic can be implemented, but the process becomes resource intensive and difficult to scale

Engineering Contradiction:
Improvecomplex test logic capabilityVSAvoidresource requirements
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent uses template copying where pre-defined test script templates are replicated and customized for different test cases. This allows complex test logic patterns to be reused across multiple test cases by copying and parameterizing templates, reducing the need to manually develop each script from scratch while maintaining complexity capability.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent employs parameter changes to adapt templates to different test scenarios. By modifying parameters such as test objects, expected results, and execution conditions within a standardized template structure, the system can handle complex varied test logic without increasing overall system complexity or resource requirements.

Inventive Principle:
Principle #35Parameter changes

3Productivity

If automated test generation is implemented, then development time is reduced, but the initial system complexity increases

Engineering Contradiction:
Improvetest execution speedVSAvoidautomation framework complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements universal templates that can serve multiple test case types and scenarios. These multi-functional templates reduce the need for numerous specialized scripts and simplify the automation framework by providing a unified approach to test generation across different test domains, thereby reducing initial system complexity while maintaining high productivity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS9021440B1System and method for automated test script generation
Publication Date: 2015.04.28 MICROSEMI SOLUTIONS US INC
  • US9021440B1 patent drawing
  • US9021440B1 patent drawing
  • US9021440B1 patent drawing

AI summary

A system and method for automatically generating a test script includes receiving a test case flow that includes steps, nodes, and sub-nodes, wherein each sub-node is associated with a use-case based application programming interface (UC-API), for each sub-node of the test case flow retrieving a template array corresponding to the UC-API associated with the sub-node, generating a test array wherein for each node in a step, generating a node array wherein the elements of each node array includes the sub-node arrays associated with the sub-nodes of the node, for each step, generating a step array wherein the elements of each step array include references to the node arrays of the nodes in the step, and populating the test array wherein each element of the test array includes one of the step arrays.