Unit testing method and device

A unit test and unit number technology, applied in the field of unit test methods and devices, can solve the problems of low test efficiency, energy consumption, complex logical relationship, etc., and achieve the effect of improving test efficiency and simple and clear design ideas.

Active Publication Date: 2010-09-29
ZTE CORP
View PDF3 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the analysis of the characteristics of the software unit under test is mostly considered from the overall perspective of the software unit under test, and the logical relationship that needs to be considered is relatively comp

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 testing method and device
  • Unit testing method and device
  • Unit testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0040] The basic principle of the present invention is: define the condition and the action / result in the logical structure of the software unit to perform a certain action / result as a behavior of the software unit, that is, a behavior corresponds to an action in the logical structure of the software unit Or a result, and the conditions included in a behavior may be the results included in other behaviors of the software unit, or obtained from the actions included in it, or may be obtained from other software units. It can be seen that the behavior expresses the logical structure of the software unit , It can clearly show the action or result of the software unit, the connection between each action or result, or the connection between the software unit and other software units of the software. In this way, the logical structure of the software unit is decomposed into multiple Behavior, analyze each behavior one by one, and design the test case data of the software unit according...

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 unit testing method. The method comprises the following steps of: representing the logical structure of a software unit by behavior; respectively designing test case data of the software unit according to each behavior; compiling a test function of the software unit; and testing the software unit according to the test case data and the test function. The invention also discloses a unit testing device, comprising a first input module and a testing module, wherein the first input module is used for inputting the behavior for representing the logical structure of the software unit, the test case data of the software unit and the test function of the software unit, and the testing module is used for testing the software unit according to the test case data and the test function. By adopting the method and the device of the invention, the design train of thought of the test case can be simple and clear.

Description

technical field [0001] The invention relates to software testing technology, and in particular provides a unit testing method and device. Background technique [0002] The so-called unit test is the process of testing the independent unit of the software in a constructed environment that is isolated from other parts of the software. Test the test case of the operating environment, and verify whether the function of the software unit under test is correct through the implementation of the test case. At present, the analysis of the characteristics of the software unit under test is mostly considered from the overall perspective of the software unit under test, and the logical relationship that needs to be considered is relatively complex, which makes the analysis process complicated and cumbersome, and requires energy to write corresponding test functions for each test case data, and Construct the corresponding test running environment, making the test efficiency too low. C...

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