Unlock instant, AI-driven research and patent intelligence for your innovation.

Network request testing method and device, computer equipment and storage medium

A technology of network request and test method, applied in the computer field, can solve the problems of unable to control the order of the data returned by the server, low test coverage, and response collapse of the data return order, so as to improve the coverage and test efficiency.

Active Publication Date: 2018-11-20
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the actual application environment, when the terminal makes an asynchronous network request, when the asynchronous response data return order is different, it may cause different network response results. For example, some data return order can get normal response results, while some data return order The sequence may cause abnormal response results such as response crashes
In the test environment, when testing network requests, data interaction between the requester and the requested server is required, and since the requester performing the test cannot control the order in which the server returns data, it is difficult to test all responses to network requests. low test coverage

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
  • Network request testing method and device, computer equipment and storage medium
  • Network request testing method and device, computer equipment and storage medium
  • Network request testing method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0049] The network request testing method provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the test terminal communicates with the server through the network. The test terminal monitors the first network request sent by the local application program to the server, obtains the first request identifier of the first network request, and judges whether the first network request is an asynchronous request according to the first request identifier. When it is an asynchronous request, search for the second request ID...

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 application relates to a network request testing method and device, computer equipment and a storage medium. The network request testing method comprises the following steps: monitoring a first network request sent by an application, and obtaining a first request identifier of the first network request; judging whether the first network request is an asynchronous request according to the firstrequest identifier; searching a second request identifier associated with the first request identifier when the first network request is an asynchronous request; intercepting first response data corresponding to the first request identifier and second response data corresponding to the second request identifier, searching a preset response returning order corresponding to the first request identifier, and returning the first response data and the second response data to the application according to the preset response returning order; and obtaining a first response result of the application,and comparing the first response result with the preset response result corresponding to the preset response returning order to obtain a test result. The method can be used to test coverage.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a network request testing method, device, computer equipment and storage medium. Background technique [0002] In the actual application environment, when the terminal makes an asynchronous network request, when the asynchronous response data return order is different, it may cause different network response results. For example, some data return order can get normal response results, while some data return order The sequence may cause abnormal response results such as response crashes. In the test environment, when testing network requests, data interaction between the requester and the requested server is required, and since the requester performing the test cannot control the order in which the server returns data, it is difficult to test all responses to network requests. Test coverage is low. Contents of the invention [0003] Based on this, it is necessary t...

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 Applications(China)
IPC IPC(8): H04L12/26H04L29/08
CPCH04L43/50H04L67/60
Inventor 贺顾一吴培景
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN