Information test method, device and equipment, storage medium and computer program product
By receiving, parsing and processing TCP protocol information between the client and the server on the proxy device, mock testing in the TCP protocol communication scenario is realized, solving the problem of low testing efficiency in the prior art, improving testing efficiency and reducing testing difficulty.
Patent Information
- Application Number
- CN202510099887.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-09
AI Technical Summary
When communicating between the client and the server through the TCP protocol, existing testing technologies cannot reuse the HTTP implementation method, and the TCP protocol does not support the common configuration parameter mock function, resulting in low testing efficiency.
An information testing method is provided, which receives the first information supporting the TCP protocol sent by the transmitting device through the proxy device, and parses the first information based on the preset information configuration. If a simulated mock processing is required, the second information is processed based on the preset mock configuration, and the third information supporting the TCP protocol is obtained and sent to the receiving device.
When communicating between the client and the server through the TCP protocol, mock testing without code modification, compilation, and deployment is implemented, which improves testing efficiency and reduces testing difficulty.
Smart Images

Figure CN119966867A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information testing method, device, equipment, storage medium and computer program product. Background Art
[0002] When testing on the client, the server of the back end is often required to construct abnormal interface data to return test data. Currently, the commonly used test technology solutions are mainly implemented in the Hypertext Transfer Protocol (HTTP) / https simulation (mock) tool scenario. However, the above-mentioned test technology does not support the Transmission Control Protocol (TCP), that is, when communicating between the client and the server through the TCP protocol, if testing is required, the HTTP implementation method cannot be reused, and the TCP protocol belongs to a private coding protocol and does not support the general configuration parameter mock function. In this way, in the application scenario of communicating between the client and the server through the TCP protocol, it is necessary to develop a corresponding tcp mock tool, that is, in each test process, the server needs to perform code modification, compilation, deployment and other processing before mock testing can be performed, resulting in low test efficiency.
[0003] Application Contents
[0004] In order to solve the above technical problems, the present application hopes to provide an information testing method, device, equipment, storage medium and computer program product, which solves the current problem of low mock testing efficiency when the client and the server communicate through the TCP protocol, and proposes a mock testing method when the client and the server communicate through the TCP protocol. During the testing process, there is no need to perform code modification, compilation, deployment and other operations, which improves the testing efficiency and reduces the testing difficulty.
[0005] The technical solution of this application is implemented as follows:
[0006] The present application provides an information testing method, which is applied to an agent device and includes:
[0007] Receive first information supporting the TCP protocol sent by a sending device;
[0008] Based on the preset information configuration, the first information is parsed to obtain second information;
[0009] If the second information indicates that a mock process needs to be performed, the second information is processed based on a preset mock configuration to obtain third information; wherein the third information supports the TCP protocol;
[0010] The third information is sent to a receiving device.
[0011] In the above solution, when the sending end device is a client, the receiving end device is a server; when the sending end device is a server, the receiving end device is a client.
[0012] In the above solution, a first channel is established between the proxy device and the receiving device, and a second channel is established between the proxy device and the sending device.
[0013] In the above solution, the first channel and the second channel support full-duplex mode.
[0014] In the above scheme, the method further includes:
[0015] If the third information indicates that mock processing is not required, the first information is transparently transmitted to the receiving device.
[0016] In the above scheme, the method further includes:
[0017] Receiving a configuration operation for the preset information configuration and the preset mock configuration;
[0018] Based on the configuration operation, generating the preset information configuration and the preset mock configuration;
[0019] The preset information configuration and the preset mock configuration are stored in a target storage area.
[0020] In the above solution, the first information and the third information are socket type information.
[0021] The present application provides an information testing device, which is applied to an agent terminal device, and includes: a receiving unit, a parsing unit, a processing unit and a sending unit; wherein:
[0022] The receiving unit is used to receive first information supporting the TCP protocol sent by a sending end device;
[0023] The parsing unit is configured to parse the first information based on a preset information configuration to obtain second information;
[0024] The processing unit is configured to process the second information based on a preset mock configuration to obtain third information if the second information indicates that a mock process needs to be performed; wherein the third information supports the TCP protocol;
[0025] The sending unit is used to send the third information to a receiving end device.
[0026] The present application provides an agent terminal device, the device at least comprising: a memory, a processor and a communication bus; wherein:
[0027] The memory is used to store executable instructions;
[0028] The communication bus is used to realize the communication connection between the processor and the memory;
[0029] The processor is used to execute the information testing program stored in the memory to implement the steps of any of the above-mentioned information testing methods.
[0030] The present application provides a storage medium on which an information testing program is stored. When the information testing program is executed by a processor, the steps of the information testing method described in any one of the above items are implemented.
[0031] The embodiment of the present application provides an information testing method, device, equipment, storage medium and computer program product. After receiving the first information supporting the TCP protocol sent by the sending end device through the proxy end device, the first information is parsed based on the preset information configuration to obtain the second information. If the second information indicates that a simulated mock process is required, the second information is processed based on the preset mock configuration to obtain the third information, and the third information is sent to the receiving end device. In this way, the proxy end device parses and processes the first information sent by the sending end device, and when it is determined that the second information obtained by the analysis indicates that a simulated mock process is required, the second information is processed using the preset mock configuration, and the obtained third information is sent to the receiving end device, so that the proxy end device directly processes the first information related to the TCP protocol, and determines whether the first information needs mock processing according to the configuration, which solves the current problem of low efficiency of mock testing when the client and the server communicate through the TCP protocol, and proposes a method for mock testing when the client and the server communicate through the TCP protocol. During the test process, there is no need to perform code modification, compilation, deployment and other operations, which improves the test efficiency and reduces the test difficulty. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A flowchart of an information testing method provided in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of the system structure of an agent terminal device provided in an embodiment of the present application;
[0034] Figure 3 A schematic diagram of information flow of an information testing method provided in an embodiment of the present application;
[0035] Figure 4A schematic diagram of an implementation flow of an information testing method provided in an embodiment of the present application;
[0036] Figure 5 A schematic diagram of the structure of an information testing device provided in an embodiment of the present application;
[0037] Figure 6 A schematic diagram of the structure of an agent terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0039] The embodiment of the present application provides an information testing method, referring to Figure 1 As shown, the method is applied to an agent device, and the method includes the following steps:
[0040] Step 101: Receive first information supporting the TCP protocol sent by a sending device.
[0041] In the embodiment of the present application, the first information is a request information sent by the sending end device for requesting business processing, and the first information supports the TCP protocol, that is, the first information is a request information in the TCP protocol format. The proxy device is a device for providing proxy services, for example, it can be a proxy implemented by openresty. In other application scenarios, the proxy device can also be implemented by other technologies.
[0042] When service processing is required, the sending device generates first information based on the TCP protocol, and sends the first information to the agent device based on the TCP protocol. The agent device receives the first information sent by the sending device based on the TCP protocol.
[0043] Step 102: Based on the preset information configuration, parse the first information to obtain the second information.
[0044] In the embodiment of the present application, the preset information configuration is pre-configured configuration information for unpacking information sent by the sending device.
[0045] The first information is parsed and processed according to the processing rules configured in the preset information configuration to obtain the second information.
[0046] Step 103: If the second information indicates that mock processing is required, the second information is processed based on a preset mock configuration to obtain third information.
[0047] Among them, the third information supports the TCP protocol.
[0048] In an embodiment of the present application, the information indication content of the second information obtained by parsing is judged and analyzed. When it is determined that the service corresponding to the second information indication needs to be mock processed, the proxy device obtains the preset mock configuration, and adjusts and modifies the second information according to the preset mock configuration, and encapsulates the adjusted and modified second information to obtain the third information that supports the TCP protocol.
[0049] Step 104: Send the third information to the receiving device.
[0050] In an embodiment of the present application, the proxy device sends the third information supporting the TCP protocol obtained by mock processing to the receiving device based on the TCP protocol. In this way, after receiving the third information, the receiving device responds to the third information and executes the task corresponding to the third information.
[0051] Based on the foregoing embodiments, in other embodiments of the present application, when the sending end device is a client, the receiving end device is a server; when the sending end device is a server, the receiving end device is a client.
[0052] In the embodiment of the present application, the sending device can be a client for use by the client, such as a smart mobile terminal device, a computer device, etc., or a server, that is, a server or cloud that provides corresponding customer service content to the client. In some application scenarios, when the sending device is a client, the corresponding receiving device is a server. At this time, the two communicate based on the TCP protocol through the proxy device. In other application scenarios, the sending device is a server and the corresponding receiving device is a client. That is to say, the roles of the receiving device and the sending device can be exchanged in the actual application process, which can be determined by the actual situation and is not specifically limited here.
[0053] Based on the foregoing embodiment, in other embodiments of the present application, a first channel is established between the agent device and the receiving device, and a second channel is established between the agent device and the sending device.
[0054] In the embodiment of the present application, a first channel for transmitting first information is separately established between the proxy device and the receiving device, and similarly, a second channel for transmitting second information is established between the proxy device and the sending device. The first channel and the second channel are used to transmit corresponding uplink and downlink information.
[0055] Based on the foregoing embodiment, in other embodiments of the present application, the first channel and the second channel support full-duplex mode.
[0056] Based on the foregoing embodiment, in other embodiments of the present application, the method further includes the following steps:
[0057] If the third information indicates that mock processing is not required, the first information is transparently transmitted to the receiving device.
[0058] In the embodiment of the present application, when the proxy device determines that the third information indicates that no mock processing is required, it does not process the first information in any way, and directly transmits the first information to the receiving device so that the receiving device responds to the first information and executes the task corresponding to the first information.
[0059] Based on the foregoing embodiment, in other embodiments of the present application, the method further includes the following steps:
[0060] Receive configuration operations for preset information configuration and preset mock configuration;
[0061] Generate preset information configuration and preset mock configuration based on configuration operations;
[0062] Store preset information configuration and preset mock configuration to the target storage area.
[0063] In the embodiment of the present application, the preset mock configuration may include, for example, TCP protocol packet grouping rules, packet sticking rules, message packet matching rules, and mock message packet modification rules, wherein the packet sticking rules are used to parse TCP packets. The preset information configuration may include, for example, configuration rules for parsing and identifying received packets.
[0064] The configuration operation may be an operation in which the corresponding personnel configure and process the preset information configuration and the preset mock configuration according to the application requirements. For example, a configuration interface for configuring the preset information configuration and the preset mock configuration is displayed in the display area, and the user inputs the corresponding configuration content based on the configuration interface through the input device, thereby obtaining the preset information configuration and the preset mock configuration. The input device may be a keyboard, a mouse, a touchable information input area, etc. It should be noted that the configuration operation may be sent to the agent device by a third-party device, or may be directly input to the agent device by the user through the input device. In this way, after receiving the configuration operation, the agent device generates the preset information configuration and the preset mock configuration according to the relevant information indicated in the configuration operation. Further, the agent device may store the preset information configuration and the preset mock configuration in the target storage area. The target storage area may be a storage area accessible to the agent device, such as a database in a layout and storage server accessible to the agent device, a cloud, etc., or a storage area of the agent device itself. In this way, the preset information configuration and the preset mock configuration are stored to facilitate the acquisition of the agent device during the analysis process.
[0065] Based on the foregoing embodiment, in other embodiments of the present application, the first information and the third information belong to socket type information.
[0066] Based on the foregoing embodiments, the embodiments of the present application provide a system structure of an agent device for implementing an information testing method. In some application scenarios, the agent device may be a device running the OpenResty platform. The OpenResty platform is a high-performance network (Web) page platform based on Nginx and Lua. It integrates a large number of sophisticated Lua libraries, third-party modules, and most dependencies. This allows it to handle ultra-high concurrency, highly scalable dynamic Web applications, Web services, and dynamic gateways. That is, the Web service runs inside the Nginx service, and can make full use of Nginx's non-blocking I / O model, not only for HTTP client requests, but even for remote backends such as MySQL, PostgreSQL, Memcached, and Redis. Consistent high-performance responses can be provided.
[0067] For example, Figure 2 The figure shows a schematic diagram of the interactive flow of internal information of an agent device provided by an embodiment of the present application. The corresponding agent device includes: a configuration request input terminal, a mock request input terminal, an Nginx module, an amis module, a lua module, and a redis server. After receiving the configuration request, the configuration request input terminal sends it to the Nginx module. The Nginx module sends the configuration request to the amis module. The amis module responds to the received configuration request and stores the corresponding configuration information in the redis server. After receiving the mock request, the mock request input terminal sends it to the Nginx module. The Nginx module sends the mock request to the lua module. The lua module The mock request is analyzed to determine whether the mock request requires mock processing. If mock processing is performed, the Lua module obtains the corresponding mock information and sends the corresponding mock information to the redis server after processing, so that the redis server provides the response result corresponding to the mock information, and returns the response result through the Lua module and the Nginx module through the mock request module. If mock processing is not required, the Lua module directly transmits the mock request to the redis server, so that the redis server provides the response result corresponding to the mock information and returns the response result through the Lua module and the Nginx module through the mock request module. It should be noted that the redis server is also used to store data information.
[0068] Based on the above-mentioned agent device, the present application embodiment provides an application embodiment of an information testing method, such as Figure 3As shown, when the client sends a request to the server, the request is first sent to the proxy, and the proxy processes the received request, for example, determines whether the request needs to be mocked, and according to the determination result, processes the request accordingly before sending it to the server. Similarly, when the server returns the corresponding response, it is first returned to the proxy, and the proxy processes the received response accordingly, for example, determines whether the response needs to be mocked, and according to the determination result, processes the response accordingly before sending it to the client.
[0069] Correspondingly, in the specific implementation process, a transmission process of information transmission can refer to Figure 4 As shown, the corresponding implementation process includes the following steps:
[0070] Step a11: The client sends a first socket request to the proxy device.
[0071] For example, when the configuration requirements are as follows: the client needs to test that the price of product 600000 is 10000 yuan, the client can work normally. This test data needs to be constructed, and the return package structure requirements are: version number + time + message type + package length + return message body, the length is: 2+4+2+4+n, and it is spliced after being converted into a binary stream. Return message body example:
[0072]
[0073] Correspondingly, the proxy device determines the matching message packet rule as follows: the interface configuration returns the message structure 2+4+2+4+n, and the fourth is configured as the packet length, which is used when sticking packets; the mock modifies the message packet rule as follows: if the message type is configured as 2, and "quote"["id"]["code"]="600000", then set "quote"["info"]["price"]=10000.
[0074] In this way, the client starts the TCP mock service and configures the Internet Protocol (IP) address and port of the server. The client disconnects from the server and connects to the TCP mock service instead, that is, the TCPmock service establishes TCP connections with the client and the server respectively.
[0075] Step a12: The agent device parses and processes the first socket request through thread 1 to obtain a first message.
[0076] Exemplarily, the client sends a TCP message body to the agent device. After receiving the message, the agent device, i.e., the TCP mock service, parses the TCP message body structure and queries the configuration data. If it is determined that the TCP message body configuration does not require configuration information for mock processing, the agent device directly transmits the TCP message body to the server.
[0077] Step a13: When the proxy device determines that the first message indicates that mock processing is required, the first message is modified and encapsulated according to the mock configuration to obtain a second socket request.
[0078] Exemplarily, if it is determined that the configuration information in the TCP message body needs to be processed by mock, the proxy device modifies and encapsulates the TCP message body according to the rule of mock modification of message packets to obtain a corresponding second socket request.
[0079] Step a14: The proxy device sends a second socket request to the server.
[0080] Step a15: The server responds to the second socket request and obtains the first socket response.
[0081] Exemplarily, after receiving the second socket request, the server returns the first socket response normally.
[0082] Step a16: The server sends a first socket response to the agent device.
[0083] Step a17: The proxy device parses the first socket response through thread 2 to obtain a second message.
[0084] Exemplarily, after receiving the first socket response, the proxy device parses the first socket response. If the message type of the first socket response is matched = 2, and "quote"["id"]["code"] = "600000", "quote"["info"]["price"] = 10000 is set, and then the modified first socket response is reassembled.
[0085] When matching the first socket response, a binary comparison method can be used, that is, first binarize the content in the mock modification message packet rule, and then directly compare the binary value corresponding to the rule with the binary value of the corresponding message, so as to reduce the TCP message parsing calculation. For example, the mock is performed only when the message type = 2, and 2 is converted to binary as 0010. If the 7th to 8th bit of the request message is 0010, the comparison is successful and the mock is performed. Otherwise, it is directly transmitted without unpacking.
[0086] Step a18: When the proxy device determines that the second message indicates that mock processing is required, the second message is modified and encapsulated according to the mock configuration to obtain a second socket response.
[0087] Step a19: The proxy device sends a second socket response to the client.
[0088] It should be noted that the implementation of step a12, step a13, step a14, step a16, step a17, step 18, and step a19 can be implemented through the same thread.
[0089] In this way, a universal and configurable TCP protocol mock is realized, and various private protocols are supported. Only configuration is required, and no code adaptation development is required. Mock message configuration is performed based on the original TCP request packet and return packet, which reduces the configuration workload. By reverse proxying TCP requests, non-intrusive TCP mock is realized, and it can be combined with openresty without multi-threading and other development. In this way, multi-terminal and multi-threading are truly simulated, and Nginx's non-blocking I / O model is fully utilized. High-performance mock can be achieved without performance optimization development. Furthermore, precise mock is realized, request packets that do not need mock can be directly transmitted, and mock services do not need to be developed for functions such as authentication. In addition, mocking of both the client and the server is supported at the same time, enriching the application scenarios of mock.
[0090] The embodiment of the present application provides an information testing method, after receiving the first information supporting the TCP protocol sent by the sending device through the proxy device, the first information is parsed based on the preset information configuration to obtain the second information, if the second information indicates that simulated mock processing is required, the second information is processed based on the preset mock configuration to obtain the third information, and the third information is sent to the receiving device. In this way, the proxy device parses and processes the first information sent by the sending device, and when it is determined that the second information obtained by the analysis indicates that simulated mock processing is required, the second information is processed using the preset mock configuration, and the obtained third information is sent to the receiving device, so that the proxy device directly processes the first information related to the TCP protocol, and determines whether the first information needs mock processing according to the configuration, which solves the current problem of low efficiency of mock testing when the client and the server communicate through the TCP protocol, and proposes a method for mock testing when the client and the server communicate through the TCP protocol. During the test process, there is no need to perform code modification, compilation, deployment and other operations, which improves the test efficiency and reduces the test difficulty.
[0091] Based on the above embodiments, the present application provides an information testing device, which is applied to an agent terminal device. The device can be applied to Figure 1 In the information testing method provided in the corresponding embodiment, refer to Figure 5 As shown, the information testing device 2 at least includes: a receiving unit 21, a parsing unit 22, a processing unit 23 and a sending unit 24; wherein:
[0092] The receiving unit 21 is used to receive the first information supporting the TCP protocol sent by the sending end device;
[0093] The parsing unit 22 is used to parse the first information based on the preset information configuration to obtain the second information;
[0094] The processing unit 23 is used to process the second information based on the preset mock configuration to obtain third information if the second information indicates that mock processing needs to be performed; wherein the third information supports the TCP protocol;
[0095] The sending unit 24 is used to send the third information to the receiving end device.
[0096] In other embodiments of the present application, when the sending device is a client, the receiving device is a server; when the sending device is a server, the receiving device is a client.
[0097] In other embodiments of the present application, a first channel is established between the proxy device and the receiving device, and a second channel is established between the proxy device and the sending device.
[0098] In other embodiments of the present application, the first channel and the second channel support full-duplex mode.
[0099] In other embodiments of the present application, the device further includes: a transparent transmission unit; wherein:
[0100] The transparent transmission unit is used to transparently transmit the first information to the receiving end device if the third information indicates that the mock processing is not required.
[0101] In other embodiments of the present application, the device further includes: a generating unit and a storing unit; wherein:
[0102] The receiving unit is further used to receive configuration operations for preset information configuration and preset mock configuration;
[0103] A generation unit, used to generate a preset information configuration and a preset mock configuration based on the configuration operation;
[0104] The storage unit is used to store the preset information configuration and the preset mock configuration in the target storage area.
[0105] In other embodiments of the present application, the first information and the third information are socket type information.
[0106] It should be noted that the process of information interaction between the units and modules in this embodiment can refer to the description in other embodiments and will not be repeated here.
[0107] The information testing device provided in the embodiment of the present application receives the first information supporting the TCP protocol sent by the sending device through the proxy device, and then parses the first information based on the preset information configuration to obtain the second information. If the second information indicates that a simulated mock process is required, the second information is processed based on the preset mock configuration to obtain the third information, and the third information is sent to the receiving device. In this way, the proxy device parses and processes the first information sent by the sending device, and when it is determined that the second information obtained by the analysis indicates that a simulated mock process is required, the second information is processed using the preset mock configuration, and the obtained third information is sent to the receiving device, so that the proxy device directly processes the first information related to the TCP protocol, and determines whether the first information needs mock processing according to the configuration, which solves the current problem of low efficiency of mock testing when the client and the server communicate through the TCP protocol, and proposes a method for mock testing when the client and the server communicate through the TCP protocol. During the test process, there is no need to perform code modification, compilation, deployment and other operations, which improves the test efficiency and reduces the test difficulty.
[0108] Based on the above embodiments, the embodiments of the present application provide a proxy device, which can be applied to Figure 1 In the information testing method provided in the corresponding embodiment, refer to Figure 6 As shown, the agent device 3 may include: a memory 31, a processor 32 and a communication bus 33; wherein:
[0109] Memory 31, used for storing executable information;
[0110] A communication bus 33, used to realize the communication connection between the processor 32 and the memory 31;
[0111] The processor 32 is used to execute the information test program stored in the memory 31 to implement the following Figure 1 The implementation process of the information testing method provided in the corresponding embodiment will not be repeated here.
[0112] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, referred to as a storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement reference Figure 1The implementation process of the information testing method provided in the corresponding embodiment will not be repeated here.
[0113] Based on the above embodiments, the present application also provides a computer program product, including a computer program. The computer program can be executed by the processor 32 of the agent device 3 to complete any of the above method steps.
[0114] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0115] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0116] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0118] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. An information testing method, characterized in that: The method is applied to an agent-side device, and the method comprises: Receive first information supporting the TCP protocol sent by a sending device; Based on the preset information configuration, the first information is parsed to obtain second information; If the second information indicates that a mock process needs to be performed, the second information is processed based on a preset mock configuration to obtain third information; wherein the third information supports the TCP protocol; The third information is sent to a receiving device.
2. The method according to claim 1, characterized in that When the sending end device is a client, the receiving end device is a server; when the sending end device is a server, the receiving end device is a client.
3. The method according to claim 2, characterized in that A first channel is established between the proxy device and the receiving device, and a second channel is established between the proxy device and the sending device.
4. The method according to claim 3, characterized in that The first channel and the second channel support a full-duplex mode.
5. The method according to claim 1 or 4, characterized in that: The method further comprises: If the third information indicates that mock processing is not required, the first information is transparently transmitted to the receiving device.
6. The method according to claim 1, characterized in that The method further comprises: Receiving a configuration operation for the preset information configuration and the preset mock configuration; Based on the configuration operation, generating the preset information configuration and the preset mock configuration; The preset information configuration and the preset mock configuration are stored in a target storage area.
7. The method according to claim 1, characterized in that The first information and the third information are socket type information.
8. An information testing device, characterized in that: The device is applied to a proxy terminal device, and comprises: a receiving unit, a parsing unit, a processing unit and a sending unit; wherein: The receiving unit is used to receive first information supporting the TCP protocol sent by a sending end device; The parsing unit is configured to parse the first information based on a preset information configuration to obtain second information; The processing unit is configured to process the second information based on a preset mock configuration to obtain third information if the second information indicates that mock processing is required; wherein the third information supports the TCP protocol; The sending unit is used to send the third information to a receiving end device.
9. An agent terminal device, characterized in that: The device comprises at least: a memory, a processor and a communication bus; wherein: The memory is used to store executable instructions; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the information testing program stored in the memory to implement the steps of the information testing method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores an information testing program, and when the information testing program is executed by the processor, the steps of the information testing method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the information testing method according to any one of claims 1 to 7.