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

Method and device for selecting regression test case

A regression test and test case collection technology, applied in the field of computer applications, can solve problems such as inaccurate regression test cases, high labor costs, and low selection efficiency, and achieve the effects of saving labor costs, improving efficiency, and improving accuracy

Inactive Publication Date: 2014-03-26
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF4 Cites 46 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, no matter which of the above methods relies on manual evaluation and selection, resulting in inaccurate selection of regression test cases, low selection efficiency and high labor costs

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
  • Method and device for selecting regression test case
  • Method and device for selecting regression test case
  • Method and device for selecting regression test case

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] figure 1 The flow chart of the method for selecting the regression test case provided by Embodiment 1 of the present invention, in this embodiment, the selection of the regression test case is automatically realized on the basis of the tested object code library and the test case library, such as figure 1 As shown, the method specifically includes the following steps:

[0042] Step 101: Analyzing the reverse call relationship of the code of the object under test, and establishing an influence surface model tree.

[0043] This step mainly adopts code static analysis technology to obtain the code structure by scanning the code to identify keywords, and then establishes the model tree of the impact surface of the code modification through the reverse analysis algorithm. The nodes in the influence surface model tree are functions, and the connections between nodes are The reverse call relationship (ie dependency relationship) between functions.

[0044] When obtaining the...

Embodiment 2

[0065] Figure 5 The device structure diagram of the selection regression test case provided for the second embodiment of the present invention, such as Figure 5 As shown, the device includes: an information capture unit 500 , a reverse analysis unit 510 , a code comparison unit 520 , a pollution calculation unit 530 and a use case selection unit 540 .

[0066] The information capturing unit 500 is used to obtain the code of the object under test and the code of the historical version.

[0067] The historical version code here refers to the baseline version code of the code of the object under test before modification. The information capture unit 500 can trigger the execution of the acquisition operation after receiving the version information input by the user, or monitor the changes of the version management tool SVN. Trigger the fetch operation to be performed.

[0068] The reverse analysis unit 510 is used to analyze the reverse call relationship of the code of the obj...

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 provides a method and device for selecting a regression test case. The method includes the following steps that firstly, an inversion calling relation of a code of a tested object is analyzed, an influence face model tree is set up, nodes in the influence face model tree are functions, connection between the nodes is an inversion calling relation between the functions, the code of the tested object is compared with a code of a historical edition, and correction of the code of the tested object is determined; secondly, based on the influence face model tree and correction of the code of the tested object, the radiation algorithm is used for determining pollution nodes; thirdly, based on the pollution nodes, a corresponding test case set is selected. Automatic selection of regression test cases is achieved, precision and efficiency are improved and labor cost is reduced.

Description

【Technical field】 [0001] The invention relates to the technical field of computer applications, in particular to a method and device for selecting regression test cases. 【Background technique】 [0002] Regression testing refers to retesting after modifying old code to confirm that the modification did not introduce new bugs or cause other code to generate errors. As an integral part of the software life cycle, regression testing occupies a large proportion of workload in the entire software testing process. Multiple regression tests will be performed at each stage of software development, so it is very meaningful to choose appropriate regression test cases . [0003] In the existing technology, the selection of regression test cases mainly relies on the modified function information communicated by the testers to the R&D personnel, and the newly modified function points and the function points that may be affected are used as the basis for the selection of regression test c...

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/36
Inventor 王开华王飞王海龙
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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