Coverage test method and coverage test device

A testing method and testing device technology, applied in software testing/debugging and other directions, can solve the problems of complex testing process and inability to test software code coverage, and achieve the effect of simple testing process

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

AI Technical Summary

Problems solved by technology

[0008] Embodiments of the present invention provide a coverage test method and a coverage test device that have a simple test process and can perform effective coverage tests on all software codes, so as to s...

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
  • Coverage test method and coverage test device
  • Coverage test method and coverage test device
  • Coverage test method and coverage test device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Referring to the drawings, wherein like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.

[0025] In the following description, specific embodiments of the present invention are described with reference to steps and symbols for operations performed by one or more computers, unless otherwise stated. Accordingly, it will be understood that the steps and operations, which at times are referred to as being performed by a computer, include manipulation by a computer processing unit of electronic signals representing data in a structured form. This manipulation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or ot...

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 coverage test method and a coverage test device. The coverage test method comprises the following steps: detecting an execution operation of an execution function, and obtaining a function position, an operation code and an operation code offset of a script function corresponding to the execution function; recording the function position, the operation code and the operation code offset of the script function, and generating an execution function table; and after the detection operation, comparing the execution function table with a user-defined function table to obtain the coverage of a software code. The invention further provides the coverage test device. According to the coverage test method and the coverage test device provided by the invention, the user-defined function table is compared with the execution function table to generate the code coverage, a variety of software codes can be compatible effectively by the user-defined function table, and the entire test process is simple.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a coverage testing method and a coverage testing device of software codes. Background technique [0002] In the quality assurance system of C / C++ software development, coverage (the operating ratio of the code in the software) test is usually an effective means of finding problems. Through the analysis of code coverage, it is possible to quickly locate which codes are not running. , so as to construct corresponding test cases to cover these codes to find errors in software design. [0003] At present, the open source gcov tool is widely used in software code coverage testing. The gcov tool is a tool for detecting code coverage integrated in gcc (GNUCompilerCollection, GUN compiler suite). It passes through the compilation phase (that is, compiling the source code into executable code), insert a probe function into the source code (inserting a probe function is also called stubbin...

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