Test data generation method and device

A technology for testing data and data categories, applied in the field of data processing, it can solve the problems of difficult data reuse, inability to achieve full preparation of test data, and difficulty in ensuring test adequacy, and achieve the effect of ensuring adequacy and comprehensiveness.

Active Publication Date: 2018-04-20
AGRICULTURAL BANK OF CHINA +1
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in practical applications, the above two methods of preparing test data have certain shortcomings.
The test data obtained by the first method is not accumulated, and can only be obtained when needed, and discarded after use; although the second method can carry out simple ac

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
  • Test data generation method and device
  • Test data generation method and device
  • Test data generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] see figure 1 A method for generating test data provided in Embodiment 1 of the present invention is characterized in that the method includes the following steps:

[0058] S11. Generate test data preparation rules according to data categories;

[0059]Among them, the test data preparation rules include data extraction rules, case data preparation rules, associated data acquisition rules and program data acquisition rules. Specifically, the corresponding data extraction rules obtained from the database of the system under test are extracted to obtain test data, which is also a commonly used data extraction rule in the prior art. In practical applications, the corresponding SQL (Structured Query Language) is recorded in the data extraction rules. Query Language) statement, that is, the test data can be obtained by calling the SQL statement to search the database of the system under test; the completion of data preparation by executing historical test cases corresponds to...

Embodiment 2

[0067] Referring to embodiment one of the present invention and figure 1 The specific process of steps S11 to S15 described in , firstly generate test data preparation rules according to the data category, wherein the test data preparation rules include data extraction rules, case data preparation rules, associated data acquisition rules and program data acquisition rules;

[0068] The generation process of the test data preparation rules may include:

[0069] Extract test data from the database of the system under test according to keywords in the data category, and generate data extraction rules;

[0070] Obtaining the execution cases completed by the historical test, recording the case numbers of the execution cases and the test data of the execution cases as a mapping relationship, and generating case data preparation rules;

[0071] According to the association information in the data category, associate the data category with the corresponding system data under test, an...

Embodiment 3

[0103] Corresponding to the test data generation methods disclosed in the first and second embodiments of the present invention, the third embodiment of the present invention also provides a test data generation device, see Figure 4 , the device consists of:

[0104] The rule generating module 1 is used to generate test data preparation rules according to data categories, wherein the test data preparation rules include data extraction rules, case data preparation rules, associated data acquisition rules and program data acquisition rules;

[0105] Data structure determination module 2, used to determine the data structure of the test data to be generated according to the test case;

[0106] A data category acquisition module 3, configured to acquire the data category corresponding to the data structure;

[0107] A rule determination module 4, configured to determine the test data preparation rule corresponding to the data category in the test data preparation rule;

[0108]...

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 test data generation method and device. The method comprises the following steps of: generating test data preparation rules according to data categories; determining a data structure of to-be-generated test data according to a to-be-tested case; obtaining a data category corresponding to the data structure; determining the test data preparation rule corresponding to the data category in the test data preparation rules; and generating test data from source data corresponding to each test data preparation rule according to the test data preparation rule corresponding tothe test data. Through the method and device provided by the invention, the aims of providing full-dose test data ensuring the test sufficiency are realized.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and device for generating test data. Background technique [0002] With the rapid development of the Internet and computer technology, more and more businesses can be processed through the Internet. Different businesses can be supported by different business systems. In order to improve the quality of business, it is necessary to test the business system frequently. For example, in order to meet the needs of users in the financial system, it is necessary to develop different business systems to support business realization. test. Before or during the test, a large amount of test data needs to be prepared. The correctness of data preparation determines the result of the whole test. [0003] There are two main methods for preparing test data. One is that the test data is directly provided by the developer, and the tester asks the developer for the test data whe...

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/36G06F17/30
CPCG06F11/3684G06F16/252
Inventor 杨志刚焦伟孙辉周期律蔡仕志杨启龙谢彬
Owner AGRICULTURAL BANK OF CHINA
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