Multi-channel transaction simulator and multi-channel transaction simulation method
By designing a multi-channel transaction simulator, the problem of insufficient flexibility and scalability of financial transaction system simulation and testing in the existing technology is solved, and efficient and flexible trading system simulation testing is achieved, reducing the testing cost and cycle.
Patent Information
- Application Number
- CN202411548006.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-11
AI Technical Summary
The existing financial transaction processing systems lack flexibility and scalability in simulation and testing, and are difficult to meet the testing needs of multi-channel transaction scenarios and systems, resulting in increased development costs and cycles.
Design a multi-channel transaction simulator, including user interface module, message generation module, message processing module and transaction channel engine, generate and process transaction messages through flexible parameter configuration and customized interface, and simulate different channels of Trading process, supporting concurrent transactions and exception handling simulations.
It realizes efficient and flexible simulation testing of the trading system, reduces the testing cost and cycle, improves the authenticity and accuracy of the test, and meets the testing needs of multi-channel trading scenarios.
Smart Images

Figure CN119417602A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of simulators, and in particular to a multi-channel transaction simulator and a multi-channel transaction simulation method. Background Art
[0002] The international standard for financial transaction messages is widely used in various payment systems and card transaction processing. Financial transaction messages are rigorously structured and contain rich transaction information, such as transaction type, account information, transaction amount, timestamp, etc., ensuring the integrity and security of transaction data. In current financial transaction systems, developers usually use various tools and libraries to generate, parse, and process financial transaction messages to meet the needs of different transaction scenarios.
[0003] Although existing financial transaction processing systems can process actual transaction data, they have many inconveniences in simulation and testing. For example, most of them are targeted at specific transaction scenarios or systems and lack flexibility and scalability. When it is necessary to simulate new transaction scenarios or test new transaction systems, it is often necessary to modify or redevelop tools, which increases development costs and cycles. Summary of the invention
[0004] The present invention provides a multi-channel transaction simulator and a multi-channel transaction simulation method, which are used to solve the defects of the prior art in simulation and testing of transaction systems that lack flexibility and scalability, and realize efficient and flexible simulation testing of transaction systems.
[0005] The present invention provides a multi-channel transaction simulator, comprising a user interface module, a message generation module, a message processing module and a transaction channel engine; Wherein, the user interface module is used to configure transaction simulation data, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; The message generation module is connected to the user interface module and is used to generate a first transaction message that complies with a preset format standard based on each set of transaction simulation parameters and a corresponding scenario template; The message processing module is connected to the message generating module, and is used to process each group of the first transaction messages according to the message requirements of the transaction system to be tested, and obtain the second transaction messages corresponding to each group of the first transaction messages; The transaction channel engine is connected to the message processing module, and is used to select one or more groups of the second transaction messages to be input into the transaction system to be tested based on a preset transaction channel, and perform a simulation test on the transaction system to be tested based on the second transaction messages.
[0006] According to the multi-channel transaction simulator provided by the present invention, the transaction channel engine is also used to: receive a response message from the transaction system to be tested, compare the response message with an actual transaction analysis result, and determine the transaction status of the transaction system to be tested based on the comparison result, wherein the actual transaction analysis result is obtained by analyzing a second transaction message input into the transaction system to be tested.
[0007] According to the multi-channel transaction simulator provided by the present invention, the transaction channel engine is also used to store the transaction processes of multiple preset transaction channels, and, according to the needs of simulating the preset transaction channels, call the transaction processes of the preset transaction channels, and based on the second transaction message and the transaction processes of the preset transaction channels, perform a simulation test on the transaction status of the transaction system to be tested.
[0008] According to the multi-channel transaction simulator provided by the present invention, the preset transaction channel includes one of Visa, MC, JCB, AE and UnionPay.
[0009] According to the multi-channel transaction simulator provided by the present invention, the transaction channel engine is further used to store the exception handling logic of the abnormal situation, and, according to the need of simulating the abnormal situation, trigger the exception handling logic corresponding to the abnormal situation, and perform a simulation test on the exception handling capability of the transaction system to be tested based on the second transaction message and the exception handling logic; The abnormal situation includes one or more of network interruption, transaction timeout or system error; the abnormal handling logic is the handling measures when each abnormal situation occurs.
[0010] According to the multi-channel transaction simulator provided by the present invention, when the transaction channel engine selects to input multiple groups of the second transaction messages into the transaction system to be tested, the transaction channel engine is further used to: By setting the input quantity and input time interval of each second transaction message, a simulation test is performed on the parallel processing capability of the transaction system to be tested.
[0011] The multi-channel transaction simulator provided by the present invention also includes a data storage module and a data analysis module; Wherein, the data storage module is used to store the transaction simulation data, the first transaction message, the second transaction message, the process data of the simulation test of the transaction system to be tested and the simulation test results; The data analysis module is used to analyze the process data and the simulation test results based on preset analysis conditions to obtain data analysis results.
[0012] According to the multi-channel transaction simulator provided by the present invention, the user interface module is also used for: The process data, the simulation test results and the data analysis results stored in the data storage module are obtained, the simulation test process is monitored based on the process data, and the data analysis results and the simulation test results are displayed.
[0013] According to the multi-channel transaction simulator provided by the present invention, the message requirements of the transaction system to be tested specifically include: One or more operations of formatting, encryption and signing are performed on the first transaction message.
[0014] The present invention also provides a multi-channel transaction simulation method, which is implemented by the multi-channel transaction simulator as described in any one of the above items; The method comprises: Configuring transaction simulation data, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; Based on each set of the transaction simulation parameters and the corresponding scenario template, respectively generate a first transaction message that meets the preset format standard; According to the message requirements of the transaction system to be tested, each group of the first transaction messages is processed to obtain a second transaction message corresponding to each group of the first transaction messages; Based on a preset transaction channel, one or more groups of the second transaction messages are selected to be input into the transaction system to be tested, and a simulation test is performed on the transaction system to be tested based on the second transaction messages.
[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any of the multi-channel transaction simulation methods described above is implemented.
[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the multi-channel transaction simulation method as described in any one of the above is implemented.
[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the multi-channel transaction simulation method as described above is implemented.
[0018] The multi-channel transaction simulator and multi-channel transaction simulation method provided by the present invention are configured by setting a message generation module, a message processing module, a transaction channel engine and a user interface module, and configuring transaction simulation data through the user interface module, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; connecting with the user interface module through the message generation module, and generating first transaction messages that meet preset format standards based on each group of transaction simulation parameters and the corresponding scenario template; connecting with the message generation module through the message processing module, and processing each group of the first transaction messages according to the message requirements of the transaction system to be tested to obtain second transaction messages corresponding to each group of the first transaction messages; connecting with the message processing module through the transaction channel engine, and selecting one or more groups of the second transaction messages to be input into the transaction system to be tested based on the preset transaction channel, and performing simulation test on the transaction system to be tested based on the second transaction messages. The present invention simulates the transaction process under different channels through flexible parameter configuration and customized interface, and provides users with a highly realistic testing environment. Users can flexibly configure message templates and parsing rules according to actual transaction needs to ensure the authenticity and accuracy of the simulation test. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 It is a structural schematic diagram of the multi-channel transaction simulator provided by the present invention.
[0021] Figure 2 It is one of the flow charts of the multi-channel transaction simulation method provided by the present invention.
[0022] Figure 3 This is the second flow chart of the multi-channel transaction simulation method provided by the present invention.
[0023] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] The present invention is described in detail below in conjunction with the accompanying drawings of the specification. The specific operating method in the method embodiment can also be applied to the device embodiment or the system embodiment. In the description of the present invention, unless otherwise specified, "at least one" includes one or more. "Multiple" refers to two or more. For example, at least one of A, B and C includes: A exists alone, B exists alone, A and B exist at the same time, A and C exist at the same time, B and C exist at the same time, and A, B and C exist at the same time. In the present invention, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a kind of association relationship that describes the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0026] In practical applications, with the continuous development of financial markets and the rapid growth of transaction volume, the demand for testing, verification and simulation of trading systems is also increasing. Although the existing financial transaction processing system can process actual transaction data, it has many inconveniences in simulation and testing. In order to more efficiently develop and test new trading systems or optimize existing systems, testers need a tool that can simulate multiple trading scenarios, generate multiple transaction messages and verify their correctness.
[0027] In view of this, the present invention provides a multi-channel transaction simulator and a multi-channel transaction simulation method, which flexibly configure message templates and parsing rules according to actual transaction needs to ensure the authenticity and accuracy of simulation tests.
[0028] The present invention will be described in detail below in conjunction with specific implementation modes.
[0029] In some specific embodiments of the present invention, Figure 1 As shown, the present solution provides a multi-channel transaction simulator 10, comprising a user interface module 11, a message generation module 12, a message processing module 13 and a transaction channel engine 14; The user interface module 11 is used to configure transaction simulation data, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; The message generation module 12 is connected to the user interface module 11, and is used to generate a first transaction message that complies with a preset format standard based on each set of transaction simulation parameters and a corresponding scenario template; The message processing module 13 is connected to the message generating module 12, and is used to process each group of the first transaction messages according to the message requirements of the transaction system to be tested, and obtain the second transaction messages corresponding to each group of the first transaction messages; The transaction channel engine 14 is connected to the message processing module 13, and is used to select one or more groups of the second transaction messages to be input into the transaction system to be tested based on a preset transaction channel, and perform a simulation test on the transaction system to be tested based on the second transaction messages.
[0030] It should be noted that the existing trading system test simulation solutions cannot achieve multi-channel simulation, and most of them are targeted at specific trading scenarios or systems, lacking flexibility and scalability. When it is necessary to simulate new trading scenarios or test new trading systems, it is often necessary to modify or redevelop tools, which increases development costs and cycles. In addition, in the actual testing process, developers usually need to manually construct various transaction messages and send them one by one to the test system for verification. This method is not only time-consuming and labor-intensive, but also prone to errors, resulting in low testing efficiency.
[0031] Therefore, the present invention configures simulation parameters and scenario templates, and performs personalized test simulation on the system to be tested according to the simulation parameters input by the user and the scenario template selected. The scenario template can be a stored scenario template selected by the user, or a customized transaction scenario template according to the actual needs of the user.
[0032] Compared with traditional physical testing or testing methods that rely on real transaction environments, simulators provide a low-cost testing solution, and users do not need to build a complex testing environment or purchase expensive testing equipment. The above-mentioned setting of the present invention can significantly reduce the testing cost, especially in large financial institutions or payment platforms. The testing cost often accounts for an important part of the total project cost. By introducing the simulator, the testing cost can be effectively controlled while ensuring the test quality.
[0033] In a possible embodiment, the transaction simulation parameters include transaction type, transaction amount, account information and transaction time.
[0034] Specifically, the user configures simulation parameters through the user interface module, including transaction type, transaction amount, account information, transaction time, etc. At the same time, the user can select or customize a transaction scenario template.
[0035] In a possible embodiment, the message requirements of the transaction system to be tested specifically include: One or more operations of formatting, encryption and signing are performed on the first transaction message.
[0036] Specifically, different transaction systems have different requirements for input messages. The message processing module performs necessary processing on the generated messages, such as formatting, encryption, signing, etc., to ensure that the messages meet the requirements of the actual transaction system.
[0037] In some possible implementations of the present invention, the transaction channel engine is further used to: receive a response message from the transaction system to be tested, compare the response message with an actual transaction parsing result, and determine a transaction status of the transaction system to be tested based on the comparison result, wherein the actual transaction parsing result is obtained by parsing a second transaction message input into the transaction system to be tested.
[0038] Specifically, this embodiment provides an implementation method for determining the transaction status of the transaction system to be tested, by acquiring a response message of the transaction system, and judging the transaction status of the transaction system according to the response message and the actual transaction analysis result obtained by pre-analysis.
[0039] In a possible embodiment, the user configures the simulation parameters, and inputs the generated transaction message that meets the standard format requirements and the message requirements of the transaction system to be tested into the transaction system to be tested. The transaction system sends a response message. After receiving the response message from the transaction system, the response message is compared with the actual transaction status. If the response message is consistent with the actual transaction status, it means that the transaction status of the transaction system is normal. Otherwise, it is considered that the transaction status of the transaction system is abnormal.
[0040] In some possible implementations of the present invention, the transaction channel engine is also used to store transaction processes of multiple preset transaction channels, and, according to the needs of simulating the preset transaction channels, call the transaction processes of the preset transaction channels, and perform simulation testing on the transaction status of the transaction system to be tested based on the second transaction message and the transaction process of the preset transaction channel.
[0041] It is understandable that the existing simulation test solutions for transaction systems are difficult to switch between multiple channels. When dealing with different channels such as Visa, MC, JCB, AE or UnionPay, due to different encoding formats and inconsistent message packaging and unpacking, different simulators are required for message testing of different channels, which undoubtedly increases the complexity and difficulty of testing.
[0042] To solve the above problems, the present embodiment provides a specific implementation method for simulating the transaction status of the transaction system to be tested. By calling the transaction process of the preset transaction channel, the transaction status of the transaction system to be tested is simulated and tested based on the input second transaction message and the transaction process of the preset transaction channel.
[0043] In a possible embodiment, the preset transaction channel includes one of Visa, MC, JCB, AE and UnionPay.
[0044] Specifically, the transaction channel engine can pre-store the transaction processes of different transaction channels, such as message sending, receiving, parsing, etc. According to the user's simulation needs, the transaction process of a specific transaction channel is called.
[0045] Furthermore, transaction channels also include transaction types such as ATM, POS, and online banking.
[0046] In other words, the simulator supports the simulation of multiple transaction channels, including ATM, POS, online banking, etc. of Visa, MC, JCB, AE and UnionPay, etc., which can fully cover the transaction process under different channels and simulate various situations in real transaction scenarios. Through the above settings, simulating transactions under different channels and scenarios can more comprehensively verify the reliability, stability and fault tolerance of the transaction system, discover and solve potential problems in advance, and reduce the risks after the system goes online.
[0047] In some possible implementations of the present invention, the transaction channel engine is further used to store the exception handling logic of the abnormal situation, and, according to the need of simulating the abnormal situation, trigger the exception handling logic corresponding to the abnormal situation, and perform a simulation test on the exception handling capability of the transaction system to be tested based on the second transaction message and the exception handling logic; The abnormal situation includes one or more of network interruption, transaction timeout or system error; the abnormal handling logic is the handling measures when each abnormal situation occurs.
[0048] Specifically, this embodiment provides an implementation method for simulating the test of the exception handling capability of the trading system to be tested, by storing the exception handling logic of the abnormal situation and triggering the exception handling logic to judge the exception handling capability of the trading system to be tested.
[0049] In a possible embodiment, the user sets various abnormal situations such as network interruption, transaction timeout or system error, and stores the processing logic of various abnormal situations in the transaction channel engine. According to the simulation task requirements, the transaction channel engine will trigger the corresponding exception handling logic to test the stability and fault tolerance of the system.
[0050] Specifically, taking the abnormal situation in the above embodiment as an example, for the network interruption situation: if a network interruption occurs during the transaction test, the communication can be reconnected every five seconds after the network interruption, and the link can be disconnected after 10 retries.
[0051] For transaction timeouts: the transaction processing speed of the system under test is slow, and the transaction returns a timeout. The default timeout is 1 minute. If the timeout occurs, the communication is disconnected and reconnected, and the transaction simulation test is sent again.
[0052] For system error situations: System error usually refers to the abnormal processing of garbled messages returned by the tested system. In this case, you can choose to discard the garbled messages and re-initiate the transaction.
[0053] In some possible implementations of the present invention, when the transaction channel engine selects to input multiple groups of the second transaction messages into the transaction system to be tested, the transaction channel engine is further configured to: By setting the input quantity and input time interval of each second transaction message, a simulation test is performed on the parallel processing capability of the transaction system to be tested.
[0054] Specifically, this embodiment provides an implementation method for simulating the parallel processing capability of the transaction system to be tested, by setting parameters such as the number of concurrent transactions and transaction intervals, and by controlling the number of input transaction messages and the time interval, etc., to determine the parallel processing performance of the transaction system to be tested.
[0055] In a specific embodiment, the transaction channel engine supports simulating multiple transaction requests at the same time to test the concurrent processing capability of the system. Users can set parameters such as the number of concurrent requests and transaction intervals to simulate real transaction scenarios.
[0056] Furthermore, the simulator supports concurrent transaction simulation and abnormal transaction simulation, and can simulate the transaction pressure in high-concurrency scenarios and the system response in abnormal transaction situations. Through concurrent and abnormal simulation, it can help the development team identify system performance bottlenecks and deficiencies in the exception handling mechanism, provide strong support for system optimization and improvement, promote the optimization and improvement of the transaction system, and thus improve the overall system performance and user experience.
[0057] In some possible implementations of the present invention, the multi-channel transaction module further includes a data storage module 15 and a data analysis module 16; The data storage module 15 is used to store the transaction simulation data, the first transaction message, the second transaction message, the process data of the simulation test on the transaction system to be tested, and the simulation test results; The data analysis module 16 is used to analyze the process data and the simulation test results based on preset analysis conditions to obtain data analysis results.
[0058] Specifically, this embodiment provides an implementation method of a data storage module and a data analysis module in a multi-channel transaction simulator, wherein the data storage module stores process data and result data in the entire transaction simulation test process to facilitate monitoring and analysis of the simulation test process.
[0059] In a possible embodiment, the simulator supports the recording and playback functions of the test results, and the user can save the parameters and results of each simulation test for subsequent analysis and comparison.
[0060] The above configuration of this embodiment improves the repeatability and traceability of the test, making the test process more standardized and regular. When a problem occurs, the specific test scenario and parameter settings can be quickly located, facilitating the analysis and resolution of the problem.
[0061] In some possible implementations of the present invention, the user interface module is further used to: The process data, the simulation test results and the data analysis results stored in the data storage module are obtained, the simulation test process is monitored based on the process data, and the data analysis results and the simulation test results are displayed.
[0062] It is understandable that existing simulation testing solutions lack a visual interface. For example, existing financial transaction processing tools lack an intuitive visual interface, which makes users face difficulties in configuration, monitoring and debugging, which increases users' learning costs and operational difficulty.
[0063] Therefore, this embodiment provides an implementation method of a user interface module, which obtains the process data, the simulation test results and the data analysis results stored in the data storage module, monitors the simulation test process according to the process data, and displays the transaction status of the transaction system to be tested according to the simulation test results and the data analysis results.
[0064] In a possible embodiment, through an integrated user interface and a flexible parameter configuration mechanism, users can easily define a variety of transaction scenarios and simulation parameters without having to write complex test scripts or rely on professional test tools. The above settings of this embodiment can significantly improve test efficiency, shorten the test cycle, and enhance test flexibility, meeting the requirements of rapid response and customization under different test requirements.
[0065] It is worth noting that the functional modules provided in the embodiments of the present invention can be combined according to the actual simulation task requirements. For example, in a simple simulation test task, the multi-channel transaction simulator 10 may only include a user interface module 11, a message generation module 12, a message processing module 13, a transaction channel engine 14 and a data storage module 15.
[0066] Among them, the user interface module 11 provides an intuitive and easy-to-use graphical interface for configuring simulation parameters, monitoring transaction processes, viewing transaction results, etc.
[0067] Message generation module 12: responsible for generating a transaction message that meets the standards according to the parameters input by the user or the preset scenario template.
[0068] Message processing module 13: performs processing such as formatting, encryption, and signing on the generated messages to meet the requirements of the actual transaction system.
[0069] Transaction channel engine 14: simulates the transaction processes of different transaction channels (such as Visa, MC, JCB, AE, UnionPay, etc.), including message sending, receiving, and parsing.
[0070] Data storage module 15: used to store transaction messages, simulation results, user configuration and other data.
[0071] The multi-channel transaction simulator provided by the embodiment of the present invention can easily configure simulation parameters and scenarios through the user interface module and the scenario template mechanism, so as to meet different test requirements and realize the flexibility of the simulation test process; the message generation module and the transaction channel engine adopt efficient algorithms and optimization strategies to improve the efficiency of message generation and transaction simulation and realize the high efficiency of the simulation test process; support the simulation of multiple transaction channels, including ATM, POS, online banking, etc. of Visa, MC, JCB, AE or UnionPay, so as to meet the test requirements of different channels and realize multi-channel transaction simulation; add the exception handling simulation function, improve the comprehensiveness and reliability of system testing, and realize the exception handling simulation of the transaction system; support concurrent transaction simulation, test the concurrent processing capability and performance bottleneck of the transaction system and realize concurrent transaction simulation.
[0072] In some specific embodiments of the present invention, Figure 2 As shown, this solution provides a multi-channel transaction simulation method, which is implemented by a multi-channel transaction simulator provided by any of the above embodiments; Methods include: Step 210: configuring transaction simulation data, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; Step 220: Based on each set of the transaction simulation parameters and the corresponding scenario template, respectively generate a first transaction message that complies with a preset format standard; Step 230: Process each group of the first transaction messages according to the message requirements of the transaction system to be tested to obtain a second transaction message corresponding to each group of the first transaction messages; Step 240: Based on a preset transaction channel, select one or more groups of the second transaction messages to be input into the transaction system to be tested, and perform a simulation test on the transaction system to be tested based on the second transaction messages.
[0073] Specifically, this embodiment provides an implementation method for multi-channel transaction simulation.
[0074] Possibly, the performing simulation test on the transaction system to be tested based on the second transaction message specifically includes: According to the requirement of simulating a preset transaction channel, the transaction process of the preset transaction channel is called, and based on the second transaction message and the transaction process of the preset transaction channel, a simulation test is performed on the transaction state of the transaction system to be tested.
[0075] Specifically, this embodiment provides an implementation method for performing simulation testing on a transaction system to be tested.
[0076] Possibly, the performing simulation test on the transaction system to be tested based on the second transaction message specifically further includes: According to the requirement of simulating an abnormal situation, triggering the abnormality handling logic corresponding to the abnormal situation, and performing a simulation test on the abnormality handling capability of the transaction system to be tested based on the second transaction message and the abnormality handling logic; The abnormal situation includes one or more of network interruption, transaction timeout or system error; the abnormal handling logic is the handling measures when each abnormal situation occurs.
[0077] Specifically, this embodiment provides an implementation method for performing a simulation test on the exception handling capability of the transaction system to be tested. Possibly, the simulation test on the transaction system to be tested based on the second transaction message specifically further includes: When the transaction channel engine chooses to input multiple groups of the second transaction messages into the transaction system to be tested, the parallel processing capability of the transaction system to be tested is simulated by setting the input quantity and input time interval of each second transaction message.
[0078] Specifically, this embodiment provides an implementation method for performing simulation testing on the parallel processing capability of a transaction system to be tested.
[0079] In practical applications, such as Figure 3 As shown, the implementation of the multi-channel transaction simulation method specifically includes three parts: basic simulation process, extended simulation process and result display and analysis process.
[0080] Specifically, the basic simulation process includes steps S310-S340: Step 310: Configure simulation parameters
[0081] In this step, the user configures simulation parameters through the user interface module, including transaction type, transaction amount, account information, transaction time, etc. At the same time, the user can select or customize a transaction scenario template.
[0082] Step 320: Generate transaction message
[0083] In this step, the message generation module generates a transaction message that meets the standards based on the parameters input by the user and the selected scenario template.
[0084] Step 330: Message processing
[0085] In this step, the message processing module performs necessary processing on the generated message, such as formatting, encryption, signing, etc., to ensure that the message meets the requirements of the actual transaction system.
[0086] Step 340: Simulate transaction process
[0087] In this step, the transaction channel engine simulates the transaction process of the target transaction channel (such as ATMs of Visa, MC, JCB, AE, etc.), sends the processed message to the simulated transaction system, and receives the response message from the system.
[0088] Further, based on the above steps S310-340, the extended simulation process of this embodiment adds the functions of concurrent transaction simulation and exception handling simulation, which specifically includes steps S350-S360: Step 350: Concurrent transaction simulation
[0089] The transaction simulation engine supports simulating multiple transaction requests at the same time to test the concurrent processing capability of the system. Users can set parameters such as the number of concurrent transactions and transaction intervals to simulate real transaction scenarios.
[0090] Step 360: Exception handling simulation
[0091] The transaction simulation engine supports simulating various abnormal situations, such as network interruption, transaction timeout, system error, etc. During the simulation process, the engine will trigger the corresponding exception handling logic to test the stability and fault tolerance of the system.
[0092] After the above basic simulation process or extended simulation process results, it is necessary to analyze and display the results. The specific process is as follows: Step 370: Result display and analysis
[0093] In this step, the user interface module displays the results of the simulated transaction, including whether the transaction is successful or not, response time, transaction details, etc.
[0094] The multi-channel transaction simulator and multi-channel transaction simulation method provided by the embodiment of the present invention adopt multi-channel transaction scenario simulation technology. The simulator innovatively integrates simulation functions of multiple standard transaction channels such as ATM, POS, online banking, etc. of Visa, MC, JCB, AE or UnionPay, which can fully cover and simulate transaction processes under different channels, and provide users with a highly realistic test environment. By adopting flexible parameter configuration and customized interface, by designing a set of flexible parameter configuration system and user-friendly customized interface, users can easily define various transaction scenarios and simulation parameters according to their own needs, without writing complex test scripts or relying on professional test tools, which greatly improves the convenience and flexibility of testing. Support concurrent transaction and exception handling simulation capabilities: The simulator has powerful concurrent transaction simulation and exception handling simulation capabilities, which can simulate transaction pressure in high-concurrency scenarios and system responses in abnormal transaction situations, help the development team identify system performance bottlenecks and deficiencies in exception handling mechanisms, and provide strong support for system optimization and improvement. Support test result recording and playback function: This simulator has built-in test result recording and playback function. Users can save the parameters and results of each simulation test for subsequent analysis and comparison, improve the repeatability and traceability of the test, and make the test process more standardized. Set up a highly configurable message parsing and generation engine. The simulator has a built-in highly configurable message parsing and generation engine that supports various message formats and field definitions under the standard. Users can flexibly configure message templates and parsing rules according to actual transaction needs to ensure the authenticity and accuracy of the simulation test.
[0095] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the multi-channel transaction simulation method, which includes: configuring transaction simulation data, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; based on each group of the transaction simulation parameters and the corresponding scenario template, respectively generating a first transaction message that meets the preset format standard; according to the message requirements of the transaction system to be tested, processing each group of the first transaction message to obtain a second transaction message corresponding to each group of the first transaction message; based on the preset transaction channel, selecting one or more groups of the second transaction messages to be input into the transaction system to be tested, and performing a simulation test on the transaction system to be tested based on the second transaction message.
[0096] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0097] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the multi-channel transaction simulation method provided by the above methods, and the method includes: configuring transaction simulation data, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; based on each group of the transaction simulation parameters and the corresponding scenario template, respectively generating a first transaction message that meets the preset format standard; according to the message requirements of the transaction system to be tested, processing each group of the first transaction messages to obtain second transaction messages corresponding to each group of the first transaction messages; based on the preset transaction channel, selecting one or more groups of the second transaction messages to be input into the transaction system to be tested, and performing a simulation test on the transaction system to be tested based on the second transaction message.
[0098] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the multi-channel transaction simulation method provided by the above-mentioned methods, the method comprising: configuring transaction simulation data, wherein the transaction simulation data comprises one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; based on each group of the transaction simulation parameters and the corresponding scenario template, respectively generating a first transaction message that meets a preset format standard; according to the message requirements of the transaction system to be tested, processing each group of the first transaction messages to obtain a second transaction message corresponding to each group of the first transaction messages; based on the preset transaction channel, selecting one or more groups of the second transaction messages to be input into the transaction system to be tested, and performing a simulation test on the transaction system to be tested based on the second transaction message.
[0099] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0100] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-channel transaction simulator, characterized in that: It includes user interface module, message generation module, message processing module and transaction channel engine; Wherein, the user interface module is used to configure transaction simulation data, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; The message generation module is connected to the user interface module and is used to generate a first transaction message that complies with a preset format standard based on each set of transaction simulation parameters and a corresponding scenario template; The message processing module is connected to the message generating module, and is used to process each group of the first transaction messages according to the message requirements of the transaction system to be tested, and obtain the second transaction messages corresponding to each group of the first transaction messages; The transaction channel engine is connected to the message processing module, and is used to select one or more groups of the second transaction messages to be input into the transaction system to be tested based on a preset transaction channel, and perform a simulation test on the transaction system to be tested based on the second transaction messages.
2. The multi-channel transaction simulator according to claim 1, characterized in that: The transaction channel engine is also used to: receive a response message from the transaction system to be tested, compare the response message with an actual transaction analysis result, and determine a transaction status of the transaction system to be tested based on the comparison result, wherein the actual transaction analysis result is obtained by analyzing a second transaction message input into the transaction system to be tested.
3. The multi-channel transaction simulator according to claim 1, characterized in that: The transaction channel engine is also used to store the transaction processes of multiple preset transaction channels, and, according to the needs of simulating the preset transaction channels, call the transaction processes of the preset transaction channels, and perform simulation testing on the transaction status of the transaction system to be tested based on the second transaction message and the transaction process of the preset transaction channel.
4. The multi-channel transaction simulator according to claim 3, characterized in that: The preset transaction channel includes one of Visa, MC, JCB, AE and UnionPay.
5. The multi-channel transaction simulator according to claim 1, characterized in that: The transaction channel engine is further used to store the exception handling logic of the abnormal situation, and, according to the need of simulating the abnormal situation, trigger the exception handling logic corresponding to the abnormal situation, and perform a simulation test on the exception handling capability of the transaction system to be tested based on the second transaction message and the exception handling logic; The abnormal situation includes one or more of network interruption, transaction timeout or system error; the abnormal handling logic is the handling measures when each abnormal situation occurs.
6. The multi-channel transaction simulator according to claim 1, characterized in that: When the transaction channel engine selects to input multiple groups of the second transaction messages into the transaction system to be tested, the transaction channel engine is further used to: By setting the input quantity and input time interval of each second transaction message, a simulation test is performed on the parallel processing capability of the transaction system to be tested.
7. The multi-channel transaction simulator according to claim 1, characterized in that: Also includes a data storage module and a data analysis module; Wherein, the data storage module is used to store the transaction simulation data, the first transaction message, the second transaction message, the process data of the simulation test of the transaction system to be tested and the simulation test results; The data analysis module is used to analyze the process data and the simulation test results based on preset analysis conditions to obtain data analysis results.
8. The multi-channel transaction simulator according to claim 7, characterized in that: The user interface module is also used for: The process data, the simulation test results and the data analysis results stored in the data storage module are obtained, the simulation test process is monitored based on the process data, and the data analysis results and the simulation test results are displayed.
9. The multi-channel transaction simulator according to claim 1, characterized in that: The message requirements of the transaction system to be tested specifically include: One or more operations of formatting, encryption and signing are performed on the first transaction message.
10. A multi-channel transaction simulation method, characterized in that: It is achieved by the multi-channel transaction simulator described in any one of claims 1 to 9; The method comprises: Configuring transaction simulation data, wherein the transaction simulation data includes one or more groups of transaction simulation parameters and scenario templates corresponding to each group of transaction simulation parameters; Based on each set of the transaction simulation parameters and the corresponding scenario template, respectively generate a first transaction message that meets the preset format standard; According to the message requirements of the transaction system to be tested, each group of the first transaction messages is processed to obtain a second transaction message corresponding to each group of the first transaction messages; Based on a preset transaction channel, one or more groups of the second transaction messages are selected to be input into the transaction system to be tested, and a simulation test is performed on the transaction system to be tested based on the second transaction messages.