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

Data processing method and apparatus in coverage rate testing

A coverage and text data technology, applied in the field of computer applications, can solve the problems of lack of pertinence and accuracy in coverage testing, and achieve the effect of improving testing efficiency and reducing missed testing rate.

Inactive Publication Date: 2017-03-29
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the process of program development and version iteration, the program code is often obtained by modifying certain parts of the code, and the coverage test for all codes lacks pertinence and accuracy.

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
  • Data processing method and apparatus in coverage rate testing
  • Data processing method and apparatus in coverage rate testing
  • Data processing method and apparatus in coverage rate testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Typical embodiments that embody the features and advantages of the present invention will be described in detail in the following description. It should be understood that the present invention is capable of various changes in different embodiments without departing from the scope of the present invention, and that the description and illustrations therein are illustrative in nature and not limiting. this invention.

[0025] As mentioned above, for any program, the coverage test can only be performed for all program codes, and test results related to all program codes are output. For testers, the program is mostly a new version of the program that is updated on the basis of the old version. Therefore, in this test result, the tester only looks at the coverage test results related to the difference code lines, while other coverage rates Test results are useless to testers.

[0026] Correspondingly, for the coverage test, due to the lack of pertinence, the waste of test...

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 data processing method in coverage rate testing. The method comprises the steps of obtaining a difference text and a coverage rate text, relative to an old version, of a tested program, wherein the coverage rate text is output when the tested program is subjected to the coverage rate testing; extracting a file name and a changed line number from the difference text, and mapping the file name and the changed line number; and obtaining coverage rate text data related to difference codes, relative to the old version, of the tested program from the coverage rate text according to an obtained mapping relationship. In addition, the invention provides a data processing method in the coverage rate testing, matched with the method. According to the data processing method and apparatus in the coverage rate testing, the coverage rate testing can be performed for part of codes, so that the pertinence and accuracy of the coverage rate testing are improved.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a data processing method and device in coverage testing. Background technique [0002] With the development and version iteration of any program, various tests will be carried out on it before release. Most of the tests include coverage testing, that is, when the program is executed through various test cases, the coverage rate measures the Whether the execution of the program covers every line of code, or the extent to which the execution of the program covers the program code. [0003] The coverage obtained through the above process is the full coverage. That is to say, the existing tools for code coverage detection only support the detection of full coverage, and in the coverage detection they perform, only the coverage of program execution relative to the entire code can be output. [0004] However, in the process of program development and version iteration, ...

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
Inventor 贾珍珍
Owner TENCENT TECH (SHENZHEN) 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