Business test method, storage medium and computer program product

By obtaining the business model diagram and configuring automated test nodes, and using preset interface components for automated testing, the problem of low efficiency in securities business use case testing is solved, efficient and accurate automated testing is achieved, and costs are reduced.

CN118747155APending Publication Date: 2024-10-08CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410909085.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

The existing automated testing process for securities business use cases is inefficient and insufficiently flexible. It is difficult to meet changes in business needs and has problems with test data management.

Method used

By obtaining the business model diagram and pre-configuring automated test nodes in it, and using preset interface components to conduct automated testing, manual operations are reduced and testing efficiency and accuracy are improved.

Benefits of technology

It realizes efficient automated testing of securities business use cases, reduces testers' workload and time investment, improves the comprehensiveness and accuracy of testing, and reduces testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747155A_ABST
    Figure CN118747155A_ABST
Patent Text Reader

Abstract

The invention discloses a service testing method, a storage medium and a computer program product, and relates to the technical field of system testing, and the service testing method comprises the steps that a service model diagram of a to-be-tested service is acquired, and the service model diagram comprises pre-configured automatic testing nodes; and calling a preset interface component through the automatic test node to perform automatic test on the to-be-tested service. According to the method, automatic testing can be achieved through the business model diagram and the automatic testing nodes, the manual operation process is reduced, and therefore the efficiency of automatic testing of the security business cases is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of system testing, and in particular to a service testing method, a storage medium, and a computer program product. Background Art

[0002] The securities business process covers all aspects from placing orders, clearing and processing to final account verification and confirmation, involving a variety of financial products such as funds, stocks, bonds, etc. With the advancement of technology, the securities settlement process is gradually shifting towards automation. Before the automated process is fully put into use, rigorous testing of securities business use cases is essential.

[0003] At present, there are mainly two testing methods: automated testing methods based on RF (Robot Framework) and manual testing by testers based on different fund trading systems. Among them, the RF-based automated testing method is built on the mainstream RF framework and is divided into data layer, interface layer and inspection layer. The data layer manages test data through fixed test data files in the form of tables, the interface layer encapsulates automated code to simulate interface interactions, and the inspection layer is responsible for verifying message return values ​​and database records. This method requires testers to write test codes, which affects the efficiency of business case testing. The manual testing method of testers relies on manual operations, and the efficiency of case testing is low.

[0004] In summary, the current automated testing process for securities business use cases still needs to be improved in efficiency.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a business testing method, storage medium and computer program product, aiming to solve the technical problem of low efficiency of the automated testing process of securities business use cases.

[0007] To achieve the above purpose, the present application proposes a service testing method, which includes:

[0008] Acquire a business model diagram of the business to be tested, wherein the business model diagram includes pre-configured automated test nodes;

[0009] The automated testing node calls a preset interface component to perform automated testing on the service to be tested.

[0010] In one embodiment, the business model diagram includes the business process path of the business to be tested in each business scenario, and the automated test node includes the test node in the business process path of each business scenario;

[0011] The step of performing automated testing on the service to be tested by calling a preset interface component through the automated testing node includes:

[0012] For any target scenario in each of the business scenarios, the target interface component is obtained by parameterizing the preset interface component according to the target process path through the target test node, wherein the target process path is the business process path of the target scenario, and the target test node is the test node in the target process path;

[0013] The target scenario is automatically tested by calling the target interface component through the target test node.

[0014] In one embodiment, the automated test node includes an order node, a remittance node, and a clearing node, and the preset interface component includes a first interface component corresponding to the order node and a second interface component corresponding to the clearing node;

[0015] The step of performing automated testing on the service to be tested by calling a preset interface component through the automated testing node includes:

[0016] Calling the first interface component through the ordering node to perform an order test on the service to be tested;

[0017] Obtaining the transfer parameters of the payment system through the transfer node;

[0018] Calling the second interface component through the clearing node to perform a clearing test on the business to be tested;

[0019] Perform an accounting check on the business to be tested.

[0020] In one embodiment, before the step of obtaining, through the remittance node, the remittance parameter inputted by the external payment system, the method further includes:

[0021] Obtaining the order interface return value of the order node, and obtaining the preset order interface expected value corresponding to the order node and the first database expected value in the business database of the business to be tested;

[0022] When the return value of the order interface, the expected value of the order interface and the expected value of the first database are verified to be consistent, the step of obtaining the transfer parameters input by the external payment system through the transfer node is executed;

[0023] Before the step of performing account checking on the business to be tested, the method further includes:

[0024] Obtaining a clearing interface return value of the clearing node, and obtaining a preset clearing interface expected value corresponding to the clearing node and a second database expected value in the business database;

[0025] When the return value of the clearing interface, the expected value of the clearing interface and the expected value of the second database are verified to be consistent, the step of performing an account check on the business to be tested is performed.

[0026] In one embodiment, the step of performing an account check on the business to be tested includes:

[0027] Based on the accounting identifier of the business to be tested, query the account details in the accounting system as the actual account value, obtain the expected account value corresponding to the business to be tested from the business database of the business to be tested, and perform the account details check based on the actual account value and the expected account value;

[0028] The test logic of the service to be tested and the preset logic corresponding to the service to be tested are obtained, and a service logic check is performed based on the test logic and the preset logic.

[0029] In one embodiment, the step of performing automated testing on the service to be tested by calling a preset interface component through the automated testing node includes:

[0030] Calling a preset interface component through the automated test node to obtain test data corresponding to the service to be tested;

[0031] An automated test is performed based on the test data.

[0032] In one embodiment, before the step of acquiring the test data corresponding to the service to be tested by calling the preset interface component through the automated test node, the method further includes:

[0033] Acquire external system data in an external system, and when the primary key of the external system data is consistent with the preset primary key, update the shared data file through the external system data to obtain an updated shared data file, wherein the preset primary key is the primary key corresponding to the business to be tested;

[0034] Acquire internal system data in the internal system, and when the primary key of the internal system data is consistent with the preset primary key, update the internal data file by using the internal system data to obtain an updated internal data file;

[0035] Determine the first data corresponding to the preset primary key in the updated shared data file, and determine the second data corresponding to the preset primary key in the updated internal data file, and combine the first data and the second data to obtain the test data.

[0036] In one embodiment, the step of obtaining external system data in the external system includes:

[0037] Creating a first data preservation task, and binding the first data preservation task to a first data scanning function;

[0038] Based on the first data preservation task, calling the first data scanning function according to a first preset period to collect the external system data from the external system;

[0039] The step of obtaining the internal system data in the internal system includes:

[0040] Creating a second data preservation task, and binding the second data preservation task to a second data scanning function;

[0041] Based on the second data preservation task, the second data scanning function is called according to a second preset period to collect the internal system data from the internal system.

[0042] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the business testing method described above are implemented.

[0043] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the service testing method described above are implemented.

[0044] In the present application, a business model diagram of the business to be tested is obtained, wherein the business model diagram includes pre-configured automated test nodes; and the automated test is performed on the business to be tested by calling a preset interface component through the automated test nodes.

[0045] By obtaining the business model diagram of the business to be tested and pre-configuring automated testing nodes in the diagram, automated testing is performed by calling preset interface components through automated testing nodes during business use case testing. Compared to manually writing test case code and then executing the test case code to perform business use case testing, the present application can achieve automated testing through business model diagrams and automated testing nodes, reducing the manual operation process, thereby improving the efficiency of automated testing of securities business use cases. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0048] Figure 1 A flowchart of the first embodiment of the business testing method of this application is provided;

[0049] Figure 2 A flowchart of the second embodiment of the business testing method of this application is provided;

[0050] Figure 3 This is a schematic diagram of a data preservation process involved in one implementation method of the present application;

[0051] Figure 4 A schematic diagram of a business process model involved in an implementation method of the present application;

[0052] Figure 5 This is a schematic diagram of an automated testing process involved in an implementation method of the present application;

[0053] Figure 6 This is a schematic diagram of the accounting details check process involved in one implementation method of the present application;

[0054] Figure 7 A schematic diagram of a business logic inspection process involved in an implementation method of the present application;

[0055] Figure 8 This is a schematic diagram of the device structure of the hardware operating environment involved in the business testing method in the embodiment of the present application.

[0056] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0057] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0058] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0059] The main solution of the embodiment of the present application is: obtaining a business model diagram of the business to be tested, wherein the business model diagram includes pre-configured automated test nodes; and performing automated testing on the business to be tested by calling a preset interface component through the automated test nodes.

[0060] In this embodiment, for the convenience of description, the following description is made with the service test device as the execution subject.

[0061] The securities settlement process covers all aspects from placing orders, clearing and processing to final account verification and confirmation, involving a variety of financial products such as funds, stocks, bonds, etc. With the advancement of technology, the securities settlement process is gradually shifting towards automation. Before the automated process is fully put into use, rigorous testing of securities business use cases is essential.

[0062] At present, there are mainly two testing methods: RF-based automated testing methods and manual testing by testers based on different fund trading systems.

[0063] Based on the RF automated testing method, it is built on the mainstream RF framework and is divided into the data layer, interface layer and inspection layer. The data layer manages test data through fixed test data files in the form of tables, the interface layer uses Python to encapsulate automated code to simulate interface interactions, and the inspection layer is responsible for verifying message return values ​​and database records. However, this method has some shortcomings. First, the design ideas of automated test cases are not clear enough. It is time-consuming to understand only from the code level, and it is easy to miss checkpoints. Secondly, when business requirements change, the code needs to be modified, which places high demands on the programming ability of testers. Furthermore, there are problems with the management of test data. For example, when using data files such as EXCEL, if they are modified by other testers, it may cause the test case execution to fail, increasing the troubleshooting and repair time. In addition, occasional freezes in the RF interface and exceptions when importing libraries also affect the automation efficiency of the test.

[0064] In summary, the current automated testing process for securities business use cases still needs to be improved in terms of efficiency and flexibility.

[0065] In the embodiment of the present application, by obtaining the business model diagram of the business to be tested, and pre-configuring the automated test nodes in the diagram, the preset interface components are called through the automated test nodes to perform automated testing during the business case test. Compared with manually writing the test case code and then executing the test case code to perform the business case test, the present application can realize automated testing through the business model diagram and the automated test nodes, reducing the manual operation process, thereby improving the efficiency of automated testing of securities business cases. In addition, the business model diagram can clearly display the various links and processes of the business to be tested, so that the testers can intuitively understand the business logic and process. Pre-configuring the automated test nodes in the business model diagram can ensure that the automated test nodes are configured in the key links of the business process or the links where problems may occur, thereby ensuring the comprehensiveness and accuracy of the test. The preset interface components can be customized and developed according to actual business needs to ensure the accuracy and pertinence of the test. The testers can call different interface components as needed to perform a full range of tests on the business process. In addition, the embodiment of the present application can reduce the workload and time investment of the testers, thereby reducing the testing cost.

[0066] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a business testing device, etc. The following takes the business testing device as an example to illustrate this embodiment and the following embodiments.

[0067] Based on this, the present application embodiment provides a service testing method, referring to Figure 1 This is a flowchart of the first embodiment of the service testing method of the present application.

[0068] In this embodiment, the service testing method includes steps S10 to S20.

[0069] Step S10, obtaining a business model diagram of the business to be tested, wherein the business model diagram includes pre-configured automated test nodes.

[0070] It should be noted that the business to be tested refers to the securities business that needs to be tested for business use cases, which can be a fund trading business or a bond trading business, and there is no restriction here. The business model diagram is a model diagram that describes the transaction process of the business to be tested, for example, it can be a business process diagram. In the actual securities trading process, various situations such as different currencies, transaction types and transaction methods are involved. The above various transaction situations can be combined with each other to constitute different scenarios of securities trading. For example, fund transactions are conducted in foreign currencies, and the transaction method is an online payment scenario. In this embodiment, the business model diagram can be a business model diagram corresponding to one business scenario, or all business scenarios can be in the same business model diagram. Different process paths in the business model diagram represent different business scenarios, which can be set according to actual needs and are not restricted here.

[0071] There is no limitation on the way to obtain the business model diagram. For example, in one feasible implementation, each time a business test is triggered, the tester may draw the diagram according to the actual business process. The business model diagram includes pre-configured automated test nodes. The automated test nodes can trigger automatic business testing. In this implementation, the automated test nodes in the business model diagram can be set by the tester in the process of drawing the business process diagram. In another feasible implementation, the model diagram corresponding to the historical business process may be reused as the business model diagram, or the tester may modify the model diagram corresponding to the historical business process to obtain the business model diagram. In this implementation, the automated test nodes in the business model diagram can be obtained by the tester modifying the automated test nodes included in the historical model diagram, or by the tester adding automated test nodes to the model diagram corresponding to the historical business process. It should be noted that when all business scenarios are in the same business model diagram, the business model diagram may also include model diagram parameters that represent different business scenarios. For example, the model diagram can be used to Figure 3 The judgment nodes represent the account type, currency, and transaction system respectively. Different model graph parameters are configured on the outgoing edges of different judgment nodes to represent different business scenarios. For example, the outgoing edges of the currency judgment node can be RMB and foreign currency.

[0072] The business model diagram can clearly reflect the process of testing business, provide an intuitive basis for subsequent test plans and strategies, and facilitate the planning of test resources and time. Compared with writing test cases for use case testing, drawing a business model diagram is simpler and more efficient, thereby improving the overall efficiency of use case testing.

[0073] Step S20: performing an automated test on the service to be tested by calling a preset interface component through the automated test node.

[0074] Using automated testing tools or frameworks, according to the automated testing nodes configured in the business model diagram, the preset interface components bound to the automated testing nodes are automatically called. The preset interface components directly interact with the system's backend services to simulate real user operations or data processing processes, thereby verifying whether the business functions work as expected. The preset interface components can be customized and developed according to actual business needs to ensure the accuracy and pertinence of the test. Testers can call different interface components as needed to conduct a full range of tests on business processes. By calling the preset interface components for automated testing, the underlying interfaces of the system can be directly tested, which can more deeply verify the functional correctness and performance of the system.

[0075] In this embodiment, by obtaining the business model diagram of the business to be tested and pre-configuring the automated test nodes in the diagram, the preset interface components are called through the automated test nodes to perform automated testing during the business use case testing. Compared with manually writing the test case code and then executing the test case code to perform the business use case testing, the present application can achieve automated testing through the business model diagram and automated test nodes, reducing the manual operation process, thereby improving the efficiency of automated testing of securities business use cases.

[0076] In a feasible implementation manner, the step S20: performing automated testing on the service to be tested by calling a preset interface component through the automated testing node, includes steps S201 to S202.

[0077] Step S201: acquiring test data corresponding to the service to be tested by calling a preset interface component through the automated test node.

[0078] The business database is a database instance prepared for business use case testing. The test data it contains replicates or simulates the data of the actual securities trading system. The role of the business database is to perform software testing in a controlled environment to ensure that the development of new functions or the modification of existing functions will not affect the normal operation of the system, while also protecting the security and privacy of production data.

[0079] The automated test node interacts with the business database by triggering the preset interface component call. The preset interface component is usually an API (Application Programming Interface) specially designed for secure and efficient access to the database, which can extract specific test data according to test requirements.

[0080] Step S202: performing automated testing based on the test data.

[0081] After obtaining the test data, the automated testing equipment will use this data as input to simulate various user operations or business processes, including but not limited to sending requests to the system, verifying response content, checking data consistency, etc., to ensure that the system can operate correctly as designed in various expected and edge cases.

[0082] In a feasible implementation manner, before step S201: acquiring the test data corresponding to the service to be tested by calling the preset interface component through the automated test node, steps S203 to S205 are also included.

[0083] Step S203, obtaining external system data in the external system, and when the primary key of the external system data is consistent with the preset primary key, updating the shared data file through the external system data to obtain an updated shared data file, wherein the preset primary key is the primary key corresponding to the business to be tested.

[0084] It should be noted that an external system refers to an independent system that already exists and is used to store, manage or update securities business data (such as product data). Specifically, the external system may be a product center, a trading system, a third-party data provider, etc., and there is no restriction here.

[0085] The business test equipment interacts with the external system to extract necessary business data, hereinafter referred to as external system data for distinction. The extracted external system data is saved in a shared data file for easy use in subsequent steps. By collecting and saving the external system data, it is ensured that the real scenario of interaction with the external system can be simulated in the test environment. In a specific implementation, the shared data file may be reused by different systems, that is, the shared data file includes but is not limited to the external system data corresponding to the business to be tested, and the external system data corresponding to different businesses can be distinguished by the primary key. It should be noted that the primary key is used to identify the identity of different business data, and the specific form is not limited. For example, it can be the product code of the business to be tested + TA (Transfer Agent System, China Securities Depository and Clearing Corporation Open Fund Registration and Settlement System) code (that is, the registration agency code of the fund management company). The primary key corresponding to the business to be tested is referred to as the preset primary key for distinction. The primary key of the external system data may be consistent with the preset primary key, or it may be inconsistent with the preset primary key. When the primary key of the external system data is consistent with the preset primary key, it indicates that the external system data is the data corresponding to the business to be tested. The shared data file is updated with the external system data, and the resulting file is called the updated shared data file. The updated shared data file stores the external system data with higher timeliness for subsequent business testing.

[0086] Step S204, acquiring the internal system data in the internal system, and when the primary key of the internal system data is consistent with the preset primary key, updating the internal data file with the internal system data to obtain an updated internal data file.

[0087] It should be noted that, compared with external systems, internal systems usually refer to IT (Information Technology) systems or software applications used within a trading organization and managed, controlled and maintained by the organization itself. Internal systems may include securities management systems, securities trading systems, account systems, risk management systems, and report and statement systems.

[0088] The business test equipment collects business data from the internal system, which is referred to as internal system data for distinction. The internal system data reflects the status and operation records of business transactions within the system, and is crucial for verifying internal logic, state flow, etc. The primary key of the internal system data may be consistent with the preset primary key, or it may be inconsistent with the preset component. When the primary key of the internal system data is consistent with the preset primary key, it indicates that the internal system data is the data corresponding to the business to be tested. The internal data file is updated through the internal system data, and the resulting file is called the updated internal data file. By obtaining and saving the internal system data, it is ensured that the business test covers the entire picture of the transaction system, not only limited to the response to external interactions, but also includes the verification of internal processing logic, which helps to discover and repair deep-seated logical errors or performance problems.

[0089] Step S205, determining the first data corresponding to the preset primary key in the updated shared data file, and determining the second data corresponding to the preset primary key in the updated internal data file, and combining the first data and the second data to obtain the test data.

[0090] It should be noted that the first data is the external system data corresponding to the business to be tested in the updated shared data file, and the second data is the internal system data corresponding to the business to be tested in the updated internal data file. The first data and the second data are combined and saved as test data to serve as basic data for test execution.

[0091] It should be noted that by copying and saving business data instead of directly accessing external systems and internal data, the target data in the data file can be updated with the data in the business database, thereby creating a test environment that is as close as possible to the actual transaction environment but isolated. And by merging internal and external data, a rich test data set is created, which can more comprehensively test the behavior of the system when facing various data combinations, improving the coverage and effectiveness of the test.

[0092] In a feasible implementation, step S203: obtaining external system data in the external system includes steps S2031 to S2032.

[0093] Step S2031, creating a first data preservation task, and binding the first data preservation task to a first data scanning function.

[0094] Define and create a data preservation task to collect business data from an external system in order to synchronize and update data between the external system and the business database. This task is referred to as the first data preservation task for distinction. The purpose of the first data preservation task is to ensure that the data used in the test is always up to date or nearly up to date. By creating a data preservation task, the business test equipment can automatically manage the data acquisition process. Bind and associate the created first data preservation task with a data scanning function, referred to as the first data scanning function for distinction. The first data scanning function is responsible for actually executing the operation of grabbing data from the external system. Whenever the first data preservation task is triggered, the first data scanning function is automatically called to perform data collection.

[0095] Step S2032: Based on the first data preservation task, the first data scanning function is called according to a first preset period to collect the external system data from the external system.

[0096] It should be noted that the first data preservation task is set to be automatically executed according to a preset time period (such as every hour, every day, etc.). At the end of each period, the business test device automatically calls the data scanning function to capture the latest data from the external system.

[0097] In this implementation, step S204: the obtaining of internal system data in the internal system includes steps S2041 to S2042.

[0098] Step S2041, creating a second data preservation task, and binding the second data preservation task to a second data scanning function.

[0099] It should be noted that a data preservation task is defined and created to collect business data from the internal system in order to synchronize and update data with the external system and business database. This task is referred to as the second data preservation task for the sake of distinction. The purpose of the second data preservation task is to ensure that the data used in the test is always the latest or nearly the latest. By creating a data preservation task, the business test equipment can automatically manage the data acquisition process. The created second data preservation task is bound and associated with the data scanning function, which is referred to as the second data scanning function for the sake of distinction. The second data scanning function is responsible for actually executing the operation of grabbing data from the internal system. Whenever the second data preservation task is triggered, the second data scanning function is automatically called to perform data collection.

[0100] Step S2042: Based on the second data preservation task, the second data scanning function is called according to a second preset period to collect the internal system data from the internal system.

[0101] The second data preservation task is set to be automatically executed according to a preset time period (such as every hour, every day, etc.). At the end of each period, the business test device automatically calls the data scanning function to grab the latest data from the external system. In a specific implementation, the first preset period can be the same as the second preset period to ensure that the collected internal system data and external system data have the same time limit.

[0102] It should be noted that by creating a data preservation task to collect data from external and internal systems, the need for manual intervention can be reduced and the timeliness and consistency of data updates can be ensured. In addition, binding a data scanning function to the data preservation task can separate task management from data collection logic, facilitating later maintenance and functional expansion. For example, when changing the data source or adding data processing logic, only the data scanning function needs to be adjusted, without changing the task scheduling part, that is, the data preservation task.

[0103] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and no further description will be given later. In this embodiment, the business model diagram includes the business process path of the business to be tested in each business scenario, and the automated test node includes the test node in the business process path of each business scenario. On this basis, please refer to Figure 2 , step S20: the step of performing automated testing on the service to be tested by calling a preset interface component through the automated testing node, including steps S206 to S207.

[0104] Step S206, for any target scenario in the business scenarios, the preset interface component is parameterized according to the target process path through the target test node to obtain the target interface component, wherein the target process path is the business process path of the target scenario, and the target test node is the test node in the target process path.

[0105] The business model diagram may include the business process paths of the business to be tested in each business scenario. Each business process path represents a business process in a specific business scenario, and an automated test node is set on each business process path. In the following, any scenario in each task scenario is referred to as a target scenario, the business process path corresponding to the target scenario is referred to as a target process path, and the automated test node configured in the target process path is referred to as a target test node.

[0106] In this embodiment, the target test node on the target process path is identified, and then the preset interface component is parameterized according to the business logic and data requirements specific to the target scenario. That is, these parameters reflect the request information that the system should receive under the target scenario, ensuring that the test simulates real behavior that meets the expected scenario expectations.

[0107] It should be noted that, in the present embodiment, the automated test nodes of each business process path reuse the same interface component, that is, the automated test nodes on each business process path all call the preset interface component for automated testing. For different automated test nodes, the preset interface component is parameterized according to the business process path where each automated test node is located. For example, when the business scenario is to use foreign currency for securities trading and the transaction method is online payment, then "foreign currency", "securities trading" and "online payment" are used as input parameters for the preset interface component.

[0108] In a specific implementation, the interfaces required for the business to be tested can be pre-packaged to obtain a preset interface component, and an interface document can be constructed. The interface document is used to describe the interface definition required by the interface component during the testing process. By modifying the parameter values ​​of the interface parameters in the interface document, different interfaces can be defined, thereby achieving different data acquisition through the interface.

[0109] Reusing the same interface component for each business process path can improve the code reuse rate, reduce the amount of code that needs to be written and maintained, simplify the development of automated test scripts, reduce the time for test preparation and configuration, and enable testers to build and execute test cases faster, improving test efficiency. In addition, since multiple business scenarios share the same interface component, it ensures that all related tests are based on the same logic, which helps to discover interface-level problems and improve the consistency and reliability of test results; when the interface changes or needs to be optimized, it only needs to be modified in one place, and all test scenarios using the interface component will automatically inherit these changes, simplifying the maintenance and upgrade process and reducing potential errors and maintenance costs caused by duplicate code.

[0110] In addition, customized parameter configurations for each business scenario can more accurately reflect actual business operations, improving the pertinence and effectiveness of the test.

[0111] Step S207: performing automated testing on the target scenario by calling the target interface component through the target test node.

[0112] After completing the parameter configuration of the target interface components, these configured interface components are automatically called through the target test node to simulate the user or system's request for the backend service in the real business scenario and execute the complete business process.

[0113] In this implementation, automated testing greatly improves test speed, reduces errors caused by manual intervention, ensures that each test follows the same standards and processes, and improves test accuracy and consistency.

[0114] Furthermore, in one feasible implementation, the automated testing tool may monitor the response results, verify whether they meet expectations, record the test results, and may trigger subsequent test actions or error handling processes as needed.

[0115] In a feasible implementation, the automated testing node includes an order node, a transfer node and a clearing node, and the preset interface component includes a first interface component corresponding to the order node and a second interface component corresponding to the clearing node. In this implementation, step S207: performing automated testing on the business to be tested by calling the preset interface component through the automated testing node, including steps S2071 to S2074.

[0116] Step S2071: Calling the first interface component through the ordering node to perform an order test on the service to be tested.

[0117] In the process of securities trading, placing orders, transferring funds, clearing and checking accounts are all necessary operations. In this embodiment, the automated test nodes include ordering nodes, transfer nodes and clearing nodes. The preset interface component includes a first interface component bound to the ordering node and a second interface component bound to the clearing node. The ordering node and the clearing node respectively call their respective bound interface components for testing. Specifically, the business testing device calls the preset first interface component through the ordering node to simulate the operation of the user placing an order in the system, and can test whether the securities trading system can correctly handle the user's order request, so as to discover and solve any problems that may affect the user experience during the ordering process during the test, such as slow page loading, unclear error prompts, etc.

[0118] Step S2072, obtaining the transfer parameters of the payment system through the transfer node.

[0119] The transfer node interacts with external or internal payment systems to obtain necessary transfer parameters, such as payment amount, payment channel, transaction status, etc., and simulates the background interaction of users completing the payment process. It can verify whether the interface interaction between the payment system and the business system is normal, ensuring a seamless payment process.

[0120] Exemplarily, in a feasible implementation, the payment system may be an external payment system, and the transfer node obtains transfer parameters through an externally shared component provided by the external payment system to simulate a payment operation.

[0121] In a feasible implementation, before obtaining the transfer parameters transmitted by the external payment system through the transfer node, the completion of the order test may be verified. The specific process may be:

[0122] a1, obtaining the order interface return value of the order node, and obtaining the preset order interface expected value corresponding to the order node and the first database expected value in the business database of the business to be tested.

[0123] The business testing device obtains the actual return result from the order interface, that is, the order interface return value. The order interface return value contains the response information of the system after the order operation is completed. At the same time, the business testing device will also obtain two expected values: one is the expected return value preset by the order interface, that is, the order interface expected value, which represents the specific response of the developer's expected successful order; the other is the expected value of the corresponding order record in the business database, that is, the first database expected value. The first database expected value can ensure that the order operation is not only correctly responded to at the interface level, but also the corresponding record update is completed at the database level.

[0124] a2, when the return value of the order interface, the expected value of the order interface and the expected value of the first database are verified to be consistent, execute the step of obtaining the transfer parameters input by the external payment system through the transfer node.

[0125] When the return value of the order interface, the expected value of the order interface and the expected value of the first database are verified to be consistent, the order operation is verified to be completely successful, and the test process will continue to the next step, that is, to interact with the external payment system through the transfer node to obtain the transfer parameters, ensuring that the test of the payment process is based on the success of the previous steps, avoiding invalid or misleading test results caused by errors in the previous links.

[0126] By verifying whether the order test is successful before transferring funds, we not only verify the correctness of the order test function, but also ensure the smooth connection of each step in the business process, providing a solid testing guarantee for the stability and reliability of the entire payment system.

[0127] Step S2073: Calling the second interface component through the clearing node to perform a clearing test on the business to be tested.

[0128] At the clearing node, by calling the second interface component to simulate the clearing process after the transaction is completed, including the final allocation of funds, accounting processing, etc., this implementation can verify the clearing ability of the securities trading system under high concurrency or abnormal conditions, and ensure the stability and reliability of capital flow.

[0129] Step S2074: perform an account check on the business to be tested.

[0130] Conduct a comprehensive accounting check on the entire business process of the business to be tested, including verifying the consistency between the order, payment, refund and other information recorded by the system and the actual flow of funds to ensure the integrity and accuracy of the financial data. This implementation method can detect and correct accounting processing errors that may lead to compliance issues in advance.

[0131] In a feasible implementation manner, the process of performing account checking on the business to be tested may include steps a3 to a4:

[0132] a3, based on the accounting identifier of the business to be tested, query the account details in the accounting system as the actual account value, obtain the expected account value corresponding to the business to be tested from the business database of the business to be tested, and perform account detail check based on the actual account value and the expected account value.

[0133] It should be noted that by querying the actual accounting details through the accounting system's accounting identifier, and at the same time taking out the expected accounting data from the business database for comparison to verify whether the two match, the correctness of the accounting records can be ensured.

[0134] a4, obtaining the test logic of the service to be tested and the preset logic corresponding to the service to be tested, and performing a service logic check based on the test logic and the preset logic.

[0135] It should be noted that by verifying the business logic and comparing whether the actually executed test logic (that is, based on the actual behavior during the test) is consistent with the preset logic (that is, the business rules defined in the design phase), it is possible to verify whether the business rules are executed correctly.

[0136] In a specific implementation, before performing an account check on the business to be tested, the method further includes steps a5 to a6:

[0137] a5, obtaining the clearing interface return value of the clearing node, and obtaining the preset clearing interface expected value corresponding to the clearing node and the second database expected value in the business database.

[0138] The business test equipment obtains the actual return value from the clearing interface, that is, the clearing interface return value. The clearing interface return value is the feedback information given after the clearing operation is executed. The business test equipment also obtains the expected return value preset by the clearing interface, that is, the clearing interface expected value. The clearing interface expected value is the result that is defined before the test and expected to be returned by the clearing interface. The business test equipment obtains the expected data value related to the clearing operation from the business database, that is, the second database expected value. The second database expected value can ensure that the clearing operation is not only correctly responded to at the interface level, but also completes the corresponding record update at the database level.

[0139] a6, when the return value of the clearing interface, the expected value of the clearing interface and the expected value of the second database are verified to be consistent, executing the step of performing an account check on the business to be tested.

[0140] In this implementation, an account check is performed when the return value of the clearing interface, the expected value of the clearing interface and the expected value of the second database are verified to be consistent, thereby ensuring that the account check is performed on the basis of a correct clearing process and avoiding false alarms in the account check caused by problems in the clearing link.

[0141] It should be noted that, in the present embodiment, the order test of the business to be tested is performed by calling the first interface component through the order placement node, the transfer parameters of the payment system are obtained through the transfer node, the clearing test of the business to be tested is performed by calling the second interface component through the clearing node, and the account check of the business to be tested is performed to complete the automated testing of the securities business, covering the entire process from user order placement to clearing and account verification after the transaction is completed, ensuring the robustness, accuracy and security of the trading system.

[0142] For example, in order to help understand the technical concept or technical principle of the log service test after the present embodiment is combined with the above-mentioned embodiment 1 and embodiment 2, the process of performing service test on the fund service may be:

[0143] Step 1: Data preparation. The fund liquidation business automation data based on graphical modeling is uniformly managed with database tables. In the process of fund business, product data and transaction accounts are required. The product data comes from the external system and product center, and the transaction account comes from the internal system. Since the business test equipment has no authority to directly obtain and modify the external system data, the data preservation steps adopted here are used to obtain the external system data.

[0144] Please refer to Figure 3The specific process of data preparation is as follows: 1. The person in charge of the external system imports the external system data from different trading systems and different currencies required by the test scenario into the shared data file; 2. For this shared data file, the person in charge of the external system needs to ensure the accuracy of the data. Here, a data preservation task is set for the shared data file; 3. The task is bound to a data scanning function, which automatically runs when the scheduled task is triggered. The function implemented by the data scanning function is: query product data from the external system database table (that is, create a first data preservation task, and bind the first data preservation task to the first data scanning function; based on the first data preservation fresh task, calling the first data scanning function according to the first preset period to collect the external system data from the external system); 4. When it is determined that the primary key of the external system data obtained by the query (product code + TA code / account number in this embodiment) is consistent with the preset primary key, the shared data file is updated through the external system data (that is, when the primary key of the external system data is consistent with the preset primary key, the shared data file is updated through the external system data to obtain an updated shared data file, wherein the preset primary key is the primary key corresponding to the business to be tested); similarly, 5. Import the data from the internal system required for the test scenario into the internal data file , set a data preservation task for the internal data file; 6. The task is bound to a data scanning function, and the data scanning function is automatically run when the scheduled task is triggered. The function implemented by the data scanning function is: query product data from the internal system database table (that is, create a second data preservation task, and bind the second data preservation task to the second data scanning function; based on the second data preservation task, call the second data scanning function according to the second preset period to collect the internal system data from the internal system); 7. After determining the primary key of the internal system data obtained by the query (product code + TA code / account number in this embodiment) and the preset primary key When the external system data determined in the above step 4 and the internal system data determined in the step 7 are consistent with the preset primary key, the internal data file is updated by the internal system data to obtain the updated internal data file; 8. The external system data determined in the above step 4 and the internal system data determined in the step 7 are combined into a data file and saved for subsequent test cases to obtain data (that is, the first data corresponding to the preset primary key in the updated shared data file is determined, and the second data corresponding to the preset primary key in the updated internal data file is determined, and the first data and the second data are combined to obtain the test data).

[0145] In this embodiment, the data preservation technology mainly sets a timed task, triggers the data fetching from the database at a fixed time, and refreshes the specified test data to ensure the accuracy of the test data. Compared with the traditional data-driven RF automated test, it avoids the situation where the test data in the test data file is modified, which leads to the failure of the automated test case execution. In addition, there is a test scheme that fetches data from the data table before the test case is executed. Compared with this method, when there is too much data in the database table, the execution of a single test case is time-consuming. This method separates the execution of the scheduled task from the test case, and does not occupy the test case execution time while preserving the data, occupies less resources, and has high execution efficiency.

[0146] Step 2: Interface encapsulation. Before designing test cases for fund clearing business automation based on graphical modeling, encapsulate the interfaces required by the business. During the test analysis phase, testers usually already have complete interface documentation, and can register the interfaces required for the project on the automation platform according to the interface documentation, including interface URL, input parameters, access methods, and return values. When the interface definition changes, modify the interface parameters and encapsulate them into a "single interface component" to simulate message sending. The interface encapsulation process is simple, which is easy for novice testers to get started. Compared with RF-based automated testing, the code volume is low and easy to maintain.

[0147] Step 3: Business modeling, fund clearing business automation based on graphical modeling is based on business process modeling in the test and analysis process, and a flowchart is used to describe the business process. The flowchart clearly reflects different trading systems, different account types, and different currency trading orders, payment transfers, fund sales system clearing, bank account checks and other processes. The fund clearing business process is divided into the following steps: different account types, different currencies, different trading system orders; different account types payment transfers; different trading system clearing; local order data verification, bank account verification.

[0148] Based on the fund liquidation business process described above, in this implementation, the actual business model diagram is first used. When the business model diagram is involved, the business test equipment passes the model diagram. Figure 3 The judgment nodes represent the account type, currency, and trading system respectively. The judgment node series connection method well realizes the cross-product coverage of different business scenarios. At the outgoing edges of different judgment nodes, the business test equipment configures the model graph parameters, such as: currency "CNY (Chinese Yuan, RMB)", "USD (United States Dollar, US Dollar)", as different field values ​​of the single interface component at the order node, configures the automatic action at the order node, calls the single interface component, sends the message in the specified format of the interface encapsulation, and simulates the fund product order process. Please refer to Figure 4 , Figure 4A business model diagram is shown, based on which the fund clearing business process can be determined as follows: determine whether the business type is a preset type, if not, jump to the "report error" node, otherwise determine whether the fund transaction application record exists; if the fund transaction application record exists, check whether the key fields of the fund transaction record are consistent with the local fields, if they are consistent, check whether the local transaction application record has been processed, if not, report an error; if the local transaction application record has been processed, determine that the fund transaction application is successful, if the local transaction application record has not been processed, notify the user end and update the fund transaction record; if the fund transaction record does not exist, determine whether the order id exists in the fund transaction record. If the order id does not exist in the fund transaction record, a new fund transaction application record will be added, and then the trading system will be entered to verify the account to determine whether to enter the quick application or the ordinary application; if the quick application is entered, check whether it is an unreasonable order, if it is an unreasonable order, an error will be reported, if it is not an unreasonable order, determine whether the order is processed successfully, if it is processed successfully, determine that the order application is successful, if the processing fails, notify the user end; if the ordinary application is entered, determine whether the order exists, if the order exists, update the transaction order, if the transaction does not exist, save the ordinary transaction order, and then check whether it is an unreasonable order. If the order id exists in the fund transaction record, check whether there is an end mark, if there is an end mark, an error will be reported, if there is no end mark, update the fund transaction record and enter the investment advisor application to check whether the order is processed successfully.

[0149] Step 4: Automated testing, please refer to Figure 5, the automated test process is: parsing database test data; encapsulating a single interface component and setting a transaction order (i.e., calling the first interface component through the order node to test the order of the business to be tested); return value verification (i.e., obtaining the order interface return value of the order node, and obtaining the preset order interface expected value corresponding to the order node and the first database expected value in the business database of the business to be tested; when the order interface return value, the order interface expected value and the first database expected value are verified to be consistent, executing the step of obtaining the transfer parameters passed in by the external payment system through the transfer node); referencing a shared component to simulate transfer ( That is, obtaining the transfer parameters of the payment system through the transfer node); encapsulating a single interface component and setting transaction clearing (that is, calling the second interface component through the clearing node to perform a clearing test on the business to be tested); return value verification (that is, obtaining the clearing interface return value of the clearing node, and obtaining the clearing interface expected value corresponding to the clearing node and the second database expected value in the business database; when the clearing interface return value, the clearing interface expected value and the second database expected value are verified to be consistent, executing the step of performing an account check on the business to be tested); account check (that is, performing an account check on the business to be tested).

[0150] It should be noted that the expected value check is configured on the order node to check whether the return value of the order interface is successful, and whether the database expected value check of the local data table passes after the order is placed. When both the interface expected value and the database expected value pass, the business process continues. Taking the fund business order process as an example, the actual value is the return code field in the message return value of the order interface, which is compared with the expected value "Success: SUC0000". When the message expected value check passes, the database expected value is checked. The actual value is: the input parameter of the order interface, and the expected value is the corresponding business field of the local order table. When the actual value is consistent with the expected value, the check passes and the business continues to execute.

[0151] When making a payment, different account types use different payment methods. For example, the account of China Merchants Bank uses the scheduled task of this system to transfer money, and the RMB of other banks uses the large and small amount system to transfer money. The payment transfer operation itself belongs to the external system business. When the manual payment encounters an error, the external system will be sought for support and solution. It is limited by the support time and communication cost of other testers and takes the longest time. If there is a problem with the test data, the payment function may not be successful for more than one time in a day's work for a novice tester, which seriously affects the progress of the test project. Here, the business test equipment does not care about the internal logic of the payment and clearing of the external system. In order to improve the test execution efficiency of the payment and clearing, the external system encapsulates the payment and clearing process into a payment "shared component", which is similar to the python public library. The shared component defines the function input parameter and return value. The function implemented is to call the function to simulate its internal operation for other systems to call. The business test equipment passes in the input parameter according to the definition of the shared component to realize the payment transfer operation.

[0152] The logic of automated clearing implementation in different systems is similar to the order placement process and is implemented based on a single interface component of this system.

[0153] Account check is the focus of fund business testing. There are four transaction systems involved in this implementation, two account transaction modes, and two currency types. When accounting occurs, different internal accounts, accounting summaries, and set record definitions correspond to each other. Account check is divided into two key steps: 1. Account detail check, that is, check whether the local data table account is the same as the actual account details of the core accounting platform; 2. Business logic check, that is, check whether the internal account information and deduction amount corresponding to different transaction systems are consistent with the actual results of fund liquidation.

[0154] For account detail check, since all business account checks require the same key steps, the business test equipment extracts a public method as a "shared component" for account check. This method implements the function of obtaining the accounting set number to query the account details on the core account platform as the actual value and comparing it with the expected value. The expected value here needs to be customized. The business test equipment takes the business-significant fields in the local data table account details as the expected value according to different transaction modes. When the expected value is consistent with the actual value, the check passes. Please refer to Figure 6 The process of checking the account details may be: taking the key fields of the local data table (i.e., the business database) as the expected value of the account details; querying the account details as the actual value according to the transaction filling; detecting whether the expected value and the actual value are the same, if they are the same, the check passes, if they are different, the check fails (i.e., querying the account details in the accounting system as the actual account value based on the accounting identifier of the business to be tested, obtaining the expected account value corresponding to the business to be tested from the business database of the business to be tested, and performing the account details check based on the actual account value and the expected account value).

[0155] For business logic inspection, the business test equipment is first divided into two categories according to the transaction mode. The counterparty of the ordinary mode transaction is the customer account, and the counterparty of the quick mode transaction is the internal account, corresponding to different accounting summaries. Secondly, it is divided into four categories according to the transaction system. Direct sales, agency sales, and Zhongbaodeng correspond to the same internal account, and Yinjitong corresponds to a separate internal account. Finally, according to different currency classifications, the internal accounts checked for RMB and USD are different. Based on the above business logic classification, the business test equipment checks whether the debit, credit, transaction amount, recording code, and accounting summary are consistent with the expected values. Please refer to Figure 7 , the process of business logic check can be: determine the account type, the business test equipment is first divided into two categories according to the transaction mode, the ordinary mode transaction counterparty is the customer account, and the quick mode transaction counterparty is the internal account, corresponding to different accounting summaries; then determine the transaction system, which includes four transaction systems: direct sales, agency sales, Zhongbaodeng and Yinjitong in this implementation. Direct sales, agency sales and Zhongbaodeng correspond to the same internal account, and Yinjitong corresponds to a separate internal account; then determine the currency, in this implementation, the currency is divided into RMB and US dollars, and the internal accounts checked for RMB and US dollars are different; finally, check whether the debit, credit, transaction amount, recording code, and accounting summary are consistent with the expected values. If they are consistent, the check passes, and if they are inconsistent, the check fails (that is, obtain the test logic of the business to be tested and the preset logic corresponding to the business to be tested, and perform business logic check based on the test logic and the preset logic).

[0156] Based on the combination of public account checking methods and custom account checking methods, the tedious operation of frequently querying the core account platform is reduced, and the public account checking method can be applied to all businesses that require account checking to improve the efficiency of account checking. The custom account checking method is based on the development and implementation logic to check whether the actual account meets the business requirements. The check points are comprehensive and detailed, reducing manual comparison and improving the comparison efficiency.

[0157] In this implementation, the test design method based on the cause-and-effect diagram is used to design automation cases. The test cases reflect the test design ideas in detail, the automation cases cover comprehensive scenarios, and the change nodes are easy to maintain. The shared components are combined with the custom encapsulated single-interface components to reduce external system operations, improve test efficiency, and save testing manpower. Low code and unified standard definition methods are used to achieve automation, which is convenient for newcomers to get started quickly. In addition, the data preservation method regularly obtains the latest data to refresh the test data file to avoid test case failures caused by test data modification and improve accuracy. In addition, the public accounting inspection method is combined with the custom accounting inspection method, and the accounting inspection is comprehensive, which improves the efficiency of test execution.

[0158] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the business testing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0159] The present application also provides a business testing device. The business testing device provided by the present application adopts the business testing method in the above embodiment, which can solve the technical problem of low efficiency of the automated testing process of securities business use cases. Compared with the prior art, the beneficial effects of the business testing device provided by the present application are the same as the beneficial effects of the business testing method provided by the above embodiment, and other technical features in the business testing device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0160] The present application provides a business testing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the business testing method in the above-mentioned embodiment 1.

[0161] Reference below Figure 8 , which shows a schematic diagram of the structure of a service test device suitable for implementing the embodiment of the present application. The service test device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The service test device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0162] like Figure 8As shown, the business test equipment may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the business test equipment are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the service test device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a service test device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0163] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the model diagram can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the model diagram. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0164] The business testing device provided by the present application adopts the business testing method in the above embodiment, which can solve the technical problem of low efficiency of the automated testing process of securities business use cases. Compared with the prior art, the beneficial effects of the business testing device provided by the present application are the same as the beneficial effects of the business testing method provided by the above embodiment, and other technical features in the business testing device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0165] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0166] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0167] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the service testing method in the above-mentioned embodiment.

[0168] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0169] The computer-readable storage medium may be included in the service test device; or may exist independently without being assembled into the service test device.

[0170] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the business testing device, the business testing device: obtains a business model diagram of the business to be tested, wherein the business model diagram includes pre-configured automated testing nodes; and performs automated testing on the business to be tested by calling a preset interface component through the automated testing node.

[0171] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0172] The model diagram and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the model diagram or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the model diagram, and the combination of the boxes in the block diagram and / or the model diagram can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0173] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0174] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned business testing method, and can solve the technical problem of low efficiency of the automated testing process of securities business use cases. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the business testing method provided by the above-mentioned embodiment, and will not be elaborated here.

[0175] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned service testing method when executed by a processor.

[0176] The computer program product provided by this application can solve the technical problem of low efficiency in the automated testing process of securities business use cases. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the business testing method provided by the above embodiment, which will not be repeated here.

[0177] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A service testing method, characterized in that: The method includes: Acquire a business model diagram of the business to be tested, wherein the business model diagram includes pre-configured automated test nodes; The automated testing node calls a preset interface component to perform automated testing on the service to be tested.

2. The method according to claim 1, characterized in that The business model diagram includes the business process path of the business to be tested in each business scenario, and the automated test node includes the test node in the business process path of each business scenario; The step of performing automated testing on the service to be tested by calling a preset interface component through the automated testing node includes: For any target scenario in each of the business scenarios, the target interface component is obtained by parameterizing the preset interface component according to the target process path through the target test node, wherein the target process path is the business process path of the target scenario, and the target test node is the test node in the target process path; The target scenario is automatically tested by calling the target interface component through the target test node.

3. The method according to claim 1, characterized in that The automated test node includes an ordering node, a remittance node, and a clearing node, and the preset interface component includes a first interface component corresponding to the ordering node and a second interface component corresponding to the clearing node; The step of performing automated testing on the service to be tested by calling a preset interface component through the automated testing node includes: Calling the first interface component through the ordering node to perform an order test on the service to be tested; Obtaining the transfer parameters of the payment system through the transfer node; Calling the second interface component through the clearing node to perform a clearing test on the business to be tested; Perform an accounting check on the business to be tested.

4. The method according to claim 3, characterized in that Before the step of obtaining the transfer parameters input by the external payment system through the transfer node, the method further includes: Obtaining the order interface return value of the order node, and obtaining the preset order interface expected value corresponding to the order node and the first database expected value in the business database of the business to be tested; When the return value of the order interface, the expected value of the order interface and the expected value of the first database are verified to be consistent, the step of obtaining the transfer parameters input by the external payment system through the transfer node is executed; Before the step of performing account checking on the business to be tested, the method further includes: Obtaining a clearing interface return value of the clearing node, and obtaining a preset clearing interface expected value corresponding to the clearing node and a second database expected value in the business database; When the return value of the clearing interface, the expected value of the clearing interface and the expected value of the second database are verified to be consistent, the step of performing an account check on the business to be tested is performed.

5. The method according to claim 3, characterized in that The step of performing an account check on the business to be tested includes: Based on the accounting identifier of the business to be tested, query the account details in the accounting system as the actual account value, obtain the expected account value corresponding to the business to be tested from the business database of the business to be tested, and perform the account details check based on the actual account value and the expected account value; The test logic of the service to be tested and the preset logic corresponding to the service to be tested are obtained, and a service logic check is performed based on the test logic and the preset logic.

6. The method according to any one of claims 1 to 5, characterized in that The step of performing automated testing on the service to be tested by calling a preset interface component through the automated testing node includes: Calling a preset interface component through the automated test node to obtain test data corresponding to the service to be tested; An automated test is performed based on the test data.

7. The method according to claim 6, characterized in that Before the step of acquiring the test data corresponding to the service to be tested by calling the preset interface component through the automated test node, the method further includes: Acquire external system data in an external system, and when the primary key of the external system data is consistent with the preset primary key, update the shared data file through the external system data to obtain an updated shared data file, wherein the preset primary key is the primary key corresponding to the business to be tested; Acquire internal system data in the internal system, and when the primary key of the internal system data is consistent with the preset primary key, update the internal data file by using the internal system data to obtain an updated internal data file; Determine the first data corresponding to the preset primary key in the updated shared data file, and determine the second data corresponding to the preset primary key in the updated internal data file, and combine the first data and the second data to obtain the test data.

8. The method according to claim 7, characterized in that The step of obtaining external system data in the external system includes: Creating a first data preservation task, and binding the first data preservation task to a first data scanning function; Based on the first data preservation task, calling the first data scanning function according to a first preset period to collect the external system data from the external system; The step of obtaining the internal system data in the internal system includes: Creating a second data preservation task, and binding the second data preservation task to a second data scanning function; Based on the second data preservation task, the second data scanning function is called according to a second preset period to collect the internal system data from the internal system.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the service testing method according to any one of claims 1 to 8 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the service testing method according to any one of claims 1 to 8 are implemented.