Database testing method, device and computer readable storage medium

A test method and database technology, applied in computing, electrical digital data processing, software testing/debugging, etc., can solve the problems of high cost of data testing and low efficiency of test data

Inactive Publication Date: 2018-05-08
GUANGZHOU PINWEI SOFTWARE
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a database testing method, which aims to solve the technical problem of low test data efficiency caused by high data test cost caused by service interface calls in the prior art

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
  • Database testing method, device and computer readable storage medium
  • Database testing method, device and computer readable storage medium
  • Database testing method, device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0026] The main solution of the embodiment of the present invention is to: obtain the data connection configuration information of the target database, and create a data connection relationship with the target database; extract the pre-stored database basic script, and combine the database basic script with the target database configuration Information is input to the core class, and the database function script is generated with the data structure of the core class; the data content of the database function script is configured as a data processing step of a preset test method, so that the preset test method realizes the test requirement When executing the database function script on the target database.

[0027] Since the generation of test data in the prior art is generated after invoking each service interface, to...

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 database testing method. The testing method comprises steps of acquiring data connection configuration information of a target database and establishing a data connection relation with the target database, extracting database base scripts stored in advance and inputting the database base scripts and the configuration information of the target database into a core class, and generating a database function script based on a data structure of the core class, and configuring data contents of the database function script as a data processing step of the preset testing method to enable the preset testing method to execute the database function script in the target database when a test is required. The invention further discloses a database testing device and computer readable storage medium. Data test configuration file generation speed can be increased through construction of the core class for automatic generation of the data test function scripts, so data testingefficiency can be improved.

Description

technical field [0001] The invention relates to the field of program development, in particular to a database testing method, device and computer-readable storage medium. Background technique [0002] It is difficult for developers to obtain test data. Without basic data to verify the business, it is difficult to ensure that the code conforms to various scenarios, especially when the code logic of the transaction system involves the amount of money, the business logic requirements are relatively strict. It is necessary for developers to test themselves before testing. [0003] In the past, when developers tested their own business codes, other departments and related personnel were required to provide data. It was difficult for other departments and testers to cover all the requirements according to our business scenarios. The generation of test data mainly depends on the calls of various service interfaces, and the dependence is relatively strong, which leads to relatively...

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/3668G06F11/3672
Inventor 杨辉孔之源李恩惠张本朋韩若飞
Owner GUANGZHOU PINWEI SOFTWARE
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