Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Database testing method and device, terminal equipment and storage medium

A test method and database technology, applied in the test field, can solve problems such as the inability to test MongoDB databases, achieve the effect of reducing learning costs and maintenance costs, and improving test efficiency

Pending Publication Date: 2020-06-19
CHINA PING AN LIFE INSURANCE CO LTD
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present application provides a database testing method, device, terminal equipment and storage medium to solve the problem in the prior art that the MongoDB database cannot be directly tested by using the MongoClient execution statement

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

[0027] The technical solutions of the present application are illustrated below through specific examples.

[0028] refer to figure 1 , which shows a schematic flow chart of the steps of a database testing method according to an embodiment of the present application, which may specifically include the following steps:

[0029] S101. Obtain a test statement for the target database, ...

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 embodiment of the invention is suitable for the technical field of testing, and provides a database testing method and device, terminal equipment and a storage medium, and the method comprises thesteps: obtaining a testing statement for a target database, and dividing the testing statement into a plurality of statement segments; a preset regular expression is adopted to carry out regular matching on the statement segments, test information of the target database is obtained, and the test information comprises test type information; obtaining a target configuration statement matched with the test type information; generating a target test statement according to the test information and the target configuration statement; and testing the target database by adopting the target test statement. According to the embodiment, different types of databases can be tested by adopting the test statement corresponding to one grammar.

Description

technical field [0001] The application belongs to the technical field of testing, and in particular relates to a database testing method, device, terminal equipment and storage medium. Background technique [0002] MongoDB is a database based on distributed file storage, which has the characteristics of high performance, easy deployment, and easy use. With the increasing popularity of MongoDB in the software industry, more and more systems have begun to use MongoDB as storage. [0003] Usually, when users use the interface platform for interface testing, many test scenarios require verification in combination with the database. Although most interface platforms in the industry provide the function of executing database statements, there is still less support for MongoDB databases, or operations on MongoDB databases can only be performed according to the non-native syntax provided by the interface platform. For example, the interface platform needs to remotely operate the M...

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/36
CPCG06F11/3668
Inventor 吴伟明
Owner CHINA PING AN LIFE INSURANCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products