Unit test system and method thereof

A technology for unit testing and buffering units, applied in the field of implementing general-purpose driver functions, can solve the problems of increasing the complexity of testing tools, extremely high requirements for testing tools, and long learning curve, so as to reduce the number of compilations, reusability and flexibility. The effect of improving, improving efficiency and quality

Active Publication Date: 2009-07-08
SHANGHAI MUNICIPAL ELECTRIC POWER CO
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage is that the workload of writing has not been reduced, and users need to learn a new scripting language, and the learning curve is long
2. Automatically generate driver functions. The advantage is that it reduces the workload of driver function writing. The disadvantage is that it increases the complexity of test tools. If you need to automatically generate driver functions in various compilation environments, it is easy to generate compilation errors. Testing tools are extremely demanding

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
  • Unit test system and method thereof
  • Unit test system and method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The core idea of ​​the present invention is to replace a large number of driver functions with a common driver function, and directly access the program stack by a method similar to a compiler, so that various driver functions with different declarations can be unified into the same driver function.

[0026] In order to make the purpose, technology and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0027] figure 1 It shows a schematic diagram of the module structure of the unit test system according to the present invention, and illustrates the main module structure in the present invention. The present invention includes a general drive unit 101 , a buffer unit 102 , an information extraction unit 103 , a symbol table unit 104 , a tested unit 105 and a test control unit 106 .

[0028] Among them, the universal drive unit 101 is the main part of the present in...

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 utility model discloses a unit test system and a method thereof. The system comprises a unit to be tested (105), a buffer unit (102), a general driver element (101), a testing control unit (106), an information extraction unit (103). The utility model can effectively improve the efficiency and the quality of the unit test as well as decrease the labor cost. Meanwhile, the test case can be revised and re-used continuously, so as to greatly reduce the duplication of labor.

Description

technical field [0001] The invention relates to software testing technology, more specifically a method for realizing general driving functions in unit testing. Background technique [0002] The workload of writing driver functions in unit tests is relatively large. Each tested function corresponds to at least one driver function, and requires frequent modification and compilation, which affects the efficiency of unit testing. At present, the solution to this problem is basically based on two ideas: 1. Manually use scripts to write. The advantage is that there is no need for repeated compilation, and it is suitable for scenarios where the tested code changes little but the driving function changes a lot. The disadvantage is that the workload of writing has not been reduced, and users need to learn a new scripting language, and the learning curve is long. 2. Automatically generate driver functions. The advantage is that it reduces the workload of driver function writing. Th...

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): G06F9/44G06F11/36
Inventor 马军马亮
Owner SHANGHAI MUNICIPAL ELECTRIC POWER CO
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