Pull Request Change Mapping for Automated Test Case Selection
Find Innovative SolutionsGenerate 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
Engineering 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
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
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
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
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
3Adaptability or versatility
If manual selection of test cases is used, then testers can ensure comprehensive coverage, but it lacks scalability and consistency
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
Data Source
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.


