Method and device for automatically generating testing datasets by program content

A test data set and test data technology, applied in the field of test data generation methods and devices, can solve the problems of affecting test results, poor effectiveness, heavy workload, etc., to ensure effectiveness and practicability, comprehensiveness, and speed quick effect

Inactive Publication Date: 2008-05-21
VIMICRO CORP
View PDF0 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The collation of test data is slow, the efficiency is very low, and the workload is heavy
Due to the manual sorting, the validity of the test data is closely related to the specific test data sorter. If the level of the sorter is high, the validity of the sorted test data will be relatively high, otherwise the validity will be poor.
[0005] Moreover, when the test requirements document is updated or upgraded, the test data needs to be rearranged, and the reusability of the previous test data is very low; The style of the test data is not uniform, which affects the test effect

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
  • Method and device for automatically generating testing datasets by program content
  • Method and device for automatically generating testing datasets by program content

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The present invention automatically generates test data sets needed for software testing (including debugging) according to the content of source programs. These test data refer to parameters that need to be input during testing, such as numerical values, symbols, Chinese characters and expressions. After the source program is read, the source program is firstly analyzed for syntax, and then the logical relationship analysis is performed for the part that conforms to the syntax, and then the test data is generated.

[0043] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0044] Fig. 1 shows the structure of the generation device of the test data set of the present embodiment, as shown in the figure, comprises the file reader connected in sequence, syntax analyzer, logical relationship analyzer, test data generator, test data classifier and Test data reporter. in:

[0045] The file reader ...

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 relates to a method of automatically generating a test data set according to the content of the program, which is characterized in comprising the following steps: (a) reading an input source program file; (b) analyzing the logical relation of the content of the program to acquire the limiting condition of the input parameter in the logical relation; (c) generating and outputting the test data according to the limiting condition. The invention also relates to a device for automatically generating a test data set according to the content of the program, comprising a file reader, a logical relation analyzer, a test data generator and a test data report device which are all connected in sequence. The invention has the advantages of fast speed of generating the test data, ensuring the comprehensiveness of the test data by analyzing the source program and generating test data, and getting the latest test data only by rerunning the device after the update or upgrade of the test requirement.

Description

technical field [0001] The invention relates to program testing, in particular to a method and device for generating test data. Background technique [0002] With the rapid development of information technology, software products are applied to various fields of society, and the quality of software products naturally becomes the focus of common attention. Both software producers and software users live in a competitive environment. In order to occupy the market, software developers must regard software quality as one of the important goals of the enterprise, so as not to be eliminated in the fierce competition. For a mature software company, in the development cycle of a software product, software development tasks account for 30%, and software testing accounts for 70%. Their importance is self-evident. Professional testing of software is not only a guarantee of product quality , the key to cost control, but also a necessary condition for enterprises to have international 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 冯备战游明琦
Owner VIMICRO 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