Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Integrated test case minimum set analysis method and system based on thermodynamic diagram and terminal

A technology of test case sets and test cases, which is applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as high complexity in the calculation process, a large number, unfavorable test cases, etc., to achieve strong operability, Good application effect, easy to understand effect

Pending Publication Date: 2022-01-28
NUCLEAR POWER INSTITUTE OF CHINA
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the function coverage of the integration test process does not reach 100%, the specific conditions of the completed test cases cannot be directly known, which is not conducive to the selection of new test cases; The function coverage and superposition are serious, which is not conducive to subsequent regression testing.
In addition, although there is a minimum automated test case set generation method based on the combination of machine learning and genetic algorithms in the prior art, its computational complexity is high and it is difficult to apply it on a large scale

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
  • Integrated test case minimum set analysis method and system based on thermodynamic diagram and terminal
  • Integrated test case minimum set analysis method and system based on thermodynamic diagram and terminal
  • Integrated test case minimum set analysis method and system based on thermodynamic diagram and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Embodiment 1: The minimum set analysis method of integrated test cases based on heat map, such as figure 1 As shown, it is specifically implemented by the following steps.

[0043] Step 1. According to the specific conditions of the program to be tested, the basic test case set of the integration test phase is obtained.

[0044] Assume that the program to be tested includes 5 functions, namely F1-F5; its basic test case set contains 4 test cases, respectively T1-T4.

[0045] Step 2, execute all the test cases in the basic test case set, record the execution time of each test case, the execution times of each function and the execution time of each time, and calculate the total time.

[0046] Set the number of execution times and the total execution time of the test case as figure 2 As shown, the time unit is seconds.

[0047] Step 3, according to the execution times of each test case call function, get the function coverage heat map of the basic test case set; at th...

test Embodiment T5

[0050] From image 3 the function coverage summary plane heatmap for the last column on the right, and Figure 5 In the three-dimensional summary heat diagram of , it can be seen that the heat value of function F5 is 0, indicating that this is a function that has not been covered by the basic test case set; for this reason, we construct a new test case T5, and the execution results of this test case are as follows: Figure 6 Shown in the T5 column; at this time, the plane heat map and summary heat map of the entire test case set are as follows Figure 7 It can be seen from the figure that the test case set including T5 can cover all functions, so T1-T5 constitute a complete test case set.

[0051] Step 5, repeat step 4 until a complete set of test cases that can cover all functions is formed; at this time, in the corresponding function coverage summary heat map, the heat values ​​of all functions are greater than 0.

[0052] Step 6, according to the execution time and covere...

Embodiment 2

[0061] Embodiment 2: An integrated test case minimum set analysis system based on a heat map, such as Figure 9 As shown, it includes basic acquisition module, heat map establishment module, complete acquisition module and minimum set analysis module.

[0062] Among them, the basic acquisition module is used to acquire the basic test case set of the program under test in the integration testing phase. The heat map building module is used to execute multiple test cases in the basic test case set, and build a corresponding function coverage heat map according to the execution information of the function to which the test case calls. The complete acquisition module is used to superimpose the heat values ​​in multiple function coverage heat maps to obtain a total heat map until the total heat map shows that all functions are covered, and complete the test cases corresponding to the function coverage heat maps that participate in the superposition Set of test cases. The minimum s...

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 an integrated test case minimum set analysis method and system based on a thermodynamic diagram and a terminal, and relates to the field of software testing. The key points of the technical scheme comprise obtaining a basic test case set of a program to be tested at an integrated test stage; executing a plurality of test cases in the basic test case set, and establishing a corresponding function coverage thermodynamic diagram; correspondingly superposing the thermodynamic values in the thermodynamic diagrams to obtain a total thermodynamic diagram until the total thermodynamic diagram displays and covers all the functions, and forming a complete test case set; selecting a function with the highest thermodynamic value in the total thermodynamic diagram as a target function, acquiring a test case with the shortest function average execution time in all test cases calling the target function as a target test case, and clearing the thermodynamic values of the corresponding rows and columns in the total thermodynamic diagram until all the thermodynamic values of the total thermodynamic diagram are zero, wherein all the target test cases form a test case minimum set. According to the present invention, the integration test and the subsequent regression testing work can be efficiently completed.

Description

technical field [0001] The invention relates to the field of software testing, more specifically, it relates to a method, a system and a terminal for analyzing a minimum set of integrated test cases based on a thermal diagram. Background technique [0002] In some scientific computing programs, there are usually more complex logic and mathematical operations, and the execution of the integration test cases requires a lot of physical computing resources and time, which brings a greater impact on the efficiency of the integration testing of such software. influences. There is a function in the integration test that covers 100% of the test requirements, that is, after all the test cases in the test case set are executed, all the functions in the program can be covered [0003] At present, in the actual integration testing of scientific computing programs, the trial and error method is usually adopted to form an integration test case set by continuously increasing test cases, a...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3676G06F11/3684
Inventor 芦韡冯晋涛冯子亮张娜杨洪润卢川安萍涂晓兰肖安洪刘玲霜周俊燚吕新知陈俊杰蓝晓燕文杰
Owner NUCLEAR POWER INSTITUTE OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products