CN113992543A - Response message sending method, device, equipment and readable storage medium - Google Patents

Response message sending method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113992543A
CN113992543A CN202111275406.7A CN202111275406A CN113992543A CN 113992543 A CN113992543 A CN 113992543A CN 202111275406 A CN202111275406 A CN 202111275406A CN 113992543 A CN113992543 A CN 113992543A
Authority
CN
China
Prior art keywords
asynchronous request
identification code
transaction identification
messages
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111275406.7A
Other languages
Chinese (zh)
Inventor
易君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202111275406.7A priority Critical patent/CN113992543A/en
Publication of CN113992543A publication Critical patent/CN113992543A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a device, equipment and a readable storage medium for sending a response message, wherein the method comprises the following steps: acquiring each asynchronous request message sent by a request end; locking each asynchronous request message to obtain the locked asynchronous request message; obtaining a first transaction identification code corresponding to the locked asynchronous request message based on the locked asynchronous request message; and searching a response message corresponding to the first transaction identification code, and sending all the response messages to the request end according to the sequence of the first transaction identification code. By using the method of the invention, the tested application system asynchronously sends a request to the simulator, and the simulator synchronously and sequentially returns a response message. In the process of asynchronous-to-synchronous conversion, the asynchronous efficiency is considered, and the synchronous response sequence is realized.

Description

Response message sending method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of packet technologies, and in particular, to a response packet sending method, apparatus, device, and readable storage medium.
Background
In the non-functional testing process, the tested application system needs to send a request message to the back-end system and obtain a response message of the back-end system to complete the test. However, the processing logic of the back-end system does not belong to the content concerned by the test, and the interference of the back-end system should be eliminated, so the simulator is designed to simulate the transaction feedback message of the back-end system. The simulator should be stable, consume little time, and support a large number of concurrencies.
In the non-functional test process, the requirement on application performance is higher and higher, so that more and more applications adopting asynchronous requests need to be used, and the support mode of the simulator needs to be expanded. The tested application system asynchronously sends a request to the simulator, but the simulator cannot return response messages out of order, so that the tested system cannot be matched with correct response messages, and test error is caused.
Disclosure of Invention
The present invention is directed to a response packet sending method, device, equipment and readable storage medium, so as to improve the above problems.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
in one aspect, an embodiment of the present application provides a method for sending a response packet, where the method includes:
acquiring each asynchronous request message sent by a request end;
locking each asynchronous request message to obtain the locked asynchronous request message;
obtaining a first transaction identification code corresponding to the locked asynchronous request message based on the locked asynchronous request message;
and searching a response message corresponding to the first transaction identification code, and sending all the response messages to the request end according to the sequence of the first transaction identification code.
Optionally, the locking each asynchronous request packet to obtain a locked asynchronous request packet includes:
synchronizing each asynchronous request message by using a Synchronized synchronization method, wherein the sequence of the asynchronous request messages is consistent with the sequence of the asynchronous request messages after synchronization;
and locking each synchronous asynchronous request message to obtain the locked asynchronous request message.
Optionally, the obtaining a first transaction identification code corresponding to the locked asynchronous request packet based on the locked asynchronous request packet includes:
acquiring a first field and a second field;
extracting a first field and a second field contained in the locked asynchronous request message, searching a second transaction identification code corresponding to the first field, and searching a third transaction identification code corresponding to the second field;
and combining the second transaction identification code and the third transaction identification code to obtain a first transaction identification code corresponding to the locked asynchronous request message.
Optionally, the searching for the response packet corresponding to the first transaction identification code includes:
acquiring a response message database input by a worker, wherein the response message database comprises at least one response message, and each response message comprises a corresponding fourth transaction identification code;
and searching the fourth transaction identification code which is the same as the first transaction identification code corresponding to the locked asynchronous request message in the response message database, and taking the response message corresponding to the fourth transaction identification code as the response message corresponding to the first transaction identification code.
Optionally, the locking each asynchronous request packet, after obtaining the locked asynchronous request packet, further includes:
judging whether all asynchronous request messages are locked or not, if so, obtaining a first transaction identification code corresponding to the locked asynchronous request messages based on the locked asynchronous request messages, and if not, searching the unlocked asynchronous request messages and locking the unlocked asynchronous request messages until all the asynchronous request messages are locked.
Optionally, after sending all the response messages to the request end according to the sequence of the transaction identification codes, the method further includes:
and after all the response messages are sent to the request end according to the sequence of the transaction identification codes, triggering the request end to judge whether the number of the received response messages is the same as that of the asynchronous request messages, if the number of the received response messages is the same as that of the asynchronous request messages, finishing sending, and if the number of the received response messages is different from that of the asynchronous request messages, sending prompt information to a worker, wherein the prompt information is used for prompting the worker to search for the reason that the number of the received response messages is different from that of the asynchronous request messages.
In a second aspect, an embodiment of the present application provides a response packet sending apparatus, where the apparatus includes an obtaining module, a locking module, a calculating module, and a searching module.
The acquisition module is used for acquiring each asynchronous request message sent by a request end;
the locking module is used for locking each asynchronous request message to obtain the locked asynchronous request message;
the computing module is used for obtaining a first transaction identification code corresponding to the locked asynchronous request message based on the locked asynchronous request message;
the searching module is configured to search for a response packet corresponding to the first transaction identification code, and send all the response packets to the request end according to the sequence of the first transaction identification code.
Optionally, the locking module includes:
a synchronization unit, configured to synchronize each asynchronous request packet by using a Synchronized synchronization method, where after synchronization, a sequence between the asynchronous request packets is consistent with a sequence in which the asynchronous request packets are received;
and the locking unit is used for locking each synchronous asynchronous request message to obtain the locked asynchronous request message.
Optionally, the calculation module includes:
a first obtaining unit, configured to obtain a first field and a second field;
the extraction unit is used for searching a second transaction identification code corresponding to the first field and a third transaction identification code corresponding to the second field by extracting the first field and the second field contained in the locked asynchronous request message;
and the combining unit is used for combining the second transaction identification code and the third transaction identification code to obtain a first transaction identification code corresponding to the locked asynchronous request message.
Optionally, the search module includes:
the second acquisition unit is used for acquiring a response message database input by a worker, wherein the response message database comprises at least one response message, and each response message comprises a corresponding fourth transaction identification code;
and the searching unit is used for searching the fourth transaction identification code which is the same as the first transaction identification code corresponding to the locked asynchronous request message in the response message database, and taking the response message corresponding to the fourth transaction identification code as the response message corresponding to the first transaction identification code.
Optionally, the apparatus further includes:
the first judging module is used for judging whether all asynchronous request messages are locked or not, if so, obtaining a first transaction identification code corresponding to the locked asynchronous request messages based on the locked asynchronous request messages, and if not, searching the unlocked asynchronous request messages and locking the unlocked asynchronous request messages until all the asynchronous request messages are locked.
Optionally, the apparatus further includes:
and the second judging module is used for triggering the request terminal to judge whether the number of the received response messages is the same as that of the asynchronous request messages or not after all the response messages are sent to the request terminal according to the sequence of the transaction identification codes, finishing sending the response messages if the number of the received response messages is the same as that of the asynchronous request messages, and sending prompt information to a worker if the number of the received response messages is different from that of the asynchronous request messages, wherein the prompt information is used for prompting the worker to find out the reason that the number of the received response messages is different from that of the asynchronous request messages.
In a third aspect, an embodiment of the present application provides a response packet sending device, where the device includes a memory and a processor. The memory is used for storing a computer program; the processor is used for realizing the steps of the response message sending method when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the response message sending method are implemented.
The invention has the beneficial effects that:
1. the invention processes the asynchronous request of the tested system into ordered synchronous response, and can meet the requirement that the response time is not increased too much.
2. By using the method of the invention, the tested application system asynchronously sends a request to the simulator, and the simulator synchronously and sequentially returns a response message. In the process of asynchronous-to-synchronous conversion, the asynchronous efficiency is considered, and the synchronous response sequence is realized.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a response packet sending method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a response packet sending apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a response packet sending device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers or letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
As shown in fig. 1, the present embodiment provides a response packet sending method, which includes step S1, step S2, step S3, and step S4.
Step S1, each asynchronous request message sent by a request end is obtained;
step S2, locking each asynchronous request message to obtain the locked asynchronous request message;
step S3, obtaining a first transaction identification code corresponding to the locked asynchronous request message based on the locked asynchronous request message;
step S4, finding the response packet corresponding to the first transaction identifier, and sending all the response packets to the request end according to the sequence of the first transaction identifier.
At present, asynchronous requests can only respond asynchronously, namely, efficiency can only be guaranteed, and the problem of sequence cannot be solved. Synchronous requests may achieve the desired order, but asynchronous efficiencies cannot be achieved. Thus, no invention has been found that combines asynchronous-efficiency with synchronous-sequence.
By using the method in the embodiment, the tested application system asynchronously sends a request to the simulator, and the simulator synchronously and sequentially returns a response message. In the process of asynchronous-to-synchronous conversion, the asynchronous efficiency is considered, and the synchronous response sequence is realized.
In a specific embodiment of the present disclosure, the step S2 may further include a step S21 and a step S22.
Step S21, each asynchronous request message is Synchronized by using a Synchronized synchronization method, and the sequence of the asynchronous request messages is consistent with the sequence of the asynchronous request messages after synchronization;
and step S22, locking each synchronous asynchronous request message to obtain the locked asynchronous request message.
In terms of the manner of acquiring the lock, a fair lock is selected in this embodiment, that is, a lock is acquired first for asynchronous request messages in a forward order according to the receiving order of the asynchronous request messages. Each asynchronous request message can be ensured not to be in series with other asynchronous request messages by a locking mode.
In a specific embodiment of the present disclosure, the step S3 may further include a step S31, a step S32 and a step S33.
Step S31, acquiring a first field and a second field;
step S32, extracting a first field and a second field contained in the locked asynchronous request message, searching for a second transaction identification code corresponding to the first field, and searching for a third transaction identification code corresponding to the second field;
and step S33, combining the second transaction identification code and the third transaction identification code to obtain the first transaction identification code corresponding to the locked asynchronous request message.
In this embodiment, the first field and the second field are artificially determined. In addition, the transaction identification code may be obtained by only taking one field, for example, extracting a field in the locked asynchronous request message, and then searching for the transaction identification code corresponding to the field, where the field may also be a field set manually.
In a specific embodiment of the present disclosure, the step S4 may further include a step S41 and a step S42.
Step S41, acquiring a response message database input by a worker, wherein the response message database comprises at least one response message, and each response message comprises a corresponding fourth transaction identification code;
step S42, searching the response message database for the fourth transaction identification code that is the same as the first transaction identification code corresponding to the locked asynchronous request message, and taking the response message corresponding to the fourth transaction identification code as the response message corresponding to the first transaction identification code.
In a specific embodiment of the present disclosure, the method may further include step S5.
Step S5, judging whether all asynchronous request messages are locked, if so, obtaining a first transaction identification code corresponding to the locked asynchronous request messages based on the locked asynchronous request messages, if not, searching the unlocked asynchronous request messages and locking the unlocked asynchronous request messages until all the asynchronous request messages are locked.
In this embodiment, the above method can ensure that all asynchronous request messages are locked.
In a specific embodiment of the present disclosure, the method may further include step S6.
Step S6, after sending all the response messages to the request end according to the sequence of the transaction identification codes, triggering the request end to determine whether the number of the received response messages is the same as the number of the asynchronous request messages, if the number of the received response messages is the same as the number of the asynchronous request messages, completing the sending, and if the number of the received response messages is different from the number of the asynchronous request messages, sending a prompt message to a worker, where the prompt message is used to prompt the worker to find a reason that the number of the received response messages is different from the number of the asynchronous request messages.
In this embodiment, by determining whether the number of the received response packets is the same as the number of the asynchronous request packets, the first method can ensure that the number of the received response packets is the same as the number of the asynchronous request packets, and the second method can timely handle the problem occurring in the system.
Example 2
As shown in fig. 2, the present embodiment provides a response packet sending apparatus, which includes an obtaining module 701, a locking module 702, a calculating module 703, and a searching module 704.
An obtaining module 701, configured to obtain each asynchronous request packet sent by a request end;
a locking module 702, configured to lock each asynchronous request packet to obtain a locked asynchronous request packet;
a calculating module 703, configured to obtain, based on the locked asynchronous request packet, a first transaction identification code corresponding to the locked asynchronous request packet;
the searching module 704 is configured to search for a response packet corresponding to the first transaction identifier, and send all the response packets to the requesting end according to the sequence of the first transaction identifiers.
At present, asynchronous requests can only respond asynchronously, namely, efficiency can only be guaranteed, and the problem of sequence cannot be solved. Synchronous requests may achieve the desired order, but asynchronous efficiencies cannot be achieved. Thus, no invention has been found that combines asynchronous-efficiency with synchronous-sequence.
By using the method in the embodiment, the tested application system asynchronously sends a request to the simulator, and the simulator synchronously and sequentially returns a response message. In the process of asynchronous-to-synchronous conversion, the asynchronous efficiency is considered, and the synchronous response sequence is realized.
In one embodiment of the present disclosure, the locking module 702 includes a synchronization unit 7021 and a locking unit 7022.
A synchronizing unit 7021, configured to synchronize each asynchronous request packet by using a Synchronized synchronization method, where after synchronization, a sequence between the asynchronous request packets is consistent with a sequence in which the asynchronous request packets are received;
a locking unit 7022, configured to lock each synchronized asynchronous request packet, so as to obtain a locked asynchronous request packet.
In a specific embodiment of the present disclosure, the calculating module 703 includes a first obtaining unit 7031, an extracting unit 7032, and a combining unit 7033.
A first obtaining unit 7031, configured to obtain a first field and a second field;
extracting unit 7032, using the first field and the second field included in the locked asynchronous request message to extract a second transaction identifier corresponding to the first field, and a third transaction identifier corresponding to the second field;
a combining unit 7033, configured to combine the second transaction identifier and the third transaction identifier to obtain the first transaction identifier corresponding to the locked asynchronous request packet.
In a specific embodiment of the present disclosure, the search module 704 includes a second obtaining unit 7041 and a search unit 7042.
A second obtaining unit 7041, configured to obtain a response message database input by a worker, where the response message database includes at least one response message, and each response message includes a corresponding fourth transaction identification code;
a searching unit 7042, configured to search the response packet database for the fourth transaction identification code that is the same as the first transaction identification code corresponding to the locked asynchronous request packet, and use a response packet corresponding to the fourth transaction identification code as a response packet corresponding to the first transaction identification code.
In a specific embodiment of the present disclosure, the apparatus further includes a first determining module 705.
The first determining module 705 is configured to determine whether all asynchronous request packets are locked, obtain a first transaction identification code corresponding to the locked asynchronous request packet based on the locked asynchronous request packet if all asynchronous request packets are locked, and search and lock the unlocked asynchronous request packet if all asynchronous request packets are not locked until all asynchronous request packets are locked.
In a specific embodiment of the present disclosure, the apparatus further includes a second determining module 706.
A second determining module 706, configured to trigger the request end to determine whether the number of the received response packets is the same as the number of the asynchronous request packets after all the response packets are sent to the request end according to the sequence of the transaction identification codes, complete sending if the number of the received response packets is the same as the number of the asynchronous request packets, and send a prompt message to a worker if the number of the received response packets is different from the number of the asynchronous request packets, where the prompt message is used to prompt the worker to find a reason that the number of the received response packets is different from the number of the asynchronous request packets.
It should be noted that, regarding the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated herein.
Example 3
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a response packet sending device, and the response packet sending device described below and the response packet sending method described above may be referred to in a corresponding manner.
Fig. 3 is a block diagram illustrating a response messaging device 800 according to an example embodiment. As shown in fig. 3, the response message sending device 800 may include: a processor 801, a memory 802. The response messaging device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communication component 805.
The processor 801 is configured to control the overall operation of the response message sending apparatus 800, so as to complete all or part of the steps in the response message sending method described above. The memory 802 is used to store various types of data to support operation at the response messaging device 800, such data can include, for example, instructions for any application or method operating on the response messaging device 800, as well as application-related data such as contact data, transceived messages, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the response message sending apparatus 800 and other apparatuses. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the response message sending Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, for performing the response message sending method described above.
In another exemplary embodiment, a computer readable storage medium is also provided, which comprises program instructions, which when executed by a processor, implement the steps of the above-described response messaging method. For example, the computer readable storage medium may be the memory 802 described above that includes program instructions executable by the processor 801 of the response messaging device 800 to perform the response messaging method described above.
Example 4
Corresponding to the above method embodiment, the disclosed embodiment also provides a readable storage medium, and a readable storage medium described below and the above response message sending method may be referred to in correspondence.
A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the response message sending method of the above-mentioned method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A method for sending a response packet, comprising:
acquiring each asynchronous request message sent by a request end;
locking each asynchronous request message to obtain the locked asynchronous request message;
obtaining a first transaction identification code corresponding to the locked asynchronous request message based on the locked asynchronous request message;
and searching a response message corresponding to the first transaction identification code, and sending all the response messages to the request end according to the sequence of the first transaction identification code.
2. The method according to claim 1, wherein the step of locking each asynchronous request message to obtain the locked asynchronous request message comprises:
synchronizing each asynchronous request message by using a Synchronized synchronization method, wherein the sequence of the asynchronous request messages is consistent with the sequence of the asynchronous request messages after synchronization;
and locking each synchronous asynchronous request message to obtain the locked asynchronous request message.
3. The method according to claim 1, wherein obtaining the first transaction identifier corresponding to the locked asynchronous request packet based on the locked asynchronous request packet comprises:
acquiring a first field and a second field;
extracting a first field and a second field contained in the locked asynchronous request message, searching a second transaction identification code corresponding to the first field, and searching a third transaction identification code corresponding to the second field;
and combining the second transaction identification code and the third transaction identification code to obtain a first transaction identification code corresponding to the locked asynchronous request message.
4. The method for sending a response message according to claim 1, wherein the searching for the response message corresponding to the first transaction identification code includes:
acquiring a response message database input by a worker, wherein the response message database comprises at least one response message, and each response message comprises a corresponding fourth transaction identification code;
and searching the fourth transaction identification code which is the same as the first transaction identification code corresponding to the locked asynchronous request message in the response message database, and taking the response message corresponding to the fourth transaction identification code as the response message corresponding to the first transaction identification code.
5. The method for sending a response message according to claim 1, wherein the step of locking each asynchronous request message to obtain the locked asynchronous request message further comprises:
judging whether all asynchronous request messages are locked or not, if so, obtaining a first transaction identification code corresponding to the locked asynchronous request messages based on the locked asynchronous request messages, and if not, searching the unlocked asynchronous request messages and locking the unlocked asynchronous request messages until all the asynchronous request messages are locked.
6. The method according to claim 1, wherein after sending all the response messages to the request end in the order of the transaction identification codes, the method further comprises:
and after all the response messages are sent to the request end according to the sequence of the transaction identification codes, triggering the request end to judge whether the number of the received response messages is the same as that of the asynchronous request messages, if the number of the received response messages is the same as that of the asynchronous request messages, finishing sending, and if the number of the received response messages is different from that of the asynchronous request messages, sending prompt information to a worker, wherein the prompt information is used for prompting the worker to search for the reason that the number of the received response messages is different from that of the asynchronous request messages.
7. A response packet transmission apparatus, comprising:
the acquisition module is used for acquiring each asynchronous request message sent by a request end;
the locking module is used for locking each asynchronous request message to obtain the locked asynchronous request message;
the calculation module is used for obtaining a first transaction identification code corresponding to the locked asynchronous request message based on the locked asynchronous request message;
and the searching module is used for searching the response message corresponding to the first transaction identification code and sending all the response messages to the request end according to the sequence of the first transaction identification code.
8. The response message sending device of claim 7, wherein the locking module comprises:
a synchronization unit, configured to synchronize each asynchronous request packet by using a Synchronized synchronization method, where after synchronization, a sequence between the asynchronous request packets is consistent with a sequence in which the asynchronous request packets are received;
and the locking unit is used for locking each synchronous asynchronous request message to obtain the locked asynchronous request message.
9. The response message transmitting device of claim 7, wherein the computing module comprises:
a first obtaining unit, configured to obtain a first field and a second field;
the extraction unit is used for searching a second transaction identification code corresponding to the first field and a third transaction identification code corresponding to the second field by extracting the first field and the second field contained in the locked asynchronous request message;
and the combining unit is used for combining the second transaction identification code and the third transaction identification code to obtain a first transaction identification code corresponding to the locked asynchronous request message.
10. The response message sending device of claim 7, wherein the lookup module comprises:
the second acquisition unit is used for acquiring a response message database input by a worker, wherein the response message database comprises at least one response message, and each response message comprises a corresponding fourth transaction identification code;
and the searching unit is used for searching the fourth transaction identification code which is the same as the first transaction identification code corresponding to the locked asynchronous request message in the response message database, and taking the response message corresponding to the fourth transaction identification code as the response message corresponding to the first transaction identification code.
11. The response message sending apparatus according to claim 7, wherein the apparatus further comprises:
the first judging module is used for judging whether all asynchronous request messages are locked or not, if so, obtaining a first transaction identification code corresponding to the locked asynchronous request messages based on the locked asynchronous request messages, and if not, searching the unlocked asynchronous request messages and locking the unlocked asynchronous request messages until all the asynchronous request messages are locked.
12. The response message sending apparatus according to claim 7, wherein the apparatus further comprises:
and the second judging module is used for triggering the request terminal to judge whether the number of the received response messages is the same as that of the asynchronous request messages or not after all the response messages are sent to the request terminal according to the sequence of the transaction identification codes, finishing sending the response messages if the number of the received response messages is the same as that of the asynchronous request messages, and sending prompt information to a worker if the number of the received response messages is different from that of the asynchronous request messages, wherein the prompt information is used for prompting the worker to find out the reason that the number of the received response messages is different from that of the asynchronous request messages.
13. A response message transmitting device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the response messaging method according to any one of claims 1 to 6 when executing the computer program.
14. A readable storage medium, characterized by: the readable storage medium has stored thereon a computer program which, when executed by a processor, carries out the steps of the response messaging method according to any one of claims 1 to 6.
CN202111275406.7A 2021-10-29 2021-10-29 Response message sending method, device, equipment and readable storage medium Pending CN113992543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111275406.7A CN113992543A (en) 2021-10-29 2021-10-29 Response message sending method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111275406.7A CN113992543A (en) 2021-10-29 2021-10-29 Response message sending method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113992543A true CN113992543A (en) 2022-01-28

Family

ID=79744690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111275406.7A Pending CN113992543A (en) 2021-10-29 2021-10-29 Response message sending method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113992543A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811830A (en) * 2005-12-30 2006-08-02 中国工商银行股份有限公司 System and method for making ATM identity test using mobile phone
US20080091679A1 (en) * 2006-09-29 2008-04-17 Eric Nels Herness Generic sequencing service for business integration
CN101388039A (en) * 2008-11-11 2009-03-18 深圳市金蝶中间件有限公司 Response message executing method and device
CN101515387A (en) * 2008-12-31 2009-08-26 候万春 System and method for realizing non-contact payment based on payment bridge
CN102158518A (en) * 2010-12-03 2011-08-17 华为技术有限公司 Data transmission method in content distribution network (CDN), network node and system
CN103731398A (en) * 2012-10-11 2014-04-16 北京百度网讯科技有限公司 Data access method, system and device based on CDN
CN108848000A (en) * 2018-05-07 2018-11-20 深圳壹账通智能科技有限公司 Network request test method, device, computer equipment and storage medium
CN109493217A (en) * 2018-10-16 2019-03-19 翟红鹰 Prevent method, system, equipment and the computer readable storage medium for repeating to pay

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811830A (en) * 2005-12-30 2006-08-02 中国工商银行股份有限公司 System and method for making ATM identity test using mobile phone
US20080091679A1 (en) * 2006-09-29 2008-04-17 Eric Nels Herness Generic sequencing service for business integration
CN101388039A (en) * 2008-11-11 2009-03-18 深圳市金蝶中间件有限公司 Response message executing method and device
CN101515387A (en) * 2008-12-31 2009-08-26 候万春 System and method for realizing non-contact payment based on payment bridge
CN102158518A (en) * 2010-12-03 2011-08-17 华为技术有限公司 Data transmission method in content distribution network (CDN), network node and system
CN103731398A (en) * 2012-10-11 2014-04-16 北京百度网讯科技有限公司 Data access method, system and device based on CDN
CN108848000A (en) * 2018-05-07 2018-11-20 深圳壹账通智能科技有限公司 Network request test method, device, computer equipment and storage medium
CN109493217A (en) * 2018-10-16 2019-03-19 翟红鹰 Prevent method, system, equipment and the computer readable storage medium for repeating to pay

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
乔淑夷: "基于MVC模式的Web前端框架关键技术研究与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *

Similar Documents

Publication Publication Date Title
CN111177005B (en) Service application testing method, device, server and storage medium
CN108984388B (en) Method and terminal equipment for generating automatic test case
WO2020258655A1 (en) Data verification method and apparatus, and computer device and storage medium
US9680719B2 (en) Communication system, client terminal, and server
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN112597020A (en) Interface testing method and device, computer equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112181835A (en) Automatic testing method and device, computer equipment and storage medium
CN114640503A (en) Application system verification method and device, computer equipment and storage medium
CN112910741B (en) Interface testing method and device, computer equipment and storage medium
CN109213782B (en) Search interface configuration and display method and device and communication equipment
CN111641554B (en) Message processing method and device and computer readable storage medium
CN117499287A (en) Web testing method, device, storage medium and proxy server
CN110585724B (en) Method and device for updating form data in game client
CN116627432A (en) Front-end application automatic deployment method, device, equipment and medium
CN113992543A (en) Response message sending method, device, equipment and readable storage medium
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN114615325A (en) Message pushing method and device, computer equipment and storage medium
CN107203915B (en) Data storage method and device
CN110147531B (en) Method, device and storage medium for identifying similar text content
CN111488286B (en) Method and device for independently developing Android modules
CN113986747A (en) Data generation method and device, electronic equipment and storage medium
CN109086145B (en) Data generation method and device and computer storage medium
CN111985446A (en) Face recognition method and system
CN112131611A (en) Data correctness verification method, device, equipment, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220128

RJ01 Rejection of invention patent application after publication