Test Case Generation for Partial Design Models

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional model-based testing methods are ineffective when dealing with software that has a partial or absent design model, as the input/output boundaries of the software code do not match those of the high-level model, making it difficult to achieve comprehensive test coverage.

Innovation Solution

A method and system for automatically generating test cases that align with a partial design model by identifying corresponding variables in the software under test, using a host machine to extract and generate test cases that meet specific coverage criteria, and employing forward/backward propagation or heuristic-based techniques to ensure complete test coverage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If conventional model-based testing methods are used, then test case generation is automated and broad coverage is achieved, but the method becomes ineffective when the software I/O boundary does not match the model I/O boundary

Engineering Contradiction:
Improveautomated test case generationVSAvoidapplicability to partial design models
Core Design Contradiction:
Extent of automationVSAdaptability or versatility

Solution Approach 1:

The patent segments the test case generation process into two distinct phases: (1) generating test cases at the model level using conventional MBT, and (2) mapping these test cases to the software boundary using forward/backward propagation. This segmentation allows each phase to operate independently on its own boundary, resolving the mismatch issue.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary mapping process that acts as a bridge between the model boundary and the software boundary. This intermediary uses forward propagation (from model inputs to software inputs) and backward propagation (from software outputs to model outputs) to translate test cases across different boundaries, enabling conventional MBT to work with partial design models.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of manufacture

If the model boundary matches the software boundary, then conventional MBT can be applied directly, but this requirement limits practical applicability when models are partial or absent

Engineering Contradiction:
Improveease of applying MBTVSAvoidhandling of partial models
Core Design Contradiction:
Ease of manufactureVSAdaptability or versatility

Solution Approach 1:

The patent makes the test case generation process dynamic by allowing the model boundary to differ from the software boundary. The forward/backward propagation mechanism dynamically adjusts the mapping between boundaries based on the specific partial model available, rather than requiring a fixed matching relationship.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent creates a universal test case generation approach that can handle multiple scenarios: complete models, partial models, and even cases where only some portions of software have corresponding models. The mapping mechanism provides multi-functionality by adapting to different model completeness levels.

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

3Measurement precision

If manual generation of test cases is performed, then precise coverage can be achieved, but the time and effort required increases significantly

Engineering Contradiction:
Improvetest coverage precisionVSAvoidtime for test case generation
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent performs preliminary automated test case generation at the model level before mapping to the software boundary. This preliminary action creates a foundation of test cases that can then be systematically mapped, reducing the need for manual generation while maintaining precision through the structured mapping process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The backward propagation mechanism provides feedback from the software output boundary to the model input boundary, allowing the system to automatically refine and adjust test cases to achieve precise coverage. This feedback loop replaces manual adjustment while maintaining precision.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS8683442B2Software test case generation from a partial design model
Publication Date: 2014.03.25 GM GLOBAL TECHNOLOGY OPERATIONS LLC
  • US8683442B2 patent drawing
  • US8683442B2 patent drawing

AI summary

A method allows for testing software under test (SUT) with respect to a partial design model (PDM) having a boundary which differs from a boundary of the SUT. The method includes recording input information including the SUT, the PDM, and coverage criteria defining a required number of the test cases. Variables in the SUT are identified that correspond to boundary signals for the PDM. Test cases are extracted meeting the coverage criteria. The method may include generating additional test cases at the PDM level and mapping the additional cases with corresponding constraint functions to the boundary of the SUT using a forward/backward propagation and/or heuristics guided technique. A system for testing the SUT includes a host machine and memory. The host machine executes process instructions from memory to identify variables in the SUT that correspond to boundary signals for the PDM, and extracts test cases meeting the coverage criteria.