Message generation method and device, storage medium and electronic equipment

By automatically generating packets as test messages, the problem of high development and testing costs of the business party system when updating the bill service system is solved, and the effect of simplifying the acquisition of test messages and reducing development and testing costs is achieved.

CN119544526APending Publication Date: 2025-02-28AGRICULTURAL BANK OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411718558.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When the bill business system is updated, the business party system needs to carry out a lot of development and testing work, and the test environment depends on the bill organization's system environment, resulting in high communication costs and difficult to obtain test packets.

Method used

By automatically generating messages as test messages, the process of obtaining test messages is simplified. The specific method includes obtaining the pending message in the transmission message, extracting the first field information, and querying the second field information in the preset database and the message configuration device, generating the corresponding downlink message, and updating its status information.

Benefits of technology

It realizes automatic generation of downlink messages, simulates message transmission process, provides test messages for the test of the message system, simplifies the collection process of test messages, and reduces the cost of development and testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544526A_ABST
    Figure CN119544526A_ABST
Patent Text Reader

Abstract

The invention discloses a message generation method and device, a storage medium and electronic equipment. The method comprises the following steps: acquiring a transmission message in a process of interacting with a message system, querying a to-be-processed message in the transmission message based on a message execution role, and extracting first field information of the to-be-processed message; querying in a preset database and / or message configuration equipment to obtain second field information of the to-be-processed message; according to the message execution role, generating at least one downlink message corresponding to the to-be-processed message based on the first field information and the second field information of the to-be-processed message; and sending the at least one downlink message, and updating the state information of the at least one downlink message. The automatic generation of the downlink message is realized to simulate the message transmission process, the test message is provided for the test of the message system, and the acquisition process of the test message is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a message generation method, device, storage medium and electronic equipment. Background Art

[0002] During the bill business processing, the bills are transmitted in the form of messages between the business party system and the bill business system of the bill institution.

[0003] In the process of implementing the present invention, it is found that there are at least the following technical problems in the prior art: when the bill business system of the bill institution is updated, the business party system needs to be adaptively improved. In the process of improving the business party system, a lot of development and testing work is required. In the test environment, each business party system has only one environment to connect to the bill business system of the bill institution to send and receive messages, which makes the development and testing work completely dependent on the environment and system configuration of the bill business system of the bill institution, resulting in high communication costs and difficulty in obtaining test messages. Summary of the invention

[0004] The present invention provides a message generation method, device, storage medium and electronic equipment, which can automatically generate messages as test messages and simplify the test message acquisition process.

[0005] According to one aspect of the present invention, there is provided a message generating method, comprising:

[0006] Acquire a transmission message in the process of interacting with the message system, query a to-be-processed message in the transmission message based on the message execution role, and extract first field information of the to-be-processed message;

[0007] Querying a preset database and / or a message configuration device to obtain second field information of the message to be processed;

[0008] Generate at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed according to the message execution role;

[0009] The at least one downlink message is sent, and the state information of the at least one downlink message is updated.

[0010] Optionally, the executing role of the message and generating at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed includes:

[0011] Determine the downlink message type corresponding to the message to be processed according to the message execution role, and the downlink message type corresponding to the message to be processed is at least one item; determine the field information required for the downlink message type in the first field information and the second field information of the message to be processed; generate the downlink message corresponding to the downlink message type based on the message template corresponding to the downlink message type and the field information required for the downlink message type.

[0012] Optionally, the method also includes: displaying the at least one downlink message on a message configuration device; in response to a first editing operation on the at least one downlink message, updating field information in the at least one downlink message to obtain an updated downlink message; based on the sending object of the updated downlink message, sending the updated downlink message, and updating status information of the updated downlink message.

[0013] Optionally, the method further includes: in response to a second editing operation on the at least one downlink message, setting sending attributes of the at least one downlink message, the sending attributes including one or more of a sending order, a sending interval information, and a cyclic sending information; and sending the at least one downlink message based on the sending object of the at least one downlink message and the sending attributes of the at least one downlink message.

[0014] Optionally, the message execution role includes an applicant and / or a responder;

[0015] In the case where the message execution role includes an applicant, the message to be processed is an application message;

[0016] In the case that the message execution role includes a reply party, the message to be processed is a reply message.

[0017] According to another aspect of the present invention, a message generation device is provided, the message generation device comprising a server and a message configuration device, the server being communicatively connected to the message configuration device;

[0018] The server performs the following processing: obtaining a transmission message in the process of interacting with the message system, querying the message to be processed in the transmission message based on the message execution role, and extracting the first field information of the message to be processed; querying the preset database and / or message configuration device to obtain the second field information of the message to be processed; according to the message execution role, generating at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed; sending the at least one downlink message, and updating the status information of the at least one downlink message.

[0019] Optionally, the message configuration device is used to: display the at least one downlink message; update the field content of the at least one downlink message in response to a first editing operation on the at least one downlink message; and / or, in response to a second editing operation on the at least one downlink message, set the sending attributes, wherein the sending attributes include one or more of a sending order, a sending interval information, and a cyclic sending information.

[0020] Optionally, the server is communicatively connected to the front-end of the message system, the front-end of the message system cancels the message transmission with the original message processing end, transmits the uplink message to the server, and reads at least one downlink message generated by the server.

[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0022] at least one processor; and

[0023] a memory communicatively connected to the at least one processor; wherein,

[0024] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message generation method described in any embodiment of the present invention.

[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message generation method described in any embodiment of the present invention when executed.

[0026] The technical solution of the embodiment of the present invention obtains the message to be processed by querying the message according to the message execution role, obtains the first field information by parsing the field information in the processed message, and obtains the second field information by querying the field information of one or more of the preset database and the message configuration device, so as to provide field information for the generation of the downlink message. According to the message execution role and the read first field information and second field information, at least one downlink message corresponding to the message to be processed is generated, and the automatic generation of the downlink message is realized to simulate the message transmission process, provide the test message for the test of the message system, and simplify the collection process of the test message.

[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 is a flow chart of a message generation method provided by an embodiment of the present invention;

[0030] Figure 2 It is a flow chart of a message generation method applicable to an embodiment of the present invention;

[0031] Figure 3 It is a structural schematic diagram of a message generating device provided by an embodiment of the present invention;

[0032] Figure 4 It is a schematic diagram of data interaction between a service system and a message generating device provided by an embodiment of the present invention;

[0033] Figure 5 It is a schematic diagram of the structure of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] Figure 1This is a flow chart of a message generation method provided by an embodiment of the present invention. This embodiment is applicable to the case where test messages are automatically generated to provide a basis for testing a message system. The method can be executed by a message generation device, which can be implemented in the form of hardware and / or software. The message generation device can be configured in electronic devices such as servers, mobile terminals or computers. Figure 1 As shown, the method includes:

[0037] S110: Acquire a transmission message in the process of interacting with the message system, query a to-be-processed message in the transmission message based on a message execution role, and extract first field information of the to-be-processed message.

[0038] S120: Query a preset database and / or a message configuration device to obtain second field information of the message to be processed.

[0039] S130. Generate at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed according to the message execution role.

[0040] S140: Send the at least one downlink message, and update the status information of the at least one downlink message.

[0041] In this embodiment, the message system may be a message system corresponding to a set business, and the set business includes but is not limited to a bill business. The message system here is a message system corresponding to any business participant, that is, a business party system. Taking the bill business as an example, the business participants include but are not limited to financial institutions, legal organizations, non-legal organizations, and individual industrial and commercial households.

[0042] In this embodiment, by setting a message generation device to be connected to the message system to simulate the message transmission between the message system and the original message processing end, a downlink message is generated, and the generated downlink message is used as a test message to provide a basis for the test process of the business system. Taking the bill business as an example, the original message processing end can be the bill business system of the bill institution.

[0043] In the process of message transmission, the uplink message can be understood as a sending message, which is a message sent by the business system of the business participant to the original message processing end. The downlink message can be understood as a receiving message, which is a message sent by the original message processing end to the business system of the business participant.

[0044] The message execution role includes the applicant and / or the responder. In this embodiment, the message generation device can be used as different message execution roles according to the needs, for example, the message execution role corresponding to the message generation device can be only the applicant, only the responder, or both the applicant and the responder.

[0045] For messages of different business types, the message execution roles corresponding to the message generation device may be different. Optionally, the correspondence between the business type and the message execution role may be preset. Taking the bill business as an example, the business type may include but is not limited to the endorsement business.

[0046] Optionally, when the message execution role includes the applicant, the message to be processed is an application message. The message execution role including the applicant can be understood as the message execution role is only the applicant, or the message execution role is the applicant and the reply party. The application message can be understood as a message formed by the first business participant initiating an application to the second business participant.

[0047] In the case where the message execution role includes a reply party, the message to be processed is a reply message. The message execution role including the reply party can be understood as the message execution role is only the reply party, or the execution message roles are the applicant and the reply party. The reply message can be understood as a message formed by the second business policy in reply to the application message.

[0048] In this embodiment, the message generation device is connected to the message system in communication, and can transmit messages with the message system, for example, receiving an uplink message transmitted by the message system, and the uplink message can be an application message. Optionally, the transmission message in the process of interaction between the message generation device and the message system can include an application message transmitted by the message system. The message generation device stores the application message transmitted by the message system locally, so as to generate a downlink message of the application message based on the application message.

[0049] The uplink message transmitted by the message system may also include a reply message, and accordingly, the transmission message in the process of interaction between the message generation device and the message system may also include a reply message sent by the message system. The message generation device stores the reply message to facilitate the generation of a downlink message of the reply message.

[0050] In some embodiments, after the message generation device generates a downlink message of the application message for the application message of the message system, the downlink message is sent to the message system, and a reply message of the message system in response to the downlink message of the application message is received. In some embodiments, the downlink message of the application message is simulated and generated through the visual message configuration of the message configuration device, and the downlink message of the application message is transmitted to the message system to receive the reply message of the message system in response to the downlink message of the application message. Exemplarily, the field information of the downlink message of the application message to be generated is queried in the message configuration device and / or the preset database, and the downlink message of the application message is generated based on the queried field information, and the downlink message of the application message is stored and sent.

[0051] In the transmission message in the process of interaction between the message generation device and the message system, the to-be-processed message is determined in the transmission message based on the message execution role, and a downlink message of the to-be-processed message is generated to provide a test message for the test process of the message system.

[0052] Optionally, in the case where the message execution role includes the applicant, the application message is queried in the transmission message in the process of interaction between the message generation device and the message system as a message to be processed. For example, the application message can be queried based on the business type and message identification information. Taking the bill business as an example, the business type can be an endorsement type, and the message identification information can include a ticket number and a sub-ticket interval. For example, the message identification information can be determined based on the message identification information of the application message sent by the message system.

[0053] Optionally, when the message execution role includes a reply party, a reply message is queried in the transmission message in the process of interaction between the message generation device and the message system as a message to be processed. For example, the reply message may be queried based on the service type and the message identification information.

[0054] The first field information in the message to be processed is obtained. For example, the first field information may include but is not limited to a message identifier and a message sending time.

[0055] It is understandable that the message configuration device can perform information configuration on the message to be processed, and accordingly, the message configuration device can store the configuration information of the message to be processed. The message system is configured with a preset database, which stores historical behavior information of processed messages, and the historical behavior information may include application behavior information and reply behavior information, etc. Optionally, the second field information is queried in the message configuration device and / or the preset database based on the message identification information of the message to be processed. Exemplarily, the historical behavior information corresponding to the message to be processed is queried in the preset database, and the general service confirmation message identification is queried in the message configuration device. The second field information queried by different message execution roles in the message configuration device and / or the preset database may be different.

[0056] A field information set formed by the first field information and the second field information, the field information set includes multiple field information, including the required field information for generating a downlink message of the message to be processed. A downlink message of the message to be processed is generated based on multiple field information in the first field information and the second field information. Optionally, when the message to be processed is an application message or a reply message, the number and / or type of downlink messages of the message to be processed may be different. For an application message or a reply message, when the message execution role is different, the number and / or type of downlink messages of the message to be processed may also be different.

[0057] Optionally, the method of generating at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed according to the message execution role includes: determining the downlink message type corresponding to the message to be processed according to the message execution role, wherein the downlink message type corresponding to the message to be processed is at least one item; determining the field information required for the downlink message type in the first field information and the second field information of the message to be processed; and generating the downlink message corresponding to the downlink message type based on the message template corresponding to the downlink message type and the field information required for the downlink message type.

[0058] Preset the downlink message type corresponding to the different message execution roles of the application message and the downlink message type corresponding to the different message execution roles of the reply message. Determine the downlink message type based on the message execution role when the message to be processed is an application message or a reply message.

[0059] Taking the bill business as an example, for the application message, when the message execution role is only the applicant, the downlink message type includes the general business confirmation message; when the message execution role is only the responder, the downlink message type includes the general business forwarding message and the bill detailed information delivery message; when the message execution role is the applicant and the responder, if the general business confirmation message is marked as successful, the downlink message type includes the general business confirmation message, the general business forwarding message and the bill detailed information delivery message; if the general business confirmation message is marked as failed, the downlink message type includes the general business confirmation message.

[0060] For the reply message, when the message execution role is only the applicant, the downlink message type includes the general business response message; when the message execution role is only the reply party, the downlink message type includes the general business confirmation message; when the message execution role is the applicant and the reply party, if the general business confirmation message is marked as successful, the downlink message type includes the general business response message and the general business confirmation message; if the general business confirmation message is marked as failed, the downlink message type includes the general business confirmation message.

[0061] Preset a message template corresponding to each downlink message type, and preset a correspondence between the downlink message type and the required field information. When the downlink message type is determined, call the message template corresponding to the downlink message type, and determine the required field information of the downlink message type in the first field information and the second field information. Generate a downlink message corresponding to the downlink message type based on the message template corresponding to the downlink message type and the field information required for the downlink message type. Specifically, add the field information required for the downlink message type to the corresponding field of the message template corresponding to the downlink message type to obtain the downlink message corresponding to the downlink message type.

[0062] In the process of generating a downlink message corresponding to the message to be processed, the initial state of the downlink message can be set, and the initial state can represent the generation state of the downlink message. In the process of generating the downlink message, the initial state can be generating, and after the downlink message is generated, the initial state can be completed.

[0063] One or more operations of editing, storing and sending may be performed on the downlink message of the message to be processed, and after completing the sending operation of the downlink message of the message to be processed, the status of the downlink message is updated, for example, it may be updated to "sent".

[0064] On the basis of the above embodiments, in order to simulate multiple different situations of the message transmission process through the message generation device, the generated downlink message can be edited to obtain downlink messages of different situations, wherein different situations may include different message anomaly types. For example, message anomaly types include but are not limited to field missing and field information error.

[0065] The method also includes: displaying the at least one downlink message on a message configuration device; in response to a first editing operation on the at least one downlink message, updating field information in the at least one downlink message to obtain an updated downlink message; based on the sending object of the updated downlink message, sending the updated downlink message, and updating the status information of the updated downlink message.

[0066] The message configuration device is configured with a display component, and at least one downstream message can be displayed on the message configuration device to achieve visual editing of at least one downstream message. Optionally, the display page of the message configuration device may include a message editing area, and the message editing area displays field information in the downstream message. The first editing operation on the downstream message can be understood as an editing operation on at least one field information in the downstream message, for example, the first editing operation of the downstream message includes one or more deletion operations and / or modification operations on the field information in the downstream message. Optionally, multiple message anomaly types of the downstream message are obtained, and a first editing process is performed on at least one downstream message according to the message anomaly type to obtain a downstream message corresponding to the message anomaly type. Optionally, the editing probability of the downstream message can be determined based on the occurrence probability corresponding to the message anomaly type, and the first editing operation is performed on the downstream message currently displayed when the editing probability of the downstream message hits the currently displayed downstream message.

[0067] On the basis of the above embodiment, during the testing of the message system, some test scenarios need to execute information such as the arrival order of downlink messages. In order to implement the above test scenarios, the sending attributes of at least one downlink message may be edited.

[0068] Optionally, in response to a second editing operation on the at least one downlink message, sending attributes of the at least one downlink message are set, the sending attributes including one or more of a sending order, a sending interval information, and a cyclic sending information; and the at least one downlink message is sent based on the sending object of the at least one downlink message and the sending attributes of the at least one downlink message.

[0069] The display page of the message configuration device also includes a sending attribute configuration area, and the sending attribute configuration area may include multiple attribute configuration controls. The second editing operation can be understood as a setting operation on the sending attributes of the downlink message, and may include a triggering operation on multiple attribute configuration controls. In response to the triggering operation on at least one attribute configuration control, the sending attributes of the downlink message are set. In the case where the number of downlink messages is multiple, the sending order and sending interval information of each downlink message are set so that the arrival order of the multiple downlink messages meets the requirements of the test scenario. When the downlink message is one, or any downlink message among multiple downlink messages, the cyclic sending information of the above-mentioned downlink message can be set, and the cyclic sending information may include the number of cyclic sending times and the sending interval information, so that the cyclically sent downlink message meets the requirements of the test scenario.

[0070] In some embodiments, a configuration file of at least one test scenario of the test process may be pre-set, such as at least one message exception scenario and at least one message arrival scenario, etc. In response to a trigger operation on a display page of a message configuration device, the configuration file of the test scenario may be displayed to provide a reference for the first editing process and / or the second editing process of at least one downlink message. Optionally, the configuration file of the test scenario may be edited to set an identifier of at least one test scenario in the configuration file to indicate whether a downlink message that meets the test scenario has been generated, thereby avoiding the problem of missing some test scenarios during the editing process of the downlink message, which affects the test process.

[0071] According to the sending attribute of at least one downlink message, at least one downlink message or at least one updated downlink message is sent, and the state information of the downlink message is set, for example, the state information is "sent".

[0072] By storing the message to be processed, at least one downlink message of the message to be processed and the state information of at least one downlink message, a test message set is formed to provide a data basis for the test process of the message system.

[0073] The technical solution of this embodiment obtains the message to be processed by querying the message according to the message execution role, obtains the first field information by parsing the field information in the processed message, and obtains the second field information by querying the field information of one or more of the preset database and the message configuration device, so as to provide field information for the generation of the downlink message. According to the message execution role and the read first field information and second field information, at least one downlink message corresponding to the message to be processed is generated, and the automatic generation of the downlink message is realized to simulate the message transmission process, provide the test message for the test of the message system, and simplify the collection process of the test message.

[0074] Based on the above embodiments, the present invention provides an example of a message generation method. Figure 2 , Figure 2 is a flow chart of a message generation method provided by an embodiment of the present disclosure. The message generation method comprises: executing a role (i.e. Figure 2 The participating roles in the application process) perform branch processing of the business process in the application direction. When the message execution role is the applicant and the responder or only the applicant, the application message is queried based on the business type, business type and message identification information. Taking the bill business as an example, the business type can be an endorsement type, and the message identification information can include the ticket number and the sub-ticket interval. Accordingly, the obtained application message can be an endorsement application message. The first field information in the application message is obtained, for example, it can be field information such as the message identification number and the message sending time. In the message configuration device (i.e. Figure 2 For example, when the message execution role is the applicant, the message configuration device needs to configure the general service confirmation message mark of the applicant direction. When the message configuration device is both the applicant and the responder, the historical behavior information of the application message is queried through the preset database. When the message configuration device is only the responder, the message configuration device needs to configure various bills and service information.

[0075] A downlink message of the application message is generated based on the message execution role and the first field information and the second field information obtained. Specifically, if the message execution role is both the applicant and the reply party, if the applicant marks the general service confirmation message as successful, the generated downlink message includes a general service confirmation message, a general service forwarding message, and a bill detailed information delivery message. If the applicant marks the general service confirmation message as failed, the generated downlink message includes an assembled general service confirmation message. If the message execution role is only the applicant, the generated downlink message includes an assembled general service confirmation message. If the message execution role is only the reply party, the generated downlink message includes an assembled general service forwarding message and a bill detailed information delivery message. After the message assembly is completed, the initial status is set to generated one by one. The generated downlink message of the application direction can be edited and saved, and a single downlink message can be sent. After completion, the message status is updated to sent. In this step, the sending order, interval order, etc. of the message can be adjusted as needed to meet the needs of a specific test scenario.

[0076] The branch processing of the reply direction business process is performed according to the message execution role. If the message execution role is both the applicant and the reply party or the message execution role is only the reply party, the received reply message is queried according to the business type and message identification information. The reply message can be a general business response message, for example. If the query is successful, the first field information of the reply message, such as the message identification number and the message sending time, is obtained, otherwise the process ends. If the message execution role is only the applicant, skip this step.

[0077] Perform a field query on the message configuration device and / or the preset database to obtain the second field information. Generate a downlink message of the reply message based on the message execution role and the obtained first field information and second field information. The message execution role is both the applicant and the reply party. If the reply party marks the general service confirmation message as successful, the downlink message of the reply message includes a general service confirmation message and a forwarded general service response message. If the applicant marks the general service confirmation message as failed, the downlink message of the reply message includes and sends the general service confirmation message. If the message execution role is only the applicant, the downlink message of the reply message includes a forwarded general service response message. If the message execution role is only the reply party, the downlink message of the reply message includes a general service confirmation message.

[0078] The generated downlink message in the reply direction can be edited and saved, and a single message can be sent. After completion, the message status is updated to sent. In this step, the message sending order, interval order, etc. can be adjusted as needed to meet the needs of specific test scenarios.

[0079] The branch processing of the reply direction business process is performed according to the message execution role. When the message execution role is only the reply party, the uplink message of the receiving message system in the application direction cannot be received. The downlink message in the application direction is configured by the message configuration device to simulate the response of the receiving message system to the uplink message in the application direction. For example, the required field information of the downlink message of the application message can be queried in the message configuration device and / or the preset database. Taking the endorsement business as an example, the field information includes but is not limited to the package number, bill sub-ticket interval, bill type, bill source, endorsement applicant account, and endorsement reply person account. Based on the above field information, a downlink message of the application document is generated and sent to the message system. The message system receives a reply message to the downlink message of the application document to generate a downlink message of the reply message, which will not be repeated here.

[0080] Figure 3 Schematic diagram of the structure of a message generating device provided by an embodiment of the present invention. Figure 3 As shown, the apparatus includes: a server 210 and a message configuration device 220, the server 210 is communicatively connected with the message configuration device 220; optionally, the message configuration device 220 includes but is not limited to electronic devices such as mobile phones, tablet computers and PCs.

[0081] The server 210 performs the following processing procedures: obtaining a transmission message in the process of interacting with the message system, querying the message to be processed in the transmission message based on the message execution role, and extracting the first field information of the message to be processed; querying the preset database and / or message configuration device to obtain the second field information of the message to be processed; according to the message execution role, generating at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed; sending the at least one downlink message, and updating the status information of the at least one downlink message.

[0082] Based on the above embodiments, optionally, the message configuration device 210 is used to: display the at least one downlink message; update the field content of the at least one downlink message in response to a first editing operation on the at least one downlink message; and / or, in response to a second editing operation on the at least one downlink message, set the sending attributes, wherein the sending attributes include one or more of a sending order, a sending interval information, and a cyclic sending information.

[0083] Optionally, the server 210 is communicatively connected to the front-end of the message system 220, the front-end of the message system cancels the message transmission with the original message processing end, transmits the uplink message to the server, and reads at least one downlink message generated by the server.

[0084] For example, see Figure 4 , Figure 4It is a schematic diagram of data interaction between a business system and a message generation device provided in an embodiment of the present invention. The message system of the business participant includes a front-end, a server, a user end and a database. Among them, the user end can be an electronic device such as a mobile phone, a tablet computer, etc. The user end can display interactive pages and collect operation information of the business participant. The server end is the back-end server of the message system of the business participant, which receives and processes the downlink message passed by the front-end and interacts with the user end. The front-end is used to isolate the message system and the original message processing end of the business participant. The front-end assembles the uplink message to be sent according to the specified format, transmits it to the original message processing end, and receives the downlink message sent by the original message processing end. The database in the business system is the preset database in the above embodiment, which is used to store processed messages and message information.

[0085] In this embodiment, the message transmission between the front-end of the message system and the original message processing end is canceled, and the message generating device is connected to the front-end of the message system. Through the message transmission with the front-end of the message system, the message transmission process is simulated, and downlink messages of different business types are generated to provide test data for the test process of the business system.

[0086] The message generation device provided in the embodiment of the present invention can execute the message generation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0087] Figure 5 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0088] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0089] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0090] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a message generation method.

[0091] In some embodiments, the message generation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the message generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the message generation method in any other appropriate manner (e.g., by means of firmware).

[0092] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0093] The computer program for implementing the message generation method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0094] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a processor to execute a message generation method, the method comprising:

[0095] Acquire a transmission message in the process of interacting with a message system, query the message to be processed in the transmission message based on the message execution role, and extract the first field information of the message to be processed; query the preset database and / or message configuration device to obtain the second field information of the message to be processed; according to the message execution role, generate at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed; send the at least one downlink message, and update the status information of the at least one downlink message.

[0096] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0097] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0098] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0099] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0100] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0101] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A message generation method, characterized in that: include: Acquire a transmission message in the process of interacting with the message system, query a to-be-processed message in the transmission message based on the message execution role, and extract first field information of the to-be-processed message; Querying a preset database and / or a message configuration device to obtain second field information of the message to be processed; Generate at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed according to the message execution role; The at least one downlink message is sent, and the state information of the at least one downlink message is updated.

2. The method according to claim 1, characterized in that The generating, according to the message execution role, at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed, includes: Determine, according to the message execution role, a downlink message type corresponding to the message to be processed, wherein the downlink message type corresponding to the message to be processed is at least one item; Determine, in the first field information and the second field information of the message to be processed, the field information required for the downlink message type; A downlink message corresponding to the downlink message type is generated based on a message template corresponding to the downlink message type and field information required by the downlink message type.

3. The method according to claim 1, characterized in that The method further comprises: Displaying the at least one downlink message on a message configuration device; In response to a first editing operation on the at least one downlink message, updating field information in the at least one downlink message to obtain an updated downlink message; Based on the sending object of the updated downlink message, the updated downlink message is sent, and the state information of the updated downlink message is updated.

4. The method according to claim 1, characterized in that: The method further comprises: In response to a second editing operation on the at least one downlink message, setting a sending attribute of the at least one downlink message, the sending attribute including one or more of a sending sequence, sending interval information, and cyclic sending information; The at least one downlink message is sent based on the sending object of the at least one downlink message and the sending attribute of the at least one downlink message.

5. The method according to claim 1, characterized in that The message execution roles include applicant and / or responder; In the case where the message execution role includes an applicant, the message to be processed is an application message; In the case that the message execution role includes a reply party, the message to be processed is a reply message.

6. A message generating device, characterized in that: The message generating device comprises a server and a message configuration device, wherein the server is communicatively connected with the message configuration device; The server performs the following processing: Acquire a transmission message in the process of interacting with the message system, query a to-be-processed message in the transmission message based on the message execution role, and extract first field information of the to-be-processed message; Querying a preset database and / or a message configuration device to obtain second field information of the message to be processed; Generate at least one downlink message corresponding to the message to be processed based on the first field information and the second field information of the message to be processed according to the message execution role; The at least one downlink message is sent, and the state information of the at least one downlink message is updated.

7. The message generating device according to claim 6, characterized in that: The message configuration device is used for: Displaying the at least one downlink message; In response to a first editing operation on the at least one downlink message, updating the field content of the at least one downlink message; and / or, in response to a second editing operation on the at least one downlink message, setting the sending attributes of the at least one downlink message, the sending attributes including one or more of the sending order, sending interval information and cyclic sending information.

8. The message generating device according to claim 6, characterized in that: The server is in communication connection with the front-end of the message system. The front-end of the message system cancels the message transmission with the original message processing end, transmits the uplink message to the server, and reads at least one downlink message generated by the server.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message generation method according to any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message generation method according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Test message generation method, electronic equipment and storage medium

    CN117194260A

  • Message transceiving test method, device, equipment and medium

    CN117459421A

  • Message forwarding device and method applied to DPU, DPU equipment and storage medium

    CN118590566A

  • Apparatus and method of generating message automatically in real-time data transmission processing system

    KR1020160080391A