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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com