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

A postman tool access database method, device and system

A database and tool technology, applied in the computer field, can solve the problem that the Postman tool does not support the function of accessing the database

Active Publication Date: 2022-03-18
北京新氧科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, when using the Postman tool for interface function testing, it is necessary to perform an assertion operation on the return value of the interface. When the Postman tool performs assertion operations, it sometimes needs to obtain dynamic data in the database for assertion operations, but the Postman tool itself does not support access to the database. function, making it impossible to use dynamic data to make assertions

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
  • A postman tool access database method, device and system
  • A postman tool access database method, device and system
  • A postman tool access database method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] figure 1 It is a flowchart of an embodiment of a postman tool access database method according to an exemplary embodiment of the present invention. In this embodiment, a data cloud plug-in for providing database query services is pre-built on the cloud server, so that The postman tool installed on any electronic device can obtain database data through this data cloud plug-in. The following takes the postman tool on any electronic device to access the database as an example to describe in detail, such as figure 1 As shown, the postman tool access database method includes the following steps:

[0049] Step 101: Write a database request including database operation statements through the postman tool, and send the database request to the data cloud plug-in.

[0050] In this embodiment, the postman tool provides an interface test module (tests module). In the interface test module, the interface return value can be obtained through an interface request. If you need to use...

Embodiment 2

[0080] figure 2 for the present invention according to figure 1 The illustrated embodiment shows a schematic diagram of an interaction flow for a postman tool to access a database. In the above figure 1 On the basis of the illustrated embodiment, this embodiment takes the interaction between the postman tool, the data cloud plug-in, and the database as an example to describe in detail, and the data cloud plug-in may only include application services, such as figure 2 As shown, the interaction process includes the following steps:

[0081] Step 201: the postman tool sends the database request including the database operation statement and the returned data type to the data cloud plug-in.

[0082] Step 202: The data cloud plug-in inputs the database operation statement and the return data type into the database interface function as input parameters.

[0083] Step 203: In the database interface function, use the preset database configuration to establish a connection with t...

Embodiment 3

[0091] image 3 for the present invention according to figure 1 The illustrated embodiment shows another schematic diagram of the interaction process of the postman tool accessing the database. In the above figure 1 On the basis of the illustrated embodiment, this embodiment takes the data cloud plug-in including static services and application services as an example to describe in detail, as shown in image 3 As shown, the interaction process includes the following steps:

[0092] Step 301: the postman tool sends the database request including the database operation statement and the returned data type to the static service.

[0093] Step 302: The static service forwards the database request including the database operation statement and the returned data type to the application service.

[0094] Step 303: The application service inputs the database operation statement and the return data type as input parameters into the database interface function pointed to by the datab...

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 postman tool access database method, device and system. The method includes: using postman to write a database request containing database operation statements, and sending the database request to a data cloud plug-in; the data cloud plug-in is based on the database The operation statement gets the database data and returns the database data to the postman. By building a data cloud plug-in that provides database query services between Postman and the database, the data cloud plug-in realizes the acquisition of dynamic data in the database, so that there is no need to install other plug-ins for Postman, and the database is written by using a common database management language on Postman Operation statement, you can receive the database dynamic data returned by the data cloud plug-in, which breaks through the problem that postman does not support access to the database. Compared with the jmeter tool's built-in database access plug-in, it does not need to be used after pre-configuration every time. This application only needs to be configured once, and the database request can be written on postman for permanent use.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, device and system for postman tools to access databases. Background technique [0002] The Postman tool is a powerful tool for API (Application Programming Interface, application programming interface) debugging and Http request management, which is often used in the field of software development. [0003] At present, when using the Postman tool for interface function testing, it is necessary to perform an assertion operation on the return value of the interface. When the Postman tool performs assertion operations, it sometimes needs to obtain dynamic data in the database for assertion operations, but the Postman tool itself does not support access to the database. function, making it impossible to use dynamic data to make assertions. Contents of the invention [0004] The object of the present invention is to propose a postman tool access database method, device, ...

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 Patents(China)
IPC IPC(8): G06F16/25G06F16/242G06F11/36G06F9/445
CPCG06F16/252G06F16/2445G06F11/3696G06F9/44526
Inventor 张泽龙王思慧李连杰
Owner 北京新氧科技有限公司
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