Unit testing method and unit testing device

A technology for unit testing and testing values, applied in the software field, which can solve problems such as heavy unit testing workload

Inactive Publication Date: 2017-01-04
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that the workload of unit testing in the prior art is huge

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0047] Such as figure 1 As shown, the embodiment of the present invention provides a unit testing method, which may include the following steps:

[0048] Step 101: Determine the target unit to be tested;

[0049] Step 102: Generate a first document file according to the function corresponding to the target unit, and the first document file includes: a...

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 and a unit testing device. The unit testing method includes: determining a target unit required to be tested; generating a first document file according to a function corresponding to the target unit, wherein the first document file includes at least one input variable and at least one output variable corresponding to the at least input variable; generating an expected value of each output variable according to a test value corresponding to each input variable in the first document file; storing attribute information corresponding to the target unit into a second document file, and compiling the attribute information in the second document file; testing the complied second document file so as to obtain an actual test value; generating a test result according to the expected value and the actual test value. The unit testing method and the unit testing device are capable of reducing unit testing workload.

Description

technical field [0001] The invention relates to the technical field of software, in particular to a unit testing method and device. Background technique [0002] Unit testing is the most targeted, comprehensive, and thorough systematic testing of the smallest testable unit in a software program to verify the logical correctness of the software program and ensure that the behavior of the written software program satisfies the requirements of the programmer. specific needs. Unit testing can fully discover bugs (loopholes) in the software program during the software program development stage, so as to ensure the quality and efficiency of the software program. [0003] At present, the unit test is mainly implemented manually. The unit test implemented manually mainly includes: completing a piece of software program and compiling the piece of software program; Modify the existing loopholes, and then compile the software program after modification until the compilation is passed...

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
CPCG06F11/3688
Inventor 马彬
Owner LANGCHAO ELECTRONIC INFORMATION IND 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