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

A method and system for realizing accelerated interface data request

An interface data and interface technology, which is applied in the field of implementing accelerated interface data requests, and can solve problems such as inability to know the execution status, program crashes, and powerlessness.

Active Publication Date: 2020-12-25
FUJIAN TQ DIGITAL
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Disadvantage 1, if you pass the functional test and acceptance, although it is intuitive, it is very weak when the data volume is high, and it cannot be completed at all
[0004] Disadvantage 2. At present, relatively mature script tests generally use automated scripts to make interface requests and input them into a file report through conditional judgment. Generally, the entire automated script needs to complete the test before seeing the results.
There is no way to know the current one execution during the test
At the same time, if a large number of scripts are frequently used to execute concurrent requests through the interface, the CPU and memory usage will be relatively large. If the CPU or memory is full, the program may crash, or even the script server may fail.
[0005] Disadvantage 3. At present, the execution results of most interface scripts are to generate reports through file storage and other methods according to the predetermined rules of the program.
It is difficult to implement for some testers who do not have scripting ability. At the same time, the test needs to carry out a personal analysis or report arrangement for a large amount of data, and the process cost is relatively high.

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 method and system for realizing accelerated interface data request
  • A method and system for realizing accelerated interface data request
  • A method and system for realizing accelerated interface data request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0071] The present invention will be further described below in conjunction with the accompanying drawings.

[0072] see figure 1 As shown, the present invention realizes the addition, deletion, modification, and query management of a certain function script, manages the request method of a certain interface by configuring the type, address, request data, etc. of the request interface, and then configures the data that the request method needs to use A condition configuration for source and report display. Secondly, when the script needs to be executed, it needs to enter the environment monitoring stage, and enter the script execution when the monitoring service environment meets the execution conditions, otherwise it will enter the waiting state until the service environment meets the execution conditions. When the script enters the execution state, it will adjust the number of parallel threads according to the user's expected time. When the service cannot allocate enough th...

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 provides a method for realizing an acceleration interface data request. The method comprises the following steps: S1, configuring a script name, configuring a script request mode, configuring a data source of each interface, configuring a report display mode, and configuring memory and CPU requirements; S2, when any script is executed, monitoring the script execution environment of the current service, conducting time delay operation when the service task content is large, and executing the step S3 under the condition that the environment allows the script execution environment to be monitored; S3, adjusting the optimal concurrent thread number according to the expected time of the user, dividing the data of the data source of the interface into each thread for execution, monitoring the execution state, and pushing the task when the execution is completed; S4, reading the data source, and storing the request data, the response result, the response time and the response code according to the data structure of the json structure body. High-concurrency execution of the interface request is realized, and script execution time is effectively shortened.

Description

technical field [0001] The invention relates to the technical field of automated testing, in particular to a method and system for realizing accelerated interface data requests. Background technique [0002] Today, with the rapid development of big data, many services have realized the separation of the front and back ends, and the back end provides a restful API for the front end to call. Among them, there are many application scenarios that require data verification. Among them, for example: intelligent dialogue, handwriting recognition and other fields, there are huge data sets to be verified. There are two conventional verification methods: 1) Functional test and acceptance through the application front-end; 2) Directly read a certain text or database to initiate an interface request through a script, and then make conditional judgments based on the returned data. [0003] Disadvantage 1, if you pass the functional test and acceptance, although it is intuitive, it is v...

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): G06F13/10G06F13/38G06F16/25
CPCG06F13/102G06F13/382G06F16/25
Inventor 刘德建梁益冰林剑锋林琛
Owner FUJIAN TQ DIGITAL
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