Unit testing data generating method and unit testing data generating system

A technology for unit testing and data generation, applied in software testing/debugging, program control devices, etc., to improve testing efficiency, save development time and development costs

Inactive Publication Date: 2015-06-24
YONYOU NETWORK TECH
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the complexity of the code data structure and the diversity of data sources in the program, there are certain limitations in related technologies that only analyze the impact of method parameters on the code control process.

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 data generating method and unit testing data generating system
  • Unit testing data generating method and unit testing data generating system
  • Unit testing data generating method and unit testing data generating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

[0031] In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. EXAMPLE LIMITATIONS.

[0032] figure 1 A flow chart of a method for generating unit test data according to an embodiment of the present invention is shown.

[0033] Such as figure 1 As shown, the unit test data generati...

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 unit testing data generating method and a unit testing data generating system. The unit testing data generating method comprises the steps that a source code structure of data to be tested is analyzed according to a preset unit test standard; a parameter type of needed unit test data are confirmed, and parameter construction is conducted; when the parameter construction is completed, the unit test data are generated according to the parameter type and the result of the parameter construction. According to the technical scheme of the unit testing data generating method and the unit testing data generating system, the unit test data can be generated automatically, and the unit test data are applied to a test method directly, so that complicated test case data preparation work of a tester is omitted, completing the works of analyzing coda structure, preparing the test data, analyzing the test case and the like by the tester are not needed, the mode of preparing manually is changed to an automatically generating method, development time and development cost are saved greatly, and the testing efficiency is improved greatly.

Description

technical field [0001] The invention relates to the technical field of data testing, in particular to a method for generating unit test data and a system for generating unit test data. Background technique [0002] Unit testing refers to the testing of the basic constituent units or modules of software, also known as module testing. The basic unit or module can be a function, a class instance, a method, a stored procedure, etc., or any combination of program code modules with clear function definitions, clear specification definitions, clear interface definitions, and small scale. Unit testing not only pays attention to unit functions, but also pays attention to the logical structure of program modules. Its purpose is to find logical errors in program design or implementation, so that problems can be exposed early, and it is convenient to locate and solve problems. [0003] However, to achieve a high unit test coverage, it is very important to prepare a relatively complete ...

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): G06F9/44G06F11/36
Inventor 胡尊文李志国
Owner YONYOU NETWORK TECH
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