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

A flow playback method, device and system

A flow and flow data technology, applied in the field of flow playback methods, devices and systems, can solve the problems of numerous systems, not supporting flow guide playback, heavy test workload, etc., and achieve the effect of simple and convenient use and reduced test workload

Active Publication Date: 2021-08-06
GUANGZHOU VIPSHOP INFORMATION TECH
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. It does not support the playback of production traffic in the test environment;
[0005] 2. It does not support the traffic playback of adding, deleting and modifying interfaces;
[0006] 3. The interface simulator needs to maintain the jar package definition file related to the interface in time to complete the simulation of the response message. However, due to the complex online traffic data and various systems, it is necessary to maintain the sdk and version number of the dependent system, resulting in a huge test workload

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 flow playback method, device and system
  • A flow playback method, device and system
  • A flow playback method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0070] The embodiment of the present invention provides a flow playback method, refer to figure 1 As shown, the method may include:

[0071] In step S101, the terminal acquires traffic data of the production environment.

[0072] Wherein, the terminal may be, but not limited to, various personal computers, notebook computers, smart phones, and the like.

[0073] Specifically, when the terminal detects the query instruction, it queries the corresponding traffic data from the traffic database and exports it as a traffic file, wherein the traffic data stored in the traffic database is collected by the open platform gateway and delivered through the Kafka message queue.

[0074] Here, the traffic data includes request packets and response packets, wherein the request packets include but not limited to request parameters, service names, interface names, and version number information, and the response packets include field names and their corresponding data values.

[0075] In th...

Embodiment 2

[0104] The embodiment of the present invention provides a flow playback method, refer to image 3 As shown, the method may include:

[0105] In step S301, the terminal obtains traffic data of the production environment, and imports request packets and response packets in the traffic data into a test database.

[0106] Specifically, the implementation process of step S301 may refer to step S101 to step S102 in the first embodiment above, which will not be repeated here.

[0107] Step S302, when the terminal detects the playback instruction, it reads the target request message from the test database, simulates and generates the first request based on the first protocol based on the target request message, and writes the expected response message of the target request message to into redis.

[0108] Wherein, the first protocol may specifically be the HTTP protocol.

[0109] Step S303, the terminal sends the first request to the open platform gateway, so that the open platform ...

Embodiment 3

[0117] The embodiment of the present invention provides a flow playback method, refer to Figure 4 As shown, the method may include:

[0118] Step S401, after the open platform gateway receives the first request based on the first protocol sent by the terminal, and converts the first request into a second request based on the second protocol and sends it to the playback server, the playback server sends the request from redis based on the second request. Obtain the corresponding response message, wherein, the first request is simulated and generated by the terminal based on the target request message read from the test database, and the expected response message of the target request message is written into redis by the terminal.

[0119] Wherein, the first protocol may specifically be the HTTP protocol, and the second protocol may specifically be the OSP protocol.

[0120] Specifically, for the implementation process of step S401, reference may be made to step S107 in the fi...

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 traffic playback method, device and system. The method includes: a terminal imports request messages and response messages in the traffic data of the production environment into a test database; reads the target request message from the test database, and based on the target The request message simulates the generation of the first request, and writes the expected response message into redis; sends the first request to the open platform gateway, so that the open platform gateway converts the first request into a second request and sends it to the playback server; After the playback server obtains the corresponding response message from redis based on the second request, and generates a second response message based on the obtained response message, and returns the second response message to the open platform gateway, from the open platform gateway Receiving the first response message converted based on the second response message; parsing the first response message to obtain a response message of the target request message, and comparing the response message with the expected response message in the test database Compare, output the comparison result.

Description

technical field [0001] The present invention relates to the technical field of system testing, in particular to a flow playback method, device and system. Background technique [0002] With the continuous development of network technology at any time, testing is a key link to ensure the reliability and stability of network equipment. The traffic playback method is a network test method that stores and records real network traffic and restores and plays back it. By restoring and playing back the captured real network traffic to the test network, the actual network scene can be reproduced to achieve the purpose of investigating the performance of the system under test in the actual network. The purpose of function and performance in the environment. The flow playback method is an important method that can conduct objective, comprehensive and systematic testing of various network / security devices. [0003] Existing traffic playback solutions have the following disadvantages: ...

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): H04L12/26
CPCH04L43/50
Inventor 张镜昌阮伙星严江张扬
Owner GUANGZHOU VIPSHOP INFORMATION TECH