Pull Request Change Mapping for Automated Test Case Selection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The manual selection of test cases in software development is labor-intensive, lacks scalability, and often overlooks key scenarios, leading to inefficiencies and increased costs.

Innovation Solution

A method and device that automatically select test cases by generating change representations from pull requests, including file names, function names, and code lines, and matching them with a test case library to facilitate efficient and accurate testing.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If manual selection of test cases is used, then test case selection can be done with human judgment, but it is labor-intensive and lacks scalability

Engineering Contradiction:
Improvetest case selection operationVSAvoidtesting efficiency
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The patent replaces manual mechanical selection processes with an automated computer-based system that uses pull request data and change representations to automatically select test cases, eliminating the need for human labor in test case selection while maintaining accuracy through structured data matching

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

Solution Approach 2:

The system enables self-service by automatically generating change representations from pull requests and autonomously selecting appropriate test cases without requiring human intervention, allowing the testing system to serve itself and improve productivity

Inventive Principle:
Principle #25Self-service

2Reliability

If manual selection of test cases is used, then testers can review and verify test cases, but it increases labor costs and development cycle time

Engineering Contradiction:
Improvetest case qualityVSAvoiddevelopment cycle time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-generating change representations from pull request data before the actual test case selection process, enabling automated matching and selection that reduces overall development cycle time while maintaining test quality through structured representation comparison

Inventive Principle:
Principle #10Preliminary action

3Adaptability or versatility

If manual selection of test cases is used, then testers can ensure comprehensive coverage, but it lacks scalability and consistency

Engineering Contradiction:
Improvetest case coverageVSAvoidtesting system complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent changes the parameters of test case selection by transforming manual qualitative selection into automated quantitative matching based on change representations, enabling consistent and scalable selection across different projects while maintaining comprehensive coverage through systematic data comparison

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250335340A1Method, device, and computer program product for selecting test cases
Publication Date: 2025.10.30 DELL PROD LP
  • US20250335340A1 patent drawing
  • US20250335340A1 patent drawing
  • US20250335340A1 patent drawing

AI summary

A method includes: acquiring a pull request for a code change. The method further includes: generating one or more change representations of the code change based on the pull request of the code change. In addition, the method further includes: selecting one or more test cases for testing the code change from a test case library based on the one or more change representations of the code change. According to the solutions of the embodiments of the present disclosure, a test case for verifying a code change can be automatically selected, thereby improving testing efficiency, accelerating testing speeds, helping to timely discover and solve problems, and shortening the software development cycle, while reducing the workload of manual selection by a tester, lowering labor costs, and avoiding the influence of human factors on test case selection.