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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


