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

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 complex, which makes the analysis process complicated and cumbersome, and requires energy to write corresponding test functions for each test case data, and Build the corresponding test running environment, making the test efficiency too low

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

Embodiment Construction

[0040] The basic principle of the present invention is: the condition of executing a certain action / obtaining a certain result in the logical structure of the software unit and the action / result are defined as a behavior of the software unit, that is, an action 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 this software unit, or obtained from the actions included in it, or obtained by other software units. It can be seen that the logical structure of a software unit is expressed by behavior , it can not only clearly show the actions or results of the software unit, the connection between each action or result, but also express the connection between the software unit and other software units of the software. In this way, the logical structure of the software unit can be decomposed into multiple Behaviors, analyze each behavior one by one, and design ...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products