Business function test method and device, electronic equipment and storage medium

By acquiring and configuring test messages from the business system in the outgoing queue, and generating receipt messages using a bypass mirroring method, the problems of high storage resource consumption and development difficulty in existing technologies are solved, and comprehensive business function testing is realized.

CN120915693APending Publication Date: 2025-11-07INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511108724.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-08
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

Existing message simulators need to manage a large amount of business data, consume a lot of storage resources, are difficult to develop, cannot provide comprehensive business function test records, and have poor test results.

Method used

The system obtains outgoing test messages and internal test messages from the business system through the outgoing queue, enters them into the outgoing queue using a bypass mirroring method, generates outgoing receipt messages according to the configuration rules of outgoing test messages and receipt messages, and sends them to the business system through the internal queue to generate business function test logs.

Benefits of technology

The configuration and generation of receipt messages were implemented, which ensured the effectiveness of business function testing, reduced storage resource consumption and development difficulty, and improved the comprehensiveness of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120915693A_ABST
    Figure CN120915693A_ABST
Patent Text Reader

Abstract

The invention discloses a service function testing method and device, electronic equipment and a storage medium, and relates to the field of system testing and financial science and technology, and the method comprises the steps: obtaining an outgoing test message and an incoming test message of a service system through an outgoing queue; wherein the receiving test message enters the outgoing queue in a bypass mirroring manner; generating an outgoing receipt message according to the outgoing test message and the receipt message configuration rule, and sending the outgoing receipt message to a service system through an internal receiving queue; and generating a service function test log according to the outgoing test message, the received test message and the outgoing receipt message. According to the technical scheme provided by the embodiment of the invention, the configuration generation of the receipt message is realized, the effectiveness of the service function test is ensured, and the storage resource occupation amount and the development difficulty are reduced; and meanwhile, various types of test messages are obtained based on a bypass mirroring mode, so that the comprehensiveness of a service function test result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of financial technology and system testing, and particularly relates to a business function test method and device, an electronic device and a storage medium. BACKGROUND

[0002] With the increase of the business volume of financial institutions, the business system needs to interact with external systems more frequently, and this interaction is specifically completed through business message transmission. Therefore, when testing the business function of the business system, the business system needs to be provided with matching reply messages.

[0003] In the prior art, the reply message provided for the business system is usually generated by a message simulator. The message simulator itself stores a large amount of business data, including various types of business reply messages. After obtaining the business message sent by the business system, the message simulator calls and feeds back the pre-stored business reply message, thereby simulating the message response result of the external system through the business reply message, and providing the answer data for the function test of the business system.

[0004] However, the above-mentioned message simulator needs to manage a large amount of business data, which not only needs to occupy more storage resources, but also increases the development difficulty. At the same time, the function of the above-mentioned message simulator is relatively single, and cannot provide comprehensive business function test records for the business system, and the business function test effect is poor. SUMMARY

[0005] The present application provides a business function test method, device, electronic device and storage medium to solve the problem of poor completeness of business function test results.

[0006] According to another aspect of the present application, a business function test method is provided, comprising:

[0007] obtaining the outward test message and the inward test message of the business system through the outward queue; wherein the inward test message enters the outward queue in a bypass mirroring manner;

[0008] generating an outward reply message according to the outward test message and the reply message configuration rule, and sending the outward reply message to the business system through the inward queue;

[0009] generating a business function test log according to the outward test message, the inward test message and the outward reply message.

[0010] After the test message of the business system is obtained through the sending queue, the method further comprises: obtaining the test message of the business system through the sending queue; and generating the test log of the business function according to the test message of the business system, the test message of the business system and the test message of the business system.

[0011] Before the sending reply message is generated according to the test message of the business system and the reply message configuration rule, the method further comprises: obtaining the sending business message of the business system from the sending queue and the sending response message of the business system from the receiving queue through the mirror reading mode; and constructing the reply message configuration rule according to the sending business message and the sending response message.

[0012] The method for testing the business function further comprises: generating the test message of the business system through the test message configuration rule, and sending the test message of the business system to the business system through the receiving queue.

[0013] Before the test message of the business system is generated through the test message configuration rule, the method further comprises: obtaining the business message of the business system from the receiving queue through the mirror reading mode, and constructing the test message configuration rule according to the business message of the business system.

[0014] The sending reply message comprises a reply success message and a reply failure message; and the method for generating the sending reply message according to the test message of the business system and the reply message configuration rule comprises: generating the reply success message or the reply failure message according to the test message of the business system and the reply message configuration rule; wherein the reply message configuration rule comprises at least one of a random configuration rule, a specified configuration rule, an alternate configuration rule and a simulation configuration rule, and the simulation configuration rule is generated based on historical business messages.

[0015] According to another aspect of the present application, a device for testing a business function is provided, comprising:

[0016] A test message obtaining module is configured to obtain a test message of a business system through a sending queue and a test message of the business system through the sending queue; wherein the test message of the business system enters the sending queue in a bypass mirror mode.

[0017] A reply message obtaining module is configured to generate a sending reply message according to the test message of the business system and a reply message configuration rule, and send the sending reply message to the business system through a receiving queue.

[0018] A test log acquisition module is configured to generate a service function test log according to the outgoing test message, the incoming test message and the outgoing reply message.

[0019] According to another aspect of the present application, an electronic device is provided, which comprises at least one processor and a memory connected with the at least one processor in communication; 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 to enable the at least one processor to perform the service function test method according to any of the embodiments of the present application.

[0020] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to perform the service function test method according to any of the embodiments of the present application when the computer instructions are executed by the processor.

[0021] According to another aspect of the present application, a computer program product is provided, which comprises a computer program for enabling a processor to perform the service function test method according to any of the embodiments of the present application when the computer program is executed by the processor.

[0022] The technical solution of the embodiments of the present application firstly acquires the outgoing test message and the incoming test message of the service system through the outgoing queue, wherein the incoming test message enters the outgoing queue in a bypass mirroring manner, secondly generates the outgoing reply message according to the outgoing test message and the reply message configuration rule, and sends the outgoing reply message to the service system through the incoming queue, and finally generates the service function test log according to the outgoing test message, the incoming test message and the outgoing reply message. The passive message simulator configured in this way not only realizes the configuration and generation of the reply message, ensures the effectiveness of the service function test, but also reduces the storage resource occupation and the development difficulty; at the same time, the bypass mirroring manner is used to acquire various types of test messages, and the comprehensiveness of the service function test result is improved.

[0023] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0025] Figure 1 is a flow chart of a service function test method according to an embodiment of the present application;

[0026] Figure 2 is a schematic diagram of a message interaction process between a service system and an external system in a service environment according to an embodiment of the present application;

[0027] Figure 3 is a schematic diagram of a message interaction process between a payer, a clearing center and a payee in a service environment according to an embodiment of the present application;

[0028] Figure 4 is a schematic diagram of a message interaction process between a service system and a message simulator in a test environment according to an embodiment of the present application;

[0029] Figure 5 is a flow chart of another service function test method according to an embodiment of the present application;

[0030] Figure 6 is a flow chart of still another service function test method according to an embodiment of the present application;

[0031] Figure 7 is a structural schematic diagram of a service function test device according to an embodiment of the present application;

[0032] Figure 8 is a structural schematic diagram of an electronic device implementing a service function test method according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present application.

[0034] It is to be understood that the terms "first", "second", and the like used in the description and the claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged, where appropriate, so that the embodiments of the application described herein can be carried out in other than the order shown or described herein. Furthermore, the terms "comprise" and "have", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or apparatus that comprises a list of steps or units is not necessarily limited to those steps or units that are clearly listed, but can include other steps or units that are not clearly listed or inherent to such processes, methods, products, or apparatuses.

[0035] Embodiment one

[0036] Figure 1 is a flowchart of a service function test method provided by Embodiment one of the present application. The present embodiment can be applied to the case of generating an outgoing receipt message according to the configuration rules of an outgoing test message and a receipt message. The method can be executed by a service function test device, which can be realized in the form of hardware and / or software. The service function test device can be configured in a message simulator, which can be configured in an electronic device such as a server. As shown in Figure 1 , the method comprises:

[0037] S101, obtaining an outgoing test message and an incoming test message of a service system through an outgoing queue; wherein the incoming test message enters the outgoing queue in a bypass mirroring manner.

[0038] The test message refers to a service message sent or received by a service system in a test environment when performing service function test. The outgoing refers to the behavior of sending a message by a service system, and the incoming refers to the behavior of receiving a message by a service system. Therefore, the outgoing test message refers to the test message sent by the service system, and the incoming test message refers to the test message received by the service system. The outgoing queue refers to a queue located on the side of the service system and used for storing outgoing messages. The incoming queue refers to a queue located on the side of the service system and used for storing received messages.

[0039] In a real service environment, as shown in Figure 2 , when the service system sends a message to the outside (i.e. an outgoing service message), the outgoing service message is first sent to the outgoing queue, and then sent to the external system through the outgoing queue. After the external system generates a response message (i.e. an outgoing response message) to the outgoing service message and returns it, the outgoing response message first enters the incoming queue, and then is sent to the service system through the incoming queue.

[0040] When the business system receives the message (i.e., the internal-receiving business message), the internal-receiving business message is first sent to the internal-receiving queue after being sent by the external system, and then is sent to the business system through the internal-receiving queue; after the business system generates a response message (i.e., the internal-receiving response message) for the internal-receiving business message, the internal-receiving response message is first sent to the external-sending queue, and then is sent to the external system through the external-sending queue.

[0041] In the embodiment of the present application, the business system can be a transaction system of a financial institution, and the external system can be a transaction system of a clearing center. Taking the business system processing the online banking credit business as an example, as shown in FIG. 1, when the business system acts as a payer, the business system needs to send an external-sending business message to the clearing center to complete the clearing of the transaction through the clearing center and obtain the external-sending response message returned by the clearing center; wherein the external-sending response message includes a business success message and a business failure message, the business success message can exist in the form of a difference notification message, indicating that the transaction is successful; the business failure message can exist in the form of a general notification message, indicating that the payer disagrees with the transaction, i.e., the transaction fails. Figure 3

[0042] When the business system acts as a payee, the clearing center will send an internal-receiving business message to the business system, the business system generates an internal-receiving response message according to the internal-receiving business message, and sends the internal-receiving response message to the clearing center, the clearing center sends a business success message or a business failure message to the payee according to the response result of the internal-receiving response message.

[0043] In the test environment, the message sending and receiving object of the business system is not a real external system; as shown in FIG. 2, after the business system sends the external-sending test message to the external-sending queue, the message simulator obtains the external-sending test message by reading the external-sending queue; at the same time, the internal-receiving test message is a business message simulated by the external system, which is transmitted to the internal-receiving queue through a specific receiving tool after being configured by the test personnel, and then the internal-receiving queue sends it to the business system. Figure 4

[0044] In the embodiment of the present application, by setting a bypass channel in the transmission channel between the receiving tool and the internal-receiving queue, when the internal-receiving test message enters the internal-receiving queue through the transmission channel, the mirror data of the internal-receiving test message enters the external-sending queue through the bypass channel. Since the message simulator can read the messages in the external-sending queue, the internal-receiving test message entering the external-sending queue will also be read by the message simulator, and accordingly the message simulator completes the acquisition of the internal-receiving test message through the external-sending queue.

[0045] S102, generating an external-sending receipt message according to the external-sending test message and the receipt message configuration rule, and sending the external-sending receipt message to the business system through the internal-receiving queue.

[0046] ​​After the message simulator extracts the message parameters of the outgoing test message, the message simulator generates a corresponding reply message (i.e., an outgoing reply message) through the pre-configured reply message configuration rule. In fact, the outgoing reply message is equivalent to the outgoing response message fed back by the external system in the business environment after the test. The message parameters can include one or more of the message reconciliation date, the message initiating agency number, the message receiving agency number, the message transaction amount, the business message identification number, the send-receive flag, the transaction amount, the transaction amount currency, the business type, and the business category.

[0047] After the message simulator sends the outgoing reply message to the inward collection queue, the outgoing reply message in the inward collection queue can be read by the business system. In particular, the reply message configuration rule defines not only the message template but also which parameter items in the message parameters correspond to the to-be-filled items in the message template.

[0048] S103. Generating a business function test log according to the outgoing test message, the inward collection test message, and the outgoing reply message.

[0049] The message simulator receives each message, including the outgoing test message, the inward collection test message, and the outgoing reply message. According to the message type, the message ID (Identity document), and the message content information, the message simulator completes a log file writing operation once, that is, writes each message as a log record into the business function test log. In this way, the business function test log records each message related to the business system. According to the business identification number, different log records can be associated to obtain a complete log record of a business.

[0050] Optionally, in the embodiment of the present application, the generating of the business function test log according to the outgoing test message, the inward collection test message, and the outgoing reply message includes: if it is determined that each log file does not have remaining storage space, taking a starting log file as a storage starting point and continuing to perform an overwriting storage operation.

[0051] Specifically, for the business function test of the business system, usually, "day" is taken as the test period, thus the log file only needs to meet the business information requirement of one day. In order to prevent the single log file from being too large, the capacity of each log file can be configured as 10M (Mega), the messages are saved through a total of 20 log files, that is, the total capacity of the log files is 200M. After all the log files are stored, the latest acquired messages are overwritten into the messages with the longest time from the start log file, so as to meet the business function test requirement of the business system, avoid too many log files and too large capacity of the single log file, and reduce the management complexity of the log files.

[0052] Optionally, in the embodiment of the present application, the generating the business function test log according to the outward test message, the inward test message and the outward receipt message comprises: if it is detected that the first commission date of the current message is different from the second commission date of the previous message, and the first commission date is greater than the second commission date, generating the test result message of the second commission date according to the business function test log.

[0053] Specifically, as described in the above technical solution, since the business function test of the business system usually takes each day as the test period, if the commission date (the first commission date) of the current acquired message is different from the commission date (the second commission date) of the previous message, and the first commission date is greater than the second commission date, it means that the messages of yesterday have been transmitted, at this time, the test result message is generated according to all the messages of yesterday (the second commission date), so as to reflect the business function test result in a single test period through the test result message. Taking the online banking credit business as an example, the test result message includes the account reconciliation record of the day, and the account reconciliation record records the account reconciliation date, the difference field, the difference state, the amount summary information and the number summary information, etc.

[0054] Optionally, in the embodiment of the present application, after the outward test message and the inward test message of the business system are acquired through the outward queue, it further comprises: acquiring the inward receipt message of the business system through the outward queue; and the generating the business function test log according to the outward test message, the inward test message and the outward receipt message comprises: generating the business function test log according to the outward test message, the inward test message, the outward receipt message and the inward receipt message.

[0055] Specifically, as described in the above technical solution, Figure 4As shown, after the service system obtains the inward test message, the service system generates a receipt message (i.e., inward receipt message) based on the message and sends the inward receipt message to the outward queue. At this time, the message simulator can also obtain the inward receipt message through the outward queue and write the inward receipt message into the log file. Thus, according to the outward test message, the inward test message, the outward receipt message and the inward receipt message, the service function test log is generated, which further ensures complete acquisition of all types of messages involved in the service system and ensures comprehensiveness of the service function test log record result.

[0056] Optionally, in the embodiment of the application, the outward receipt message includes a receipt success message and a receipt failure message; the generating the outward receipt message according to the outward test message and the receipt message configuration rule includes: generating the receipt success message or the receipt failure message according to the outward test message and the receipt message configuration rule; wherein the receipt message configuration rule includes at least one of a random configuration rule, a specified configuration rule, an alternate configuration rule and a simulation configuration rule, and the simulation configuration rule is generated based on historical service messages.

[0057] Specifically, as described in the above technical solution, the outward receipt message can include a receipt success message reflecting successful service processing or a receipt failure message reflecting failed service processing; the random configuration rule refers to random generation of the receipt success message and the receipt failure message to test the performance of the service system in processing multiple types of services; the specified configuration rule refers to specifying the receipt success message or the receipt failure message as a generated message to perform targeted testing on the processing procedure of the type of service.

[0058] The alternate configuration refers to alternate generation of the receipt success message and the receipt failure message to test the stability of the service processing procedure; the simulation configuration rule is generated based on historical service messages and is used to simulate the frequency and order of occurrence of each type of service message in the real service processing procedure to improve the authenticity of the service function test result; thus, the receipt success message or the receipt failure message is generated in different ways to perform diversified function testing on the service system and improve the comprehensiveness of the service function test result.

[0059] The technical scheme of the embodiment of the application first acquires the outward test message and the inward test message of the business system through the outward queue, wherein the inward test message enters the outward queue in a bypass mirroring manner, secondly generates the outward receipt message according to the outward test message and the receipt message configuration rule, and sends the outward receipt message to the business system through the inward queue, and finally generates the business function test log according to the outward test message, the inward test message and the outward receipt message. The passive message simulator configured in this way not only realizes the configuration and generation of the receipt message, ensures the effectiveness of the business function test, and reduces the storage resource occupation and the development difficulty, but also acquires various types of test messages based on the bypass mirroring manner, and improves the comprehensiveness of the business function test result.

[0060] It should be noted that the related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, analyzed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data comply with relevant laws, regulations and standards in the relevant region.

[0061] Embodiment two

[0062] Figure 5 is a flowchart of a business function test method provided by the second embodiment of the application, and the relationship between the present embodiment and the above-mentioned embodiments is that the receipt message configuration rule is constructed based on the business message under the business environment, as shown in Figure 5 The method further comprises:

[0063] S201, acquiring the outward business message of the business system from the outward queue in a mirroring reading manner, and acquiring the outward response message of the business system from the inward queue.

[0064] In a real business environment, the message simulator can also access the outward queue and the inward queue, but in order to avoid affecting the transmission of the business message between the business system and the external system, the message simulator reads the outward business message in the outward queue and the outward response message in the inward queue in a mirroring reading manner; wherein the mirroring reading, also known as peeping reading, refers to reading the content of the message without removing the message, that is, allowing subsequent reading based on the position of the message in the queue.

[0065] Since the mirroring reading actually reads the mirror information of the message, and the message body is still retained in the queue and does not affect the sending of the outward business message and the outward response message to the business system or the external system along the original transmission logic, the message simulator can acquire the outward business message and the outward response message in a mirroring reading manner without affecting the original transmission logic of the message in the business environment.

[0066] S202, constructing the reply message configuration rule according to the outgoing service message and the outgoing response message.

[0067] Firstly, the association between the outgoing service message and the outgoing response message is determined through the service identification number in the outgoing service message and the outgoing response message, and then the message parameter items in the outgoing response message are extracted, so that the remaining information after extraction can actually be used as a reply message template, and it is determined that each to-be-filled parameter in the reply message template corresponds to a message parameter item, which comes from the outgoing service message or the external system itself, thereby completing the construction of the reply message configuration rule.

[0068] According to the business type identification, a plurality of outgoing service messages and the corresponding outgoing response messages under the same business type can be obtained, and the message content possessed by all outgoing response messages under the current business type is the reply message template under the business type, and the difference between each outgoing response message is the to-be-filled parameter item. Then, the to-be-filled parameter item is compared with the outgoing service message to determine the parameter information filled in the to-be-filled parameter item, which corresponds to which parameter item in the outgoing service message, thereby completing the construction of the reply message configuration rule.

[0069] S203, obtaining the outgoing test message and the incoming test message of the business system through the outgoing queue, wherein the incoming test message enters the outgoing queue in a bypass mirroring manner.

[0070] S204, generating an outgoing reply message according to the outgoing test message and the reply message configuration rule, and sending the outgoing reply message to the business system through the incoming queue.

[0071] As described in the above technical solution, based on the outgoing service message in the outgoing queue and the outgoing response message in the incoming queue, the construction of the reply message configuration rule has been completed. Then, after obtaining the outgoing test message sent by the business system in the test environment, each to-be-filled parameter in the reply message template can be filled based on the above reply message configuration rule according to the message parameter item in the outgoing test message, thereby completing the configuration and generation of the outgoing reply message. Thus, the construction complexity of the reply message configuration rule is reduced, the efficiency of obtaining the reply message configuration rule is improved, and the outgoing reply message configured is actually restored from the outgoing response message sent by the external system, thereby ensuring the message result consistency between the test environment and the business environment.

[0072] S205, generating a business function test log according to the outgoing test message, the incoming test message and the outgoing reply message.

[0073] The technical scheme of the embodiment of the application acquires the outward service message of the business system from the outward queue in a mirror reading manner, and acquires the outward response message of the business system from the inward queue; and constructs the reply message configuration rule according to the outward service message and the outward response message. Thus, the construction complexity of the reply message configuration rule is reduced, the acquisition efficiency of the reply message configuration rule is improved, the outward reply message configured is restored to the outward response message of the external system, and the message result consistency of the test environment and the business environment is ensured.

[0074] Embodiment three

[0075] Figure 6 is a flowchart of a business function test method provided by the embodiment three of the application. The relationship between the embodiment and the above-mentioned embodiments is that the inward test message is also generated by the message simulator, as shown in Figure 6 The method further includes:

[0076] S301, generating the inward test message of the business system through the test message configuration rule, and sending the inward test message to the business system through the inward queue.

[0077] As shown in the above technical scheme, Figure 2 The inward test message can be configured by the tester and transmitted to the inward queue through the receiving tool. However, such inward test message increases the human resources consumed in the configuration process, and the receiving tool needs to be set, and the transmission channel between the receiving tool and the inward queue needs to be configured. The message simulator itself has the transmission channel with the inward queue and the outward queue, and accordingly, the test message configuration rule can be constructed in the message simulator, the inward test message is generated by the message simulator, and the inward test message is sent to the business system through the inward queue.

[0078] S302, acquiring the outward test message and the inward reply message of the business system through the outward queue; wherein the inward test message enters the outward queue in a bypass mirror manner.

[0079] S303, generating the outward reply message according to the outward test message and the reply message configuration rule, and sending the outward reply message to the business system through the inward queue.

[0080] S304, generating the business function test log according to the outward test message, the inward test message, the outward reply message and the inward reply message.

[0081] Optionally, in the embodiment of the present application, before the internal-receiving test message of the service system is generated by the test message configuration rule, the embodiment further comprises: obtaining the internal-receiving service message of the service system from the internal-receiving queue in a mirror reading manner, and constructing the test message configuration rule according to the internal-receiving service message.

[0082] Specifically, as described in the above technical solution, since the message simulator can access the internal-receiving queue in the real service environment, the message simulator can read the internal-receiving service message in the internal-receiving queue in a mirror reading manner; the message simulator extracts the message parameter item in the internal-receiving service message, and the remaining information after extraction can actually be used as a test message template, and the message parameter type corresponding to each to-be-filled parameter in the test message template is determined, so as to complete the construction of the test message configuration rule.

[0083] Since the construction of the test message configuration rule has been completed by the internal-receiving service message in the internal-receiving queue, in the test environment, each to-be-filled parameter in the test message template can be filled according to the test message configuration rule, so as to complete the configuration and generation of the internal-receiving test message. In this way, the construction complexity of the test message configuration rule is reduced, the acquisition efficiency of the test message configuration rule is improved, the internal-receiving test message configured in this way is actually restored to the internal-receiving service message sent by the external system, and the message result consistency between the test environment and the service environment is ensured.

[0084] The technical solution of the embodiment of the present application generates the internal-receiving test message of the service system through the test message configuration rule, and sends the internal-receiving test message to the service system through the internal-receiving queue, which avoids the consumption of human resources in the configuration process of the internal-receiving test message, avoids the construction of the message transmission channel between the receiving tool and the internal-receiving queue, simplifies the service function test process, and further improves the convenience of the service function test process.

[0085] Embodiment five

[0086] Figure 7 is a structural block diagram of a service function test device provided by the embodiment five of the present application, and the device specifically comprises:

[0087] The test message obtaining module 701 is configured to obtain the external-sending test message and the internal-receiving test message of the service system through the external-sending queue; wherein the internal-receiving test message enters the external-sending queue in a bypass mirror manner.

[0088] The reply message obtaining module 702 is configured to generate the external-sending reply message according to the external-sending test message and the reply message configuration rule, and send the external-sending reply message to the service system through the internal-receiving queue.

[0089] The test log acquisition module 703 is configured to generate a service function test log according to the outgoing test message, the incoming test message and the outgoing reply message.

[0090] The technical scheme of the embodiment of the application first acquires the outgoing test message and the incoming test message of the service system through the outgoing queue, wherein the incoming test message enters the outgoing queue in a bypass mirroring manner, secondly generates the outgoing reply message according to the outgoing test message and the reply message configuration rule, and sends the outgoing reply message to the service system through the incoming queue, and finally generates the service function test log according to the outgoing test message, the incoming test message and the outgoing reply message. The passive message simulator configured in this way not only realizes the configuration and generation of the reply message, ensures the effectiveness of the service function test, but also reduces the storage resource occupation and the development difficulty. Meanwhile, the bypass mirroring manner is used to acquire various types of test messages, and the comprehensiveness of the service function test result is improved.

[0091] Optionally, the service function test device is further configured to acquire the incoming reply message of the service system through the outgoing queue; and generate a service function test log according to the outgoing test message, the incoming test message, the outgoing reply message and the incoming reply message.

[0092] Optionally, the service function test device is further configured to acquire the outgoing service message of the service system from the outgoing queue and the outgoing response message of the service system from the incoming queue in a mirroring reading manner; and construct the reply message configuration rule according to the outgoing service message and the outgoing response message.

[0093] Optionally, the service function test device is further configured to generate the incoming test message of the service system according to the test message configuration rule, and send the incoming test message to the service system through the incoming queue.

[0094] Optionally, the service function test device is further configured to acquire the incoming service message of the service system from the incoming queue in a mirroring reading manner, and construct the test message configuration rule according to the incoming service message.

[0095] Optionally, the outgoing reply message comprises a reply success message and a reply failure message.

[0096] The service function test device is further configured to generate the reply success message or the reply failure message according to the outgoing test message and the reply message configuration rule; wherein the reply message configuration rule comprises at least one of a random configuration rule, a specified configuration rule, an alternate configuration rule and a simulation configuration rule, and the simulation configuration rule is generated based on a historical service message.

[0097] The device can perform the service function test method provided by any embodiment of the application, has the function modules and beneficial effects corresponding to the execution method. Technical details not described in detail in the embodiment can be referred to the service function test method provided by any embodiment of the application.

[0098] Embodiment six

[0099] Figure 8 A structural schematic diagram of an electronic device 10 that can be used to implement embodiments of the application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, electronic devices, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the applications described and / or claimed in this document.

[0100] As shown in Figure 8 The electronic device 10 includes at least one processor 11 and memory, such as read only memory (ROM) 12, random access memory (RAM) 13, etc., communicatively connected to the at least one processor 11, where the memory stores computer programs executable by the at least one processor 11, and the processor 11 can perform various appropriate actions and processes according to the computer programs stored in the read only memory (ROM) 12 or loaded into the random access memory (RAM) 13 from the storage unit 18. 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.

[0101] Various 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 magnetic 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 telecommunications networks.

[0102] The processor 11 can be various general and / or special purpose 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 specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, and the like. The processor 11 performs various methods and processes described above, such as the service function test method.

[0103] In some embodiments, the service function test method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed onto the heterogeneous hardware accelerator via the ROM and / or the communication unit. When the computer program is loaded onto the RAM and executed by the processor, one or more steps of the service function test method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform the service function test method by any other suitable means, such as by means of firmware.

[0104] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0105] Computer programs used to implement the methods of the application 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, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the machine, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.

[0106] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0107] To provide for interaction with a user, the systems and techniques described here can be implemented on a heterogeneous hardware accelerator 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 a trackball) by which the user can provide input to the heterogeneous hardware accelerator. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0108] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can 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), blockchain network, and the Internet.

[0109] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can 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 large management difficulty and weak business scalability in traditional physical host and VPS service.

[0110] It should be understood that the various forms of flow shown above can be used to reorder, add or delete steps. For example, each step described in the present application can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which is not limited herein.

[0111] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A service function testing method, characterized by, The method comprises the following steps: obtaining the outbound test message and the inbound test message of the business system through the outbound queue; wherein the inbound test message enters the outbound queue in a bypass mirroring manner; generating the outbound reply message according to the outbound test message and the reply message configuration rule, and sending the outbound reply message to the business system through the inbound queue; generating the business function test log according to the outbound test message, the inbound test message and the outbound reply message.

2. The method of testing service functionality of claim 1, wherein, After obtaining the outbound test message and the inbound test message of the business system through the outbound queue, the method further comprises the following steps: obtaining the inbound reply message of the business system through the outbound queue; The method further comprises the following steps: obtaining the outbound test message and the inbound test message of the business system through the outbound queue; wherein the inbound test message enters the outbound queue in a bypass mirroring manner; 3. The method of testing service functionality of claim 1, wherein, generating the business function test log according to the outbound test message, the inbound test message, the outbound reply message and the inbound reply message. Before generating the outbound reply message according to the outbound test message and the reply message configuration rule, the method further comprises the following steps: obtaining the outbound business message of the business system from the outbound queue in a mirroring reading manner, and obtaining the outbound response message of the business system from the inbound queue; 4. The method of testing service functionality of claim 1, wherein, constructing the reply message configuration rule according to the outbound business message and the outbound response message. The method further comprises the following steps:

5. The method of testing service functionality of claim 4, wherein, generating the inbound test message of the business system through the test message configuration rule, and sending the inbound test message to the business system through the inbound queue. Before generating the inbound test message of the business system through the test message configuration rule, the method further comprises the following steps:

6. The method of testing service functionality of claim 1, wherein, obtaining the inbound business message of the business system from the inbound queue in a mirroring reading manner, and constructing the test message configuration rule according to the inbound business message. The outbound reply message comprises a reply success message and a reply failure message; The method further comprises the following steps:

7. A service function testing apparatus characterized by comprising: generating the reply success message or the reply failure message according to the outbound test message and the reply message configuration rule; wherein the reply message configuration rule comprises at least one of a random configuration rule, a specified configuration rule, an alternate configuration rule and a simulation configuration rule, and the simulation configuration rule is generated based on historical business messages. The method comprises the following steps: a test message obtaining module, configured to obtain the outbound test message and the inbound test message of the business system through the outbound queue; wherein the inbound test message enters the outbound queue in a bypass mirroring manner; a reply message obtaining module, configured to generate the outbound reply message according to the outbound test message and the reply message configuration rule, and send the outbound reply message to the business system through the inbound queue; 8. An electronic device, comprising: a test log obtaining module, configured to generate the business function test log according to the outbound test message, the inbound test message and the outbound reply message. The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; 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 to enable the at least one processor to perform the service function test method of any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for causing a processor to implement the service function test method of any one of claims 1-6 when executed.

10. A computer program product comprising a computer program which, when executed by a processor, implements the service function test method of any one of claims 1-6.