Method and system for locating regression use cases

A use case and mapping relationship technology, applied in the computer field, can solve the problems of reducing the regression efficiency of use cases that need to be returned, increasing the cost of regression, etc., to achieve the effect of reducing the number of use cases regression, accurate positioning, and improving the efficiency of regression

Active Publication Date: 2016-03-16
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] However, when the statement line in the source code file is modified, the existing statistical coverage tool algorithm usually returns all the existing use cases once
If the modification is frequent, all use cases need to be returned frequently, which increases the regression cost and reduces the regression efficiency of the use cases that require regression

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 system for locating regression use cases
  • Method and system for locating regression use cases
  • Method and system for locating regression use cases

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0027] The method provided by the invention includes figure 2 The flow shown:

[0028] see figure 2 , figure 2 The flowchart provided for the embodiment of the present invention. Such as figure 2 As shown, the process may include the following steps:

[0029] Step 201 , after each use case runs, generate a mapping relationship including the following content: the identifier of the use case, the source code file related to the use case, and the identifiers of the statement lines covered by the use case in the source code file.

[0030] In this step 201, one use case may be related to multiple source code files at the same time.

[0031] Step 202, when the information of the statement line in the source code file is modified, the identific...

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 a system for positioning regression cases. The method comprises the following steps of: A, after each case is operated, generating a mapping relationship containing the following contents, such as an identifier of the case, a source code file related to the case and the identifier of statement lines covered by the case in the source code file; and B, when the information of the statement lines in the source code file is modified, searching the mapping relationship comprising a key word by taking the identifier of the statement line as the key word, if searching the mapping relationship comprising the key word, determining the case corresponding to the case identifier in the searched mapping relationship as the case needing to be regressed, and regressing the determined case. Through the method, the case needing to be regressed can be rapidly and accurately positioned; and the regression efficiency can be improved.

Description

technical field [0001] The present invention relates to computer technology, and in particular to methods and systems for locating regression use cases. Background technique [0002] In order to facilitate understanding of the application, the terms involved in the application will be described: [0003] Source code information: refers to the identification of the source code file to be tested (specifically, the name of the source code file), statement line information in the source code file, and source code flowchart information; [0004] Statement coverage information: After the use case is finished running, it records the identification of the source code file related to the use case, the statement line information covered by the use case in the related source code file, the execution times of the covered statement, and the execution of each basic block. times and other information; [0005] Coverage rate: refers to (the number of covered statement lines / the number of ...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 陈明师王谊麟徐勇
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products