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

System and method for realizing coverage rate test

A technology of coverage and tested modules, applied in the field of coverage test system, can solve problems such as difficult relocation, difficult to analyze, complex executable file format, etc., and achieve the effect of improving compatibility and practical performance

Inactive Publication Date: 2009-10-21
ZTE CORP
View PDF0 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Executable file implantation code has the following problems: different operating systems must use different executable files, for example, the executable file of Windows operating system is PE file (Portable Executable, portable executable body, is Windows operating system self Executable file format) is not applicable to other systems, such as UNIX operating system, XENIX operating system, LINUX operating system, it is necessary to make the corresponding executable file of the system; moreover, the file format of the executable file is complex, Difficult to analyze; code needs to be relocated after insertion, and relocation is difficult

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
  • System and method for realizing coverage rate test
  • System and method for realizing coverage rate test
  • System and method for realizing coverage rate test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention will be further described in detail below in conjunction with the specific embodiments and the drawings.

[0023] Such as figure 1 As shown, the present invention provides a system for implementing coverage testing, including: a source code analyzer, a code implanter, and a code dot module connected to the tested module, and a calculation module connected with the source code analyzer and the code dot module .

[0024] The source code analyzer is used to analyze the source code of the tested module and count the total number of instructions that need to be tested in the tested module; according to different types of instructions, it is divided into analysis sub-modules of different types of instructions, see figure 2 , Including: assignment statement analysis sub-module, used to analyze and count the total number of assignment statement instructions; branch analysis sub-module, used to analyze and count the total number of branch instructions; condit...

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 a system and a method for realizing coverage rate test, which are applicable to various operating systems for counting coverage rate. The system comprises a source code analyzer, a code implanting device, a code dotting module and a calculation module. The source code analyzer is connected with a tested module and used for performing source code analysis to the tested module and counting the amount of command to be tested in the tested module; the code implanting device is connected with the tested module and used for inserting code dotting program before the command to be tested in the tested module and recoding the source code in which the code dotting program is inserted; the code dotting module is connected with the tested module and used for recording the transferring numbers of the code dotting program; and the calculation module is connected with the source code analyzer and the code dotting module and used for calculating the ratio between the transferring numbers of the dotting program and the total amount of the command and outputting the ratio. The invention performs coverage rate test on the basis of source code analysis, thereby being applicable to different operating systems and being improved in the compatible and practical performance.

Description

Technical field [0001] The invention relates to a white box testing technology in the communication field, and in particular to a coverage testing system and method. Background technique [0002] White box testing, also called structural testing or logic-driven testing, is in the software coding stage, in accordance with the internal structural testing procedures of the program, through testing to detect whether the internal actions of the product are normally carried out in accordance with the design specifications, and each item in the program is inspected Whether the passage can work correctly according to the predetermined requirements. White box testing is an independent and critical stage in the software life cycle. It represents the final inspection of specifications, design, and coding, and is also an important means to ensure software quality. [0003] Coverage statistics are key indicator parameters for measuring test cases and codes in white box testing, including stat...

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 ZTE CORP
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