Test data addition method and apparatus

A test data and data technology, applied in the test field, can solve problems such as inability to guarantee data consistency, test data simulation, and long time consumption

Active Publication Date: 2018-02-16
MASHANG CONSUMER FINANCE CO LTD
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Usually, tens of millions of test data cannot be simulated by business scripts in a short period of time, and the process of business logic simulation is time-consuming and inefficient. Inserting data in the middle, but can not guarantee the consistency of the data

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 addition method and apparatus
  • Test data addition method and apparatus
  • Test data addition method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0042] The embodiment of the invention discloses a method for adding test data to ensure data consistency and improve the efficiency of data preparation.

[0043] see figure 1 , a method for adding test data provided by an embodiment of the present invention, specifically including:

[0044] S101. Obtain data to be loaded into the database and database table information corresponding to the data to be stored in the first database by using preset data requirements;...

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 data addition method. The method comprises the steps of firstly determining to-be-stored data according to a demand and which database is added with the to-be-stored data, and determining database table information of the to-be-stored data; secondly creating an addition statement for the to-be-stored data, determining a parametric field of the to-be-stored data, and determining a storage process function by utilizing the addition statement and the parametric field; and finally calling the storage process function by utilizing jmeter to store the to-be-stored data in atarget second database. The data consistency is ensured through the parametric field in the storage process function; quick data storage is realized by using the jmeter tool; and the data insertion efficiency is effectively improved. An embodiment of the invention furthermore provides another data addition method, which also has the abovementioned technical effects.

Description

technical field [0001] The invention relates to the field of testing, and more specifically, to a method and device for adding test data. Background technique [0002] Before testing the batch-running business, the test team needs to prepare a large amount of data for testing. Preparing large amounts of data is a complex process. At present, SQL can be written manually, but it is very time-consuming. At the same time, inserting data into the database requires business logic processing to ensure data consistency. Usually, tens of millions of test data cannot be simulated by business scripts in a short period of time, and the process of business logic simulation is time-consuming and inefficient. Inserting data in, but can not guarantee the consistency of the data. [0003] Therefore, how to ensure data consistency and at the same time improve the efficiency of data preparation is a problem to be solved by those skilled in the art. Contents of the invention [0004] The...

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): G06F17/30G06F11/36
CPCG06F11/3672G06F16/22G06F16/2433G06F16/25
Inventor 周冉张炜张健
Owner MASHANG CONSUMER FINANCE 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