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

Interface pressure testing method and related equipment

A pressure test and interface technology, applied in the testing field, can solve problems such as low efficiency of interface stress test, and achieve the effect of increasing utilization and improving efficiency

Active Publication Date: 2020-10-16
PINGAN INT SMART CITY TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when high concurrency is achieved, the efficiency of interface stress testing will be low due to the occupation of computer resources.

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
  • Interface pressure testing method and related equipment
  • Interface pressure testing method and related equipment
  • Interface pressure testing method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] figure 1 It is a flowchart of the interface pressure test method provided in the first embodiment of the present invention. The interface pressure test method is applied to computer equipment, and is used to perform pressure test on the interface to improve the efficiency of the interface pressure test.

[0051] Such as figure 1 As shown, the interface pressure test method includes:

[0052] 101. Obtain interface calling tasks of the target interface and a preset number of interface calling tasks.

[0053] For example, the interface calling task for interface A can be obtained. The preset number of interface calling tasks for interface A is 100, that is, 100 interface calling tasks are executed within a unit time.

[0054] The interface calling task includes sending an interface calling request to the URL (Uniform Resource Locator) address of the target interface, and outputting the calling result.

[0055] 102. Test the call response time of the target interface.

[0056] The c...

Embodiment 2

[0096] figure 2 It is a structural diagram of the interface pressure test device provided in the second embodiment of the present invention. The interface pressure testing device 20 is applied to computer equipment. The interface pressure test device 20 is used to perform a pressure test on the interface to improve the efficiency of the interface pressure test.

[0097] Such as figure 2 As shown, the interface pressure test device 20 may include an acquisition module 201, a test module 202, a creation module 203, a first operation module 204, a monitoring module 205, an update module 206, and a second operation module 207.

[0098] The acquiring module 201 is used to acquire the interface calling tasks of the target interface and the preset number of interface calling tasks.

[0099] For example, the interface calling task for interface A can be obtained. The preset number of interface calling tasks for interface A is 100, that is, 100 interface calling tasks are executed within ...

Embodiment 3

[0140] This embodiment provides a computer-readable storage medium having computer-readable instructions stored on the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, the steps in the foregoing embodiment of the interface stress test method are implemented, for example, figure 1 Steps 101-107 shown:

[0141] 101. Obtain the interface calling task of the target interface and the preset number of interface calling tasks;

[0142] 102. Test the call response time of the target interface;

[0143] 103. Create the preset number of goroutines, and each goroutine processes a corresponding interface invocation task, store the state of each goroutine as a to-be-executed state, and obtain a goroutine in the first to-be-executed state;

[0144] 104. Run the coroutine in the first to-be-executed state sequentially through threads, so that the coroutine in the first to-be-executed state sends an interface invocation request to the target in...

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 relates to the technical field of testing, and provides an interface pressure testing method and related equipment. The interface pressure testing method comprises the steps of testing calling response time of a target interface; sequentially running the coroutines in the first to-be-executed state through the thread, so that the coroutines in the first to-be-executed state update the state of the coroutines in the first to-be-executed state into a blocking state after sending an interface call request to the target interface according to the corresponding interface call task; after the thread waits for calling the response time, monitoring whether the coroutines in the blocking state receive response information of the target interface or not; when the coroutines in the blocking state receive response information of the target interface, updating the state of the coroutines in the blocking state into a to-be-executed state to obtain coroutines in a second to-be-executedstate; and sequentially running the coroutines of the second to-be-executed state through the thread, so that the coroutines of the second to-be-executed state output a calling result according to thecorresponding interface calling task. The efficiency of the interface pressure test is improved.

Description

Technical field [0001] The present invention relates to the field of testing technology, in particular to an interface pressure testing method, device, computer equipment and computer readable storage medium. Background technique [0002] Usually, the interface stress test is implemented by sending interface requests to the target interface with a specified number of concurrent times per unit of time. [0003] The interface stress test has high requirements on the number of concurrent requests. When high concurrency is achieved, the efficiency of interface stress testing will be low due to the occupation of computer resources. How to improve the efficiency of interface stress testing has become a problem to be solved. Summary of the invention [0004] In view of the above, it is necessary to propose an interface pressure test method, device, computer equipment, and computer-readable storage medium, which can perform pressure test on the interface and improve the efficiency of 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
IPC IPC(8): G06F11/30G06F11/34G06F9/448G06F9/50
CPCG06F11/3051G06F11/3452G06F9/4482G06F9/5022
Inventor 魏少鹏
Owner PINGAN INT SMART CITY TECH 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