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

Method and device for automatic identification of test case coverage

A test case and automatic identification technology, applied in the field of code testing, can solve problems such as the inability to automatically identify whether the test case design is comprehensive and the coverage rate is inaccurate, and achieve the effect of improving test efficiency, accurate coverage rate, and reducing test costs.

Active Publication Date: 2016-01-13
CHINANETCENT TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The coverage statistics method in the prior art has problems such as inaccurate coverage, inability to automatically identify whether the test case design is comprehensive, etc.

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 automatic identification of test case coverage
  • Method and device for automatic identification of test case coverage
  • Method and device for automatic identification of test case coverage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The present invention will be further described below in conjunction with specific embodiments and accompanying drawings, but the protection scope of the present invention should not be limited thereby.

[0037] refer to figure 2 , in the prior art, the coverage rate 22 is obtained according to the mixed source code information 21, and the mixed source code usually includes system source code and user source code, wherein the system source code is inherent source code in the system, and its content is relatively fixed; while the user source code is the user source code Custom source code often needs to be changed during the development process, and system source code and user source code are relative concepts. However, in the prior art, the statement coverage statistical method is calculated by mixing the system source code and the user source code together. The inventor found that in the prior art, due to the mixing of user-defined source code and system files, when ...

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 an automatic test case coverage identification method and an automatic test case coverage identification device. The method comprises the following steps: separating mixed sound codes into system sound codes and user sound codes; performing statistics analysis to the user sound codes according to the original coverage information, and recalculating the efficient coverage rate of the user sound codes; and comparing the efficient coverage rate with a preset coverage threshold, wherein, if the efficient coverage rate is not smaller than the preset coverage rate threshold, the testing is over, otherwise, warning information is given. The method and the device can improve the coverage of a test case and accuracy in identification and can quickly locate the position of a source code which is not covered by the test case.

Description

technical field [0001] The invention relates to code testing technology, in particular to a method and device for automatic identification of test case coverage. Background technique [0002] When testers test software products, they often cannot quantitatively judge whether the test case design is comprehensive and whether the test is complete. Therefore, there will be problems of missing tests discovered after the software goes online, resulting in the need for redevelopment and retesting. Such a continuous cycle not only affects the software quality, wastes testing resources, but also leads to the extension of the software release cycle. [0003] figure 1 A test coverage statistics method in the prior art is shown, including: at step 11, adding compilation options, for example, configuring source code compilation information, which may include source code file names generated during compilation, Code line information and program flow information; at step 12, source code...

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 CHINANETCENT TECH
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