Automated Test Case Generation for Software Source Code

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The increasing complexity and volume of software development projects require more manpower and time for testing, making it inefficient to ensure software functionality without errors or bugs, especially in critical applications like airline flight management and banking systems.

Innovation Solution

A method and system for automatic management of test cases, where a computing device accesses original and updated source code, generates new test cases based on previously-generated ones, compiles, and executes the updated code with these new test cases to streamline the testing process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If manual testing methods are used to ensure software functionality, then testing thoroughness can be maintained, but time consumption and manpower requirements increase significantly

Engineering Contradiction:
Improvesoftware functionality verificationVSAvoidtesting time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system enables self-service testing by automatically generating test cases from source code without requiring manual intervention. The computing device autonomously analyzes the source code, creates appropriate test cases, and executes them, eliminating the need for manual test case creation while maintaining comprehensive testing coverage

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent replaces the mechanical manual process of test case creation with an automated computational system. The computing device uses algorithmic analysis of source code to generate test cases automatically, substituting human manual effort with automated software-based testing mechanisms

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

2Reliability

If comprehensive testing is performed on complex software applications, then software reliability is improved, but the complexity and effort of testing increase

Engineering Contradiction:
Improvesoftware error detectionVSAvoidtesting process complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system changes the parameters of the testing process by automatically generating test cases based on source code analysis. Instead of manually designing test cases, the system transforms source code into automated test scenarios, changing the fundamental parameters of how testing is approached and executed

Inventive Principle:
Principle #35Parameter changes

3Productivity

If automated test case generation is implemented, then testing efficiency is improved, but the initial setup and system complexity increase

Engineering Contradiction:
Improvetesting throughputVSAvoidtest management system complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The computing device performs multiple functions: it analyzes source code, generates test cases, and executes tests. This multi-functional approach consolidates what could be separate complex systems into a single unified platform, improving productivity while managing overall system complexity

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

Data Source

PatentUS20240303184A1Intelligent test case management in computer software applications
Publication Date: 2024.09.12 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20240303184A1 patent drawing
  • US20240303184A1 patent drawing
  • US20240303184A1 patent drawing

AI summary

A computing device for automatic management of test cases for testing of source code associated with computer software applications. The computing device accesses an original corpus of source code. One or more previously-generated test cases associated with the original corpus of source code are accessed. An updated corpus of source code is accessed, the updated corpus of source code an update from the original corpus of source code. The computing device generates automatically one or more new test cases for testing of the updated corpus of source code, the one or more new test cases automatically generated based upon the accessed one or more previously-generated test cases. The updated corpus of source code is compiled. The compiled updated corpus of source code is executed with the one or more new test cases.