Unlock instant, AI-driven research and patent intelligence for your innovation.

Dynamic proportion test case sorting selection method and system based on machine learning

A technology of test cases and dynamic testing, applied in machine learning, software testing/debugging, instruments, etc., can solve problems such as ignoring differences and failing to detect program errors, so as to improve tolerance, pertinence, and tool flexibility sexual effect

Active Publication Date: 2021-11-19
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF20 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, taking the above two representative technologies as examples, the test case ranking selection technology uses the same test ratio for different builds, ignoring the differences between different builds; the build test failure prediction technology has a degree of discrimination for different builds, but its The result of the execution is the dichotomous result
If the machine learning model predicts a false negative result, i.e. misclassifies a test-failing build as a test-successful build, a bug in the program cannot be detected

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dynamic proportion test case sorting selection method and system based on machine learning
  • Dynamic proportion test case sorting selection method and system based on machine learning
  • Dynamic proportion test case sorting selection method and system based on machine learning

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be further described below through specific embodiments and accompanying drawings.

[0050] like figure 1 Shown is a structural diagram of a machine learning-based dynamic proportional test case sorting and selection system. This embodiment is based on the Ubuntu 18.04LTS operating system platform, and performs dynamic proportional test case sorting and selection for programs in continuous integration. The platform uses csv files to store the collected intermediate information. More specifically, it includes the following modules: machine learning model training module, test case information collection module, test case sorting module, dynamic test ratio calculation module and dynamic test selection module, and an experimental analysis module can also be optionally added.

[0051] (1) Since the tool is based on the machine lea...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a dynamic proportion test case sorting selection method and system based on machine learning, and belongs to the technical field of software testing. Historical version execution results of a program to be tested are collected, training samples are made, the training samples of different programs are used for forming a universal training set, and the universal training set is used for training a machine learning model; test case information of the to-be-tested program is collected, priority calculation is performed on the test case information, and a test case sorting list is generated; a test result is predicted by using a machine learning model, and a dynamic test case selection proportion is calculated; and according to the test case sorting list and the dynamic test case selection proportion, selection execution of the test case set is performed in a descending order.

Description

technical field [0001] The invention is based on the test case sorting technology commonly used in machine learning and regression testing, realizes a dynamic proportional test case selection method, and belongs to the technology in the field of software testing. Background technique [0002] With the development of the computer industry, the application of software in life and production is becoming more and more extensive. Software engineering is usually a team effort. The traditional way of practice is that each member of the team completes their own work separately, and then integrates the code. However, in the process of code integration, the codes of different members may conflict with each other, resulting in program errors. To solve this problem, software development teams started using continuous integration methods. Continuous integration encourages every member of the team to submit and integrate code frequently, in order to find possible errors in the code int...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36G06N20/00
CPCG06F11/3684G06N20/00Y02D10/00
Inventor 李梓劼崔炳轶张震宇
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI