A message generation method, system, apparatus and storage medium
By using an automated message generation method and a business parameter group and a preset aggregator testing system to process initial messages, the problem of development accuracy and efficiency for agents when accessing different airline systems was solved, and efficient NDC standard message generation was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2026-04-03
AI Technical Summary
Because different airlines use different versions of the NDC standard, agents need to have their developers manually parse and reverse engineer the messages when connecting to the content aggregator, which reduces the accuracy and efficiency of development.
By obtaining the business parameter group, retrieving the initial message and performing updates and format conversions, and using the preset aggregator test system to parse the message and generate response messages, an automated message generation process is achieved.
It improves the accuracy and efficiency of business message development when the NDC standard is not understood, reduces manual intervention, and ensures that the generated messages conform to the NDC standard.
Smart Images

Figure CN116303545B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a message generation method, system, apparatus, and storage medium. Background Technology
[0002] The New Distribution Capability (NDC) standard is a data transmission standard based on Extensible Markup Language (XML) promoted by the International Air Transport Association (IATA) to enhance data transmission capabilities between airlines and agents. Because different airlines use different versions of the NDC standard, their sales system interfaces differ, hindering agent integration. Therefore, most agents currently use content aggregators to transform message content to interface with the ticketing interfaces of various airlines.
[0003] During the process of agents integrating with content aggregators, agent developers need to perform development and testing work such as message creation and parsing under various business scenarios to ensure that the developed business interface messages meet the NDC standard. Current development methods require developers to analyze message information such as message structure and field meanings based on standard messages and develop through iterative testing. However, because the NDC standard is a proprietary standard in the civil aviation field, agent developers' understanding of the message structure and field meanings under the NDC standard is not as thorough as that of professionals in the aviation information field. This results in reduced accuracy and efficiency in developing business messages under the NDC standard when agent developers perform parsing and reverse engineering based on existing messages due to a lack of clarity regarding message structure or field meanings. Summary of the Invention
[0004] The purpose of this invention is to provide a message generation method, system, apparatus, and storage medium to improve the accuracy and efficiency of service message development under the NDC standard. The specific technical solution is as follows:
[0005] A message generation method, the method comprising:
[0006] Obtain the service parameter group and retrieve the initial message corresponding to the scenario type identifier in the service parameter group;
[0007] Based on each request parameter in the business parameter group, update and format conversion operations are performed on the initial message to obtain a test message;
[0008] The test message is input into a preset aggregator test system, so that the preset aggregator test system parses the test message and generates a response message based on the parsing result and each of the request parameters in the test message.
[0009] Optionally, the step of inputting the test message into a preset aggregator testing system, so that the preset aggregator testing system parses the test message and generates a response message based on the parsing result and each of the request parameters in the test message, includes:
[0010] The test message is input into the preset aggregator test system, so that the preset aggregator test system parses the message structure of the test message to obtain the parsing result including each request parameter and request scenario identifier in the test message. Based on each request parameter and response scenario identifier, the initial response message is updated to generate the response message. The request scenario identifier is the identifier of a standard scenario message stored in the database of the preset aggregator test system that has the same message structure as the test message. The request scenario identifier has a corresponding relationship with the response scenario identifier, and the response scenario identifier has a corresponding relationship with the initial response message.
[0011] Optionally, the step of updating and format-converting the initial message based on each request parameter in the service parameter group to obtain a test message includes:
[0012] Iterate through the initial message and filter out multiple fields to be updated;
[0013] For each of the fields to be updated: update the parameter value of the field to be updated using the parameter value of the request parameter in the business parameter group that has the same parameter name as the field to be updated;
[0014] Obtain the initial test message;
[0015] The format conversion operation is performed on the initial test message in the editable format to obtain the test message in the preset aggregator test system readable format.
[0016] Optionally, the method further includes:
[0017] Perform a reverse format conversion operation on the generated response message in the preset aggregator test system readable format to obtain an editable response message;
[0018] The editable response message is displayed through a human-machine interface;
[0019] The editable response message is stored.
[0020] A message generation system, the system comprising:
[0021] The message matching module is used to obtain the service parameter group and retrieve the initial message corresponding to the scenario type identifier in the service parameter group;
[0022] The message processing module is used to perform update and format conversion operations on the initial message based on each request parameter in the service parameter group to obtain a test message;
[0023] The message generation module is used to input the test message into a preset aggregator test system, so that the preset aggregator test system can parse the test message and generate a response message based on the parsing result and each of the request parameters in the test message.
[0024] Optionally, the message generation module is configured as follows:
[0025] The test message is input into the preset aggregator test system, so that the preset aggregator test system parses the message structure of the test message to obtain the parsing result including each request parameter and request scenario identifier in the test message. Based on each request parameter and response scenario identifier, the initial response message is updated to generate the response message. The request scenario identifier is the identifier of a standard scenario message stored in the database of the preset aggregator test system that has the same message structure as the test message. The request scenario identifier has a corresponding relationship with the response scenario identifier, and the response scenario identifier has a corresponding relationship with the initial response message.
[0026] Optionally, the message processing module is configured as follows:
[0027] Iterate through the initial message and filter out multiple fields to be updated;
[0028] For each of the fields to be updated: update the parameter value of the field to be updated using the parameter value of the request parameter in the business parameter group that has the same parameter name as the field to be updated;
[0029] Obtain the initial test message;
[0030] The format conversion operation is performed on the initial test message in the editable format to obtain the test message in the preset aggregator test system readable format.
[0031] Optionally, the system further includes:
[0032] The message processing module is used to perform a reverse format conversion operation on the generated response message in the preset aggregator test system readable format to obtain an editable response message;
[0033] The editable response message is displayed through a human-machine interface;
[0034] The editable response message is stored.
[0035] A message generation apparatus, the message generation apparatus comprising:
[0036] processor;
[0037] Memory used to store the processor's executable instructions;
[0038] The processor is configured to execute the instructions to implement the message generation method as described above.
[0039] A computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of a message generation apparatus, enables the message generation apparatus to perform a message generation method as described above.
[0040] The message generation method, system, apparatus, and storage medium provided in this invention can obtain business request messages that meet the requirements of NDC standard business scenarios by introducing an initial message and processing it through subsequent steps. This allows developers to obtain such messages without needing to understand the message structure and field meanings under the NDC standard. Furthermore, by updating the initial message, developers can obtain correctly formatted test messages even without knowing the NDC standard's message regulations. Finally, by configuring a preset aggregator test system to perform message parsing and response message generation based on the test message, the above processes are automatically implemented by the preset aggregator test system without manual intervention. This improves the accuracy and efficiency of response message generation. Therefore, this invention improves the accuracy and efficiency of business message development under the NDC standard.
[0041] Of course, any product or method implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description
[0042] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0043] Figure 1 A flowchart of a message generation method provided in an embodiment of the present invention;
[0044] Figure 2 A block diagram of a message generation system provided as an optional embodiment of the present invention;
[0045] Figure 3 A block diagram of a message generation apparatus provided for another optional embodiment of the present invention. Detailed Implementation
[0046] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0047] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0048] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0049] This invention provides a message generation method, such as... Figure 1 As shown, the message generation method includes:
[0050] S101. Obtain the business parameter group and retrieve the initial message corresponding to the scenario type identifier in the business parameter group.
[0051] Optionally, in one alternative embodiment of the present invention, the above-mentioned business parameter group may be a data group consisting of a scenario type identifier and multiple request parameters, used to meet the data requirements of different business scenarios under the NDC standard.
[0052] It should be noted that, in actual application scenarios, the specific data in the above business parameter group can be set by the user according to different business scenarios and development needs. This invention does not impose too many restrictions or elaborate on the specific types of request parameters in the above business parameter group.
[0053] It should be noted that, in practical application scenarios, the above-mentioned scenario type identifier can be used to characterize the correspondence between each request parameter in the business parameter group and the initial message in different business scenarios.
[0054] It should be noted that in practical applications, the initial message mentioned above can be a historical request message provided by the airline's sales system that meets the NDC standard. Since the NDC standard specifies message structure, field meanings, and field types for different business scenarios, this invention, by introducing the aforementioned initial message and processing it through subsequent steps, enables developers to obtain business request messages that meet the requirements of NDC standard business scenarios without needing to understand the message structure and field meanings under the NDC standard. This improves the accuracy and efficiency of the test messages generated in subsequent steps.
[0055] Optionally, in another alternative embodiment of the present invention, the above-mentioned business parameter group can be parameters input by developers through a human-computer interaction interface according to development needs.
[0056] S102. Based on the request parameters in the business parameter group, perform update and format conversion operations on the initial message to obtain the test message.
[0057] It should be noted that in practical applications, the above request parameters can be parameters for various request business scenarios under the NDC standard. For example, in a ticket purchase request scenario, the corresponding request parameters include, but are not limited to: origin, destination, passenger information, passenger type, and departure time. In a price inquiry request scenario, the corresponding request parameters include, but are not limited to: price quote identifier, airline code, passenger information, and passenger type.
[0058] Optionally, in one alternative embodiment of the present invention, the above-mentioned update operation may be an operation of adding each request parameter to its corresponding position in the initial message to obtain a test message that meets the needs of the test business scenario. Because in the existing message development process, developers need to assemble complete test messages for development and testing, this results in test messages developed by developers with a low level of understanding of the NDC standard not meeting the message structure specified by the NDC standard, thus reducing development and testing efficiency. However, since the request parameters in different business scenarios are known, the present invention, by updating the initial message, enables developers to obtain a correctly formatted test message even without understanding the relevant provisions of the NDC standard, thereby improving the efficiency and accuracy of test message generation, and consequently improving the accuracy and efficiency of message development.
[0059] It should be noted that in practical applications, the above update operation involves editing the initial message. Since the development process requires the messages to be readable, the initial message needs to be an editable document, such as a lightweight data exchange format (JavaScript Object Notation, JSON). However, the testing system requires the test message to be in a structured, non-editable format, such as Extensible Markup Language (XML). Therefore, after updating the initial message, the above format conversion operation needs to be performed on the updated initial message to ensure that the test message meets the format requirements of the testing system.
[0060] Those skilled in the art will understand that, in practical applications, the aforementioned format conversion operation can be implemented using Java toolkits for parsing XML, such as JDOM and DOM4J. This invention does not impose excessive limitations or elaborate on the specific process of performing the aforementioned format conversion operation.
[0061] S103. Input the test message into the preset aggregator test system so that the preset aggregator test system can parse the test message and generate a response message based on the parsing result and the request parameters in the test message.
[0062] Optionally, in one alternative embodiment of the present invention, the aforementioned preset aggregator testing system can be a testing system built based on the aggregator in the NDC architecture. Since the aforementioned preset aggregator testing system can be configured with interfaces for different business scenario testing systems, it parses the test messages, matches the business scenarios according to the structure of the test messages, and then calls different business scenario testing systems to generate response messages based on the test messages. Furthermore, since each business scenario testing system is also built based on the business scenario system in the NDC architecture, the generated response messages also conform to the NDC standard. The present invention improves the accuracy of the final generated response messages by configuring the aforementioned preset aggregator testing system to parse the test messages. Simultaneously, since both the message parsing and message generation processes are implemented by the aforementioned preset aggregator testing system, no manual intervention is required. This improves the efficiency of response message generation, thereby improving the efficiency of message development.
[0063] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0064] Although the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous.
[0065] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0066] This invention introduces an initial message and processes it through subsequent steps, enabling developers to obtain business request messages that meet the requirements of NDC standard business scenarios without needing to understand the message structure and field meanings under the NDC standard. Simultaneously, by updating the initial message, developers can obtain correctly formatted test messages even without knowing the NDC standard's message regulations. Finally, by configuring a preset aggregator testing system to perform message parsing and response message generation based on the test message, the entire process is automatically implemented by the preset aggregator testing system without manual intervention. This improves the accuracy and efficiency of response message generation. Therefore, this invention improves the accuracy and efficiency of business message development under the NDC standard.
[0067] Optionally, the test message is input into a preset aggregator test system, which then parses the test message and generates a response message based on the parsing results and the request parameters in the test message, including:
[0068] The test message is input into the preset aggregator test system, which then parses the message structure to obtain the parsing results, including the request parameters and request scenario identifiers in the test message. Based on the request parameters and response scenario identifiers, the system updates the initial response message and generates a response message. The request scenario identifier is a standard scenario message identifier stored in the database of the preset aggregator test system that has the same message structure as the test message. The request scenario identifier corresponds to the response scenario identifier, and the response scenario identifier corresponds to the initial response message.
[0069] It should be noted that, in practical application scenarios, there are various implementation methods for inputting the test message into a preset aggregator test system, so that the preset aggregator test system can parse the message structure of the test message and obtain the parsing results including the request parameters and request scenario identifiers in the test message. Here, one example is provided:
[0070] The test message is set to a flight ticket query request message. After inputting the test message into the preset aggregator testing system, the system will scan the structure of the test message. Since different business scenarios under the NDC standard have their own corresponding message structures, the preset aggregator testing system can obtain the request scenario identifier by comparing the scanned test message structure with the message structures of each business scenario.
[0071] Furthermore, since the NDC standard specifies the types and meanings of each field in the messages for various business scenarios, the pre-defined aggregator testing system can identify and extract the fields in the test messages whose meanings are request parameters by scanning the test message structure.
[0072] It should be noted that in practical application scenarios, there are multiple implementation methods for updating the initial response message and generating a response message based on each request parameter and response scenario identifier. Here, one example is provided:
[0073] The pre-defined aggregator test system, based on the parsed response scenario identifier, calls the corresponding business scenario test system interface, inputting all request parameters and test messages into the relevant business scenario test system through this interface. Since the business scenario test system is built upon the business scenario system within the NDC architecture, it can simulate the message sending and receiving environment of a real business scenario. Therefore, the business scenario test system will return corresponding response messages based on each request parameter and test message.
[0074] Optionally, based on each request parameter in the business parameter group, update and format conversion operations are performed on the initial message to obtain a test message, including:
[0075] Iterate through the initial message and filter out multiple fields to be updated;
[0076] For each field to be updated: use the parameter value of the request parameter in the business parameter group that has the same parameter name as the field to be updated to update the parameter value of the field to be updated;
[0077] Obtain the initial test message;
[0078] Perform a format conversion operation on the initial test message with editable format to obtain a test message with a preset aggregator test system readable format.
[0079] Optionally, in one alternative embodiment of the present invention, the field to be updated may be a field in the initial message whose content is a request parameter.
[0080] It should be noted that, in the actual application scenario, the test messages in the preset aggregator test system in the above-mentioned readable format are non-editable test messages.
[0081] Those skilled in the art will understand that, in practical applications, the consistency of the aforementioned parameter determination can be achieved using a character matching algorithm. Various character matching algorithms can be used, such as the Brute-Force naive matching algorithm and the Kmp algorithm. This invention will not elaborate further on the specific construction methods of the aforementioned character matching algorithms.
[0082] Optionally, the above are as follows: Figure 1 The message generation method shown also includes:
[0083] Perform a reverse format conversion operation on the generated response message in the preset aggregator test system readable format to obtain an editable response message;
[0084] Editable response messages are displayed through a human-machine interface;
[0085] Store editable response messages.
[0086] Those skilled in the art will understand that, in practical applications, the above-mentioned reverse format conversion operation can be implemented using Java toolkits for parsing XML, such as JDOM and DOM4J. This invention does not impose excessive limitations or elaborate on the specific process of the above-mentioned reverse format conversion operation.
[0087] It should be noted that in practical application scenarios, the above-mentioned... Figure 1 There are various specific implementations of the message generation method shown, and one is provided as an example here:
[0088] The request parameters in the business parameter group input by the user through the human-computer interaction interface include: origin, destination, departure time, and number of passengers. The scenario type identifier of the input business parameter group represents the content of the flight ticket search function.
[0089] Step 1: After obtaining the aforementioned business parameter group, invoke the initial message corresponding to the identifier representing the flight ticket query function based on the scenario type identifier. Extract the request parameters based on the field names of each request parameter, and update the parameters of the fields to be updated corresponding to the initial message. Obtain an editable initial test message.
[0090] Optionally, in one alternative embodiment of the present invention, the above-mentioned calling module can be called through a preset application programming interface (API).
[0091] Step 2: Perform a format conversion operation on the initial test message to convert it into a test message in a preset format readable by the aggregator test system.
[0092] Step 3: Input the test message into the preset aggregator test system so that the preset aggregator test system can parse the message structure and obtain each request parameter and request scenario identifier. The preset aggregator test system calls the corresponding business scenario test system interface according to the request scenario identifier and sends each request parameter to the corresponding business scenario test system through the interface. This allows the business scenario test system to update its corresponding initial response message based on each request parameter and generate a response message.
[0093] It should be noted that the response message generated in step three above is still a message in a format readable by the preset aggregator test system.
[0094] Step four: Perform a reverse format conversion on the response message to obtain an editable response message, and then display and store the editable response message.
[0095] It should be noted that, in practical application scenarios, step one above is as follows: Figure 1 The optional embodiments of steps S101 and S102 shown above, the second and third steps are as follows: Figure 1 An optional embodiment of step S103 shown.
[0096] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] Corresponding to the above method embodiments, the present invention also provides a message generation system, such as... Figure 2 As shown, the message generation system includes:
[0098] The message matching module 201 is used to obtain the service parameter group and retrieve the initial message corresponding to the scenario type identifier in the service parameter group;
[0099] The message processing module 202 is used to update and convert the initial message based on each request parameter in the business parameter group to obtain a test message.
[0100] The message generation module 203 is used to input the test message into the preset aggregator test system, so that the preset aggregator test system can parse the test message and generate a response message based on the parsing result and the request parameters in the test message.
[0101] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0102] Optionally, the above message generation module 203 is configured as follows:
[0103] The test message is input into the preset aggregator test system, which then parses the message structure to obtain the parsing results, including the request parameters and request scenario identifiers in the test message. Based on the request parameters and response scenario identifiers, the system updates the initial response message and generates a response message. The request scenario identifier is a standard scenario message identifier stored in the database of the preset aggregator test system that has the same message structure as the test message. The request scenario identifier corresponds to the response scenario identifier, and the response scenario identifier corresponds to the initial response message.
[0104] Optionally, the above message processing module 202 is configured as follows:
[0105] Iterate through the initial message and filter out multiple fields to be updated;
[0106] For each field to be updated: use the parameter value of the request parameter in the business parameter group that has the same parameter name as the field to be updated to update the parameter value of the field to be updated;
[0107] Obtain the initial test message;
[0108] Perform a format conversion operation on the initial test message with editable format to obtain a test message with a preset aggregator test system readable format.
[0109] Optionally, the above are as follows: Figure 2 The message generation system shown also includes:
[0110] The message processing module is used to perform reverse format conversion on the generated response messages in the preset aggregator test system readable format to obtain an editable response message.
[0111] Editable response messages are displayed through a human-machine interface;
[0112] Store editable response messages.
[0113] This invention also provides a message generation apparatus, such as... Figure 3 As shown, the message generation device includes:
[0114] Processor 301;
[0115] Memory 302 is used to store executable instructions of processor 301;
[0116] The processor 301 is configured to execute instructions to implement any of the message generation methods described above.
[0117] This invention also provides a computer-readable storage medium, which, when the instructions in the computer-readable storage medium are executed by the processor of a message generation apparatus, enables the message generation apparatus to perform any of the message generation methods described above.
[0118] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM, and memory includes at least one memory chip. Memory is an example of computer-readable media.
[0119] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0120] It should be noted that the computer-readable storage medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. Program code contained on a computer-readable storage medium can be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0121] The aforementioned computer-readable storage medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0122] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
[0123] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0124] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
Claims
1. A message generation method, characterized in that, The method includes: Obtain the business parameter group and retrieve the initial message corresponding to the scenario type identifier in the business parameter group. The scenario type identifier is an identifier used to characterize the correspondence between each request parameter in the business parameter group and the initial message under different business scenarios. Traverse the initial message and filter out multiple fields to be updated; for each field to be updated: update the parameter value of the field to be updated using the parameter value of the request parameter in the business parameter group that has the same parameter name as the field to be updated; obtain an initial test message; perform a format conversion operation on the editable initial test message to obtain a test message in a preset aggregator test system readable format, wherein the test message in the preset aggregator test system readable format is a non-editable test message; The test message is input into a preset aggregator test system, so that the preset aggregator test system parses the test message and generates a response message based on the parsing result and each of the request parameters in the test message.
2. The method according to claim 1, characterized in that, The step of inputting the test message into a preset aggregator test system, so that the preset aggregator test system parses the test message and generates a response message based on the parsing result and each of the request parameters in the test message, includes: The test message is input into the preset aggregator test system, so that the preset aggregator test system parses the message structure of the test message to obtain the parsing result including each request parameter and request scenario identifier in the test message. Based on each request parameter and response scenario identifier, the initial response message is updated to generate the response message. The request scenario identifier is the identifier of a standard scenario message stored in the database of the preset aggregator test system that has the same message structure as the test message. The request scenario identifier has a corresponding relationship with the response scenario identifier, and the response scenario identifier has a corresponding relationship with the initial response message.
3. The method according to claim 1, characterized in that, The method further includes: Perform a reverse format conversion operation on the generated response message in the preset aggregator test system readable format to obtain an editable response message; The editable response message is displayed through a human-machine interface; The editable response message is stored.
4. A message generation system, characterized in that, The system includes: The message matching module is used to obtain the business parameter group and retrieve the initial message corresponding to the scenario type identifier in the business parameter group. The scenario type identifier is an identifier used to characterize the correspondence between each request parameter in the business parameter group and the initial message under different business scenarios. The message processing module is used to perform update and format conversion operations on the initial message based on each request parameter in the service parameter group to obtain a test message; The message generation module is used to input the test message into a preset aggregator test system, so that the preset aggregator test system can parse the test message and generate a response message based on the parsing result and each of the request parameters in the test message; The message processing module is configured as follows: The initial message is traversed to filter out multiple fields to be updated; for each field to be updated: the parameter value of the field to be updated is updated using the parameter value of the request parameter in the business parameter group that has the same parameter name as the field to be updated; an initial test message is obtained; the editable initial test message is converted to obtain a test message in a preset aggregator test system readable format, wherein the test message in the preset aggregator test system readable format is a non-editable test message.
5. The system according to claim 4, characterized in that, The message generation module is configured as follows: The test message is input into the preset aggregator test system, so that the preset aggregator test system parses the message structure of the test message to obtain the parsing result including each request parameter and request scenario identifier in the test message. Based on each request parameter and response scenario identifier, the initial response message is updated to generate the response message. The request scenario identifier is the identifier of a standard scenario message stored in the database of the preset aggregator test system that has the same message structure as the test message. The request scenario identifier has a corresponding relationship with the response scenario identifier, and the response scenario identifier has a corresponding relationship with the initial response message.
6. The system according to claim 4, characterized in that, The system also includes: The message processing module is used to perform a reverse format conversion operation on the generated response message in the preset aggregator test system readable format to obtain an editable response message; The editable response message is displayed through a human-machine interface; The editable response message is stored.
7. A message generation apparatus, characterized in that, The message generation device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the message generation method as described in any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the message generation apparatus, the message generation apparatus is able to perform the message generation method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Service message processing method and device
CN102255786A
Interface testing method and device, simulation baffle and system
CN107656874A