Test Case Generation Using Prime Number Deterministic Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Generating test cases that achieve statistically even coverage of the test area for software with a large number of input parameters is challenging, as existing methods often fail to cover all possible input parameter combinations effectively.

Innovation Solution

A system and method for automatically generating test cases using a test case number generator that deterministically assigns parameter values to each independent parameter based on a prime number and array cardinality, ensuring that all parts of the test area are touched, including the use of a parameter value generator to create test cases that can be rerun by knowing the test case number.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If automatic test case generation is used, then test case generation efficiency is improved, but achieving statistically even coverage of the test area becomes difficult

Engineering Contradiction:
Improvetest case generation efficiencyVSAvoidcoverage uniformity
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The patent pre-divides the test area into multiple sub-regions before test case generation. By establishing these sub-regions in advance and assigning specific parameters to cover each sub-region, the system ensures that test cases are generated with predetermined coverage requirements, achieving statistically even coverage while maintaining automatic generation efficiency

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent segments the large test area into multiple smaller sub-regions, each covering specific parameter combinations. This segmentation allows the system to manage coverage requirements for each sub-region independently, ensuring comprehensive and uniform coverage across the entire test area while enabling efficient automatic test case generation

Inventive Principle:
Principle #1Segmentation

2Manufacturing precision

If manual test case definition is used, then coverage control is improved, but test case generation time increases

Engineering Contradiction:
Improvecoverage controlVSAvoidtest case generation time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent pre-defines sub-regions and their coverage requirements before automatic test case generation. This preliminary setup establishes the coverage control framework in advance, allowing the automatic generation process to follow predetermined guidelines, thus maintaining precise coverage control while significantly reducing the time required compared to fully manual test case definition

Inventive Principle:
Principle #10Preliminary action

3Reliability

If all possible input parameter combinations are tested, then test coverage is improved, but the number of test cases becomes unmanageably large

Engineering Contradiction:
Improvetest coverageVSAvoidnumber of test cases
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent divides the exponential test area into multiple manageable sub-regions, each covering specific parameter combinations. By generating test cases for each sub-region separately and systematically, the system achieves comprehensive coverage of all possible input parameter combinations while keeping the number of test cases in each sub-region manageable and organized

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a new dimension of organization by dividing the test area into sub-regions. This dimensional change transforms the overwhelming single large test area into multiple smaller, structured sub-regions, making it feasible to manage and execute tests systematically while maintaining complete coverage

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS7865780B2Method for test case generation
Publication Date: 2011.01.04 SAP SE
  • US7865780B2 patent drawing
  • US7865780B2 patent drawing
  • US7865780B2 patent drawing

AI summary

A system and method for providing randomly-generated test cases for a set of interfaces of a piece of software are disclosed. A test case generator is initialized with parameter arrays Sp with cardinality mp and a prime number qp. For each independent parameter p of each of the set of interfaces, a test case number t is generated. A test case is then generated based on the values for each independent parameter p and based on t and Sp, mp, and qp.