A transaction link generation method and device based on service adaptability testing

CN117435625BActive Publication Date: 2026-10-30INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311219155.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2026-10-30
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

由于存在各个节点服务器数量多、服务器间路由规则复杂、日志格式不统一、可读性差等问题,对于测试人员,尤其是业务测试人员而言具有一定门槛,导致测试效率低下,此外,也比较容易发生交易链路的分支未覆盖的情况,对测试工作质量造成不良影响

Benefits of technology

[0042]本发明实施例提供的基于业务适应性测试的交易链路生成方法及装置,确定与待查询目标信息相对应的目标应用标识,以及确定与所述目标应用标识相对应的目标关键字类型;根据预配置路由规则信息确定与所述目标应用标识和所述目标关键字类型都对应的目标路由规则,并根据所述目标路由规则确定与目标应用相关联的关联应用;获取与所述待查询目标信息对应的查询结果信息,根据与所述查询结果信息对应的关联记录信息从所述关联应用中确定与所述目标应用在同一交易链路中的目标关联应用,并将所述目标应用和所述目标关联应用组合,得到包含所述待查询目标信息的交易链路,能够提高业务适应性测试的测试工作效率和测试工作质量。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117435625B_ABST
    Figure CN117435625B_ABST
Patent Text Reader

Abstract

The application provides a transaction link generation method and device based on service adaptability testing, relates to the technical field of testing, and can be applied to the financial field or other technical fields. The method comprises the following steps: determining a target application identifier corresponding to to-be-inquired target information, and determining a target keyword type corresponding to the target application identifier; determining a target routing rule corresponding to the target application identifier and the target keyword type according to preconfigured routing rule information, and determining an associated application associated with the target application according to the target routing rule; acquiring query result information corresponding to the to-be-inquired target information, determining a target associated application according to associated record information corresponding to the query result information, and combining the target application and the target associated application to obtain a transaction link. The device executes the above method. The method and device provided in the application embodiment can improve the testing efficiency and quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of testing technology, and specifically to a method and apparatus for generating transaction links based on business adaptability testing. Background Technology

[0002] During the adaptive testing of technical transformation of business systems based on distributed platform architecture, due to the complexity of the backend transaction chain, testers often need to confirm the complete coverage of the transaction chain branches while testing the normal operation of transaction-related business functions.

[0003] The existing method requires testers to identify nodes in the transaction chain by querying the logs of each relevant node. This presents challenges, particularly for business testers, due to the large number of servers, complex routing rules, inconsistent log formats, and poor readability. This results in low testing efficiency and makes it easy for branches of the transaction chain to be missed, negatively impacting the quality of the testing work. Summary of the Invention

[0004] To address the problems in the prior art, embodiments of the present invention provide a transaction link generation method and apparatus based on business adaptability testing, which can at least partially solve the problems existing in the prior art.

[0005] On the one hand, this invention proposes a transaction link generation method based on business adaptability testing, including:

[0006] Determine the target application identifier corresponding to the target information to be queried, and determine the target keyword type corresponding to the target application identifier;

[0007] Based on the pre-configured routing rule information, a target routing rule corresponding to both the target application identifier and the target keyword type is determined, and an associated application associated with the target application is determined based on the target routing rule.

[0008] Obtain query result information corresponding to the target information to be queried; determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information; and combine the target application and the target related application to obtain the transaction link containing the target information to be queried.

[0009] The step of obtaining the query result information corresponding to the target information to be queried includes:

[0010] Based on the target application identifier and the target keyword type, obtain the first data storage location information of the target application, and obtain the query result information corresponding to the target information to be queried from the first data storage location information.

[0011] Wherein, the target keyword type includes string field information; correspondingly, obtaining the first data storage location information of the target application based on the target application identifier and the target keyword type includes:

[0012] The target database name corresponding to the target application identifier is determined according to a preset correspondence.

[0013] The preset correspondence includes the correspondence between preset application identifiers and preset database names;

[0014] The string field information is calculated using a consistent hashing algorithm to obtain the target data shard number in the target database corresponding to the target database name;

[0015] The target database and the target data fragment number are used as the first data storage location information.

[0016] The process of obtaining the associated record information corresponding to the query result information includes:

[0017] The second data storage location information of the associated application is obtained based on the associated application identifier and the associated keyword type corresponding to the associated application identifier, and the associated record information corresponding to the query result information is obtained from the second data storage location information.

[0018] The associated keyword type includes string field information; correspondingly, obtaining the second data storage location information of the associated application based on the associated application identifier and the associated keyword type corresponding to the associated application identifier includes:

[0019] The associated database name corresponding to the associated application identifier is determined according to a preset correspondence.

[0020] The preset correspondence includes the correspondence between preset application identifiers and preset database names;

[0021] The string field information is calculated using a consistent hashing algorithm to obtain the associated data shard number in the associated database corresponding to the associated database name;

[0022] The associated database and the associated data shard number are used as the second data storage location information.

[0023] The step of determining the target associated application in the same transaction chain as the target application from the associated applications based on the associated record information corresponding to the query result information includes:

[0024] The associated application corresponding to the second data storage location information containing the associated record information is determined as the target associated application in the same transaction link as the target application.

[0025] The method for generating a transaction link based on business adaptability testing, following the step of combining the target application and the target associated application to obtain a transaction link containing the target information to be queried, further includes:

[0026] The system displays the transaction link of the target information to be queried based on pre-configured transaction link information, as well as the key transaction information of the target application and the target associated application.

[0027] On one hand, this invention proposes a transaction link generation device based on business adaptability testing, comprising:

[0028] The first determining unit is used to determine the target application identifier corresponding to the target information to be queried, and to determine the target keyword type corresponding to the target application identifier;

[0029] The second determining unit is used to determine the target routing rule corresponding to both the target application identifier and the target keyword type based on the pre-configured routing rule information, and to determine the associated application associated with the target application based on the target routing rule;

[0030] The generation unit is used to obtain query result information corresponding to the target information to be queried, determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information, and combine the target application and the target related application to obtain a transaction link containing the target information to be queried.

[0031] In another aspect, embodiments of the present invention provide an electronic device, including: a processor, a memory, and a bus, wherein,

[0032] The processor and the memory communicate with each other via the bus;

[0033] The memory stores program instructions that can be executed by the processor, and the processor can execute the following methods by calling the program instructions:

[0034] Determine the target application identifier corresponding to the target information to be queried, and determine the target keyword type corresponding to the target application identifier;

[0035] Based on the pre-configured routing rule information, a target routing rule corresponding to both the target application identifier and the target keyword type is determined, and an associated application associated with the target application is determined based on the target routing rule.

[0036] Obtain query result information corresponding to the target information to be queried; determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information; and combine the target application and the target related application to obtain the transaction link containing the target information to be queried.

[0037] This invention provides a non-transitory computer-readable storage medium, comprising:

[0038] The non-transitory computer-readable storage medium stores computer instructions that cause the computer to perform the following methods:

[0039] Determine the target application identifier corresponding to the target information to be queried, and determine the target keyword type corresponding to the target application identifier;

[0040] Based on the pre-configured routing rule information, a target routing rule corresponding to both the target application identifier and the target keyword type is determined, and an associated application associated with the target application is determined based on the target routing rule.

[0041] Obtain query result information corresponding to the target information to be queried; determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information; and combine the target application and the target related application to obtain the transaction link containing the target information to be queried.

[0042] The transaction link generation method and apparatus based on business adaptability testing provided in this invention determine a target application identifier corresponding to the target information to be queried, and determine a target keyword type corresponding to the target application identifier; determine a target routing rule corresponding to both the target application identifier and the target keyword type according to pre-configured routing rule information, and determine associated applications related to the target application according to the target routing rule; obtain query result information corresponding to the target information to be queried, determine a target associated application in the same transaction link as the target application from the associated applications according to the associated record information corresponding to the query result information, and combine the target application and the target associated application to obtain a transaction link containing the target information to be queried, which can improve the testing efficiency and testing quality of business adaptability testing. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:

[0044] Figure 1 This is a flowchart illustrating a transaction link generation method based on business adaptability testing provided in an embodiment of the present invention.

[0045] Figure 2 This is a schematic diagram illustrating the transaction link generation method based on business adaptability testing provided in an embodiment of the present invention.

[0046] Figure 3 This is a flowchart illustrating a transaction link generation method based on business adaptability testing, provided in another embodiment of the present invention.

[0047] Figure 4 This is a schematic diagram of the modular structure of the transaction link generation method based on business adaptability testing provided in the embodiments of the present invention.

[0048] Figure 5 This is a schematic diagram of the modular structure of the transaction link generation method based on business adaptability testing provided in the embodiments of the present invention.

[0049] Figure 6 This is a schematic diagram of the modular structure of the transaction link generation method based on business adaptability testing provided in the embodiments of the present invention.

[0050] Figure 7 This is a schematic diagram of the modular structure of the transaction link generation method based on business adaptability testing provided in the embodiments of the present invention.

[0051] Figure 8 This is a schematic diagram of the modular structure of the transaction link generation method based on business adaptability testing provided in the embodiments of the present invention.

[0052] Figure 9 This is a schematic diagram of the modular structure of the transaction link generation method based on business adaptability testing provided in the embodiments of the present invention.

[0053] Figure 10 This is a schematic diagram of the structure of a transaction link generation device based on business adaptability testing provided in an embodiment of the present invention.

[0054] Figure 11 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0055] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments and descriptions of the present invention are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other.

[0056] Figure 1 This is a flowchart illustrating a transaction link generation method based on business adaptability testing provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the transaction link generation method based on business adaptability testing provided in this embodiment of the invention includes:

[0057] Step S1: Determine the target application identifier corresponding to the target information to be queried, and determine the target keyword type corresponding to the target application identifier.

[0058] Step S2: Determine the target routing rule corresponding to both the target application identifier and the target keyword type based on the pre-configured routing rule information, and determine the associated application associated with the target application based on the target routing rule.

[0059] Step S3: Obtain query result information corresponding to the target information to be queried, determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information, and combine the target application and the target related application to obtain the transaction link containing the target information to be queried.

[0060] In step S1 above, the device determines the target application identifier corresponding to the target information to be queried, and determines the target keyword type corresponding to the target application identifier. The device can be a computer device executing the method, for example, it may include server nodes. A distributed platform architecture includes multiple server nodes, each server node processes data for one application, and each server node corresponds to one database, which has multiple data shards for distributed data storage. The aforementioned application can be an application system for order processing.

[0061] It should be noted that the acquisition and analysis of user data involved in the embodiments of the present invention are authorized by the user.

[0062] Taking order query as an example, the target information to be queried can be the order number. Based on the order number, the corresponding application can be identified as the application system used for order processing, and the name of the application system can be used as the target application identifier.

[0063] Each application identifier can correspond to a keyword type. The keyword type can include string field information. Taking the order query above as an example, the number sequence represented by the entered order number is the target keyword type.

[0064] In step S2 above, the device determines the target routing rule corresponding to both the target application identifier and the target keyword type based on the pre-configured routing rule information, and determines the associated application related to the target application based on the target routing rule. As the complexity of transaction links gradually increases, it is necessary to configure corresponding pre-configured routing rule information based on the application and keyword type.

[0065] like Figure 2 As shown, application 1 and application 2 form a pre-configured routing rule information 1, application 3 and application 4 form a pre-configured routing rule information 2, and application 3 and application 5 form another pre-configured routing rule information 3.

[0066] If the target application is application 1, then the target routing rule can be determined to be the pre-configured routing rule information 1, and the associated application corresponding to the pre-configured routing rule information 1 is application 2.

[0067] If the target application is application 3, then the target routing rules are determined to be pre-configured routing rule information 2 and pre-configured routing rule information 3. Correspondingly, the associated applications corresponding to pre-configured routing rule information 2 and pre-configured routing rule information 3 are application 4 and application 5.

[0068] In step S3 above, the device obtains query result information corresponding to the target information to be queried, determines a target associated application in the same transaction link as the target application from the associated applications based on the associated record information corresponding to the query result information, and combines the target application and the target associated application to obtain a transaction link containing the target information to be queried. Referring to the above description, the corresponding order details can be queried based on the order number, and the order details can be used as the query result information. Figure 2 As shown, the associated record information corresponding to the order details can be the associated record information of the upstream application. For example, if application 2 is the order application system, then the associated record information is the associated record information of application 1. The associated record information can be determined by the timestamp in the order details.

[0069] The associated record information corresponding to the order details can be the associated record information of downstream applications. For example, if application 1 is the order application system, then the associated record information is the associated record information of application 2. The associated record information can be determined by the timestamp in the order details.

[0070] For the case of pre-configured routing rule information 1, there is only one target associated application that is application 2 or application 1 (if the target application is application 1, then the target associated application is application 2; if the target application is application 2, then the target associated application is application 1).

[0071] For pre-configured routing rule information 2 and pre-configured routing rule information 3, it is currently impossible to determine whether application 4 or application 5 is the target associated application of application 3. If associated record information is found in application 4, then application 4 will be used as the target associated application of application 3.

[0072] If related record information is found in application 5, then application 5 will be used as the target related application of application 3.

[0073] Reference Figure 2 The explanation is as follows: If the target application is application 1, then the associated application is application 2, and the target associated application is application 2 (the associated record information is in application 2). The transaction chain is application 1 - application 2.

[0074] If the target application is application 2, then the associated application is application 1, and the target associated application is application 1 (the associated record information is in application 1). The transaction chain is application 1 - application 2.

[0075] If the target application is application 3, then the associated applications are application 4 and application 5. If application 4 contains associated record information, then the target associated application is application 4, and the transaction link is application 3-application 4.

[0076] If application 5 contains associated record information, then the target associated application is application 5, and the transaction link is application 3-application 5.

[0077] If the target application is application 4, then the associated application is application 3, and the target associated application is application 3 (the associated record information is in application 3). The transaction chain is application 3-application 4.

[0078] If the target application is application 5, then the associated application is application 3, and the target associated application is application 3 (the associated record information is in application 3). The transaction chain is application 3-application 5.

[0079] The step of obtaining the query result information corresponding to the target information to be queried includes:

[0080] The method obtains the first data storage location information of the target application based on the target application identifier and the target keyword type, and retrieves the query result information corresponding to the target information to be queried from the first data storage location information. Based on a distributed secure data storage approach, the method of this embodiment requires first determining the database based on the target application identifier, and then determining the data shards containing the target information to be queried within that database based on the target keyword type.

[0081] The target keyword type includes string field information; correspondingly, obtaining the first data storage location information of the target application based on the target application identifier and the target keyword type includes:

[0082] The target database name corresponding to the target application identifier is determined according to a preset correspondence.

[0083] The preset correspondence includes the correspondence between preset application identifiers and preset database names; the above correspondence can be a one-to-one correspondence.

[0084] The string field information is calculated using a consistent hashing algorithm to obtain the target data shard number in the target database corresponding to the target database name. The consistent hashing algorithm avoids the problem of data being stored in a single data shard and also avoids the technical problem of data skew.

[0085] Since the string field information is a sequence of numbers representing the order number, the target data shard number in the target database storing the order number can be obtained by performing a modulo operation on the above sequence using a consistent hashing algorithm.

[0086] The target database and the target data fragment number are used as the first data storage location information.

[0087] Retrieving associated record information corresponding to the query result information includes:

[0088] The second data storage location information of the associated application is obtained based on the associated application identifier and the associated keyword type corresponding to the associated application identifier. The associated record information corresponding to the query result information is then retrieved from the second data storage location information. For a description of the second data storage location information, please refer to the first data storage location information described above; further details will not be repeated here.

[0089] The associated keyword type includes string field information; correspondingly, obtaining the second data storage location information of the associated application based on the associated application identifier and the associated keyword type corresponding to the associated application identifier includes:

[0090] The associated database name corresponding to the associated application identifier is determined according to a preset correspondence.

[0091] The preset correspondence includes the correspondence between preset application identifiers and preset database names;

[0092] The string field information is calculated using a consistent hashing algorithm to obtain the associated data shard number in the associated database corresponding to the associated database name;

[0093] The associated database and the associated data shard number are used as the second data storage location information. For a detailed explanation of how to determine the second data storage location information, please refer to the first data storage location information described above; further details will not be repeated here.

[0094] The step of determining the target associated application in the same transaction chain as the target application from the associated applications based on the associated record information corresponding to the query result information includes:

[0095] The associated application corresponding to the second data storage location information containing the associated record information is determined as the target associated application in the same transaction chain as the target application. (Refer to the above.) Figure 2 The relevant explanations will not be repeated here.

[0096] After the step of combining the target application and the target associated application to obtain a transaction link containing the target information to be queried, the transaction link generation method based on business adaptability testing further includes:

[0097] The system displays the transaction link of the target information to be queried based on pre-configured transaction link information, as well as key transaction information of the target application and its associated applications. The pre-configured transaction link information can be, for example, as follows: Figure 2 The pre-configured transaction link information 1 to pre-configured transaction link information 3 are shown. If the transaction link of the target information to be queried is pre-configured transaction link information 1, it can be displayed using a preset display method. The preset display method can be to display pre-configured transaction link information 1 with different color markings, without specific limitations.

[0098] The specific details of key transaction information that can be displayed can include the details of the acquiring access method, payment method, merchant number, and transaction date. The specific details of key transaction information that need to be displayed in each application can be set independently according to the actual situation.

[0099] like Figure 3 As shown, the transaction link generation method based on business adaptability testing provided in this embodiment of the invention is briefly described below:

[0100] Routing rule maintenance: Maintain pre-configured routing rule information.

[0101] The routing rule storage stores pre-configured routing rule information that has been maintained.

[0102] Database configuration and maintenance: Maintain database configuration information.

[0103] Node database configuration information: Maintains data record configuration information.

[0104] Keyword parsing: Parse to obtain the keyword type.

[0105] Route calculation: Determine the target routing rules.

[0106] Target node database information: including the target database and the target data shards in the target database.

[0107] Target node database query: The query results information is obtained.

[0108] Restore the current link by matching basic transaction link information: Display the transaction link for querying the target information based on pre-configured transaction link information.

[0109] Output: Displays key transaction information from the target application and related applications.

[0110] like Figure 4 As shown, the transaction link generation method based on business adaptability testing provided in this embodiment of the invention can be implemented modularly, specifically including a keyword parsing module 1, a route calculation module 2, a route rule storage module 3, a database query and configuration storage module 4, and a transaction link generation / display module 5;

[0111] The keyword parsing module 1 is used to parse the keywords entered by business testers in real time, including string length, string type, keyword type, etc.

[0112] The routing calculation module 2 is used to calculate the database information list corresponding to the keywords based on the consistent hash routing rules and the number of node shards read from the routing rule storage module 3.

[0113] The routing rule storage module 3 is used to store the relationship between the keyword type parsed by the keyword parsing module 1 and the consistent hash routing rule, as well as the number of node shards.

[0114] Database query and configuration storage module 4 stores node database types and related configuration information, and is used to query the database list to which the keyword belongs based on the database information list output by the routing calculation module 2.

[0115] The transaction link generation / display module 5 is used to restore the database list output by the database query and configuration storage module 4 to the corresponding node shards, and to establish a transaction link view based on the basic transaction link information stored.

[0116] like Figure 5 As shown, the keyword parsing module 1 includes a keyword information maintenance unit 11, a keyword information storage unit 12, and a keyword parsing unit 13. This module provides basic data for the routing calculation module 2.

[0117] The keyword information maintenance unit 11 is used to add, modify, and delete keyword-related information corresponding to nodes, including string length, string type, keyword type, etc.

[0118] Keyword information storage unit 12 stores the keyword information corresponding to the node.

[0119] The keyword parsing unit 13 matches the keywords input from the front end with the corresponding relationships between nodes and keywords in the keyword information storage unit 12, and confirms the search range for the next node.

[0120] like Figure 6 As shown, the routing calculation module 2 includes a routing rule loading unit 21 and a routing calculation unit 22. This module calculates the node shards corresponding to the keywords using a consistent hashing algorithm (scalable) based on the stored node routing rules, thus avoiding inefficient sequential retrieval.

[0121] like Figure 7 As shown, the routing rule storage module 3 includes a routing rule maintenance unit 31, a routing rule query unit 32, and a routing rule extension unit 33. This module stores routing rule configuration information and corresponding routing calculation algorithms, providing calculation logic for the routing calculation module 2.

[0122] like Figure 8 As shown, the database query and configuration storage module 4 includes a database configuration maintenance unit 41, a database configuration query unit 42, and a database record query unit 43. This module searches for tables in the corresponding database based on the keywords and node sharding information output by the routing calculation module 2, and confirms whether the transaction has passed through the node and the relevant field values.

[0123] like Figure 9 As shown, the transaction link generation / display module 5 includes a transaction link generation unit 51 and a transaction link display unit 52. This module reconstructs the actual transaction link based on the database table information output from the database query and configuration storage module 4, as well as the basic transaction link information stored in itself, and displays it intuitively in the form of a diagram.

[0124] The transaction link generation method based on business adaptability testing provided in this invention restores the transaction link by using a consistent hash routing algorithm and persistent data storage in the node database, thus solving the problem that business testers can only confirm the transaction link through cumbersome log querying and parsing.

[0125] The advantages of this invention are as follows:

[0126] (1) It eliminates the need to rely on node logs to reconstruct the transaction chain, significantly improving the efficiency of business adaptability testing;

[0127] (2) The routing rules are extensible and support configuring random routing.

[0128] (3) The transaction chain visualization view is intuitive, simple and accurate, reducing the threshold for use.

[0129] The transaction link generation method based on business adaptability testing provided in this invention determines a target application identifier corresponding to the target information to be queried, and a target keyword type corresponding to the target application identifier; determines a target routing rule corresponding to both the target application identifier and the target keyword type according to pre-configured routing rule information, and determines associated applications related to the target application according to the target routing rule; obtains query result information corresponding to the target information to be queried, determines target associated applications in the same transaction link as the target application from the associated applications according to the associated record information corresponding to the query result information, and combines the target application and the target associated applications to obtain a transaction link containing the target information to be queried. This method can improve the testing efficiency and quality of business adaptability testing.

[0130] Further, obtaining the query result information corresponding to the target information to be queried includes:

[0131] The first data storage location information of the target application is obtained based on the target application identifier and the target keyword type, and the query result information corresponding to the target information to be queried is obtained from the first data storage location information. This can be referred to the above embodiments for explanation, and will not be repeated here.

[0132] The transaction link generation method based on business adaptability testing provided in this embodiment of the invention can accurately obtain query result information.

[0133] Furthermore, the target keyword type includes string field information; correspondingly, obtaining the first data storage location information of the target application based on the target application identifier and the target keyword type includes:

[0134] The target database name corresponding to the target application identifier is determined according to the preset correspondence; the above embodiments can be referred to for explanation, and will not be repeated here.

[0135] The preset correspondence includes the correspondence between preset application identifiers and preset database names; this can be referred to the above embodiments for explanation, and will not be repeated here.

[0136] The string field information is calculated using a consistent hashing algorithm to obtain the target data shard number in the target database corresponding to the target database name; this can be referred to the above embodiment for explanation, and will not be repeated here.

[0137] The target database and the target data shard number are used as the first data storage location information. This can be referred to the above embodiments for further explanation, and will not be repeated here.

[0138] The transaction link generation method based on business adaptability testing provided in this embodiment of the invention can accurately determine the first data storage location information.

[0139] Further, obtaining the associated record information corresponding to the query result information includes:

[0140] The second data storage location information of the associated application is obtained based on the associated application identifier and the associated keyword type corresponding to the associated application identifier. The associated record information corresponding to the query result information is then retrieved from the second data storage location information. This can be referred to the above embodiment for further explanation and will not be repeated here.

[0141] The transaction link generation method based on business adaptability testing provided in this invention can accurately obtain associated record information.

[0142] Furthermore, the associated keyword type includes string field information; correspondingly, obtaining the second data storage location information of the associated application based on the associated application identifier and the associated keyword type corresponding to the associated application identifier includes:

[0143] The associated database name corresponding to the associated application identifier is determined according to the preset correspondence; the above embodiments can be referred to for explanation, and will not be repeated here.

[0144] The preset correspondence includes the correspondence between preset application identifiers and preset database names; this can be referred to the above embodiments for explanation, and will not be repeated here.

[0145] The string field information is calculated using a consistent hashing algorithm to obtain the associated data shard number in the associated database corresponding to the associated database name; this can be referred to the above embodiment for explanation, and will not be repeated here.

[0146] The associated database and the associated data shard number are used as the second data storage location information. This can be referred to the above embodiments for further explanation, and will not be repeated here.

[0147] The transaction link generation method based on business adaptability testing provided in this invention can accurately determine the location information of the second data storage.

[0148] Further, determining the target associated application in the same transaction chain as the target application from the associated applications based on the associated record information corresponding to the query result information includes:

[0149] The associated application corresponding to the second data storage location information containing the associated record information is determined as the target associated application in the same transaction link as the target application. This can be referred to the above embodiments for explanation, and will not be repeated here.

[0150] The transaction link generation method based on business adaptability testing provided in this invention can accurately identify the target associated application in the same transaction link as the target application.

[0151] Furthermore, after the step of combining the target application and the target associated application to obtain a transaction link containing the target information to be queried, the transaction link generation method based on business adaptability testing further includes:

[0152] The system displays the transaction link of the target information to be queried based on pre-configured transaction link information, as well as the key transaction information of the target application and the target associated application. This can be referred to the above embodiments for further explanation and will not be repeated here.

[0153] The transaction link generation method based on business adaptability testing provided in this invention can display the transaction link and key transaction information, making it convenient for relevant personnel to browse and analyze.

[0154] It should be noted that the transaction link generation method based on business adaptability testing provided in this embodiment of the invention can be used in the financial field, or in any technical field other than the financial field. This embodiment of the invention does not limit the application field of the transaction link generation method based on business adaptability testing.

[0155] Figure 10 This is a schematic diagram of a transaction link generation device based on business adaptability testing provided in an embodiment of the present invention, as shown below. Figure 10 As shown, the transaction link generation device based on business adaptability testing provided in this embodiment of the invention includes a first determining unit 1001, a second determining unit 1002, and a generation unit 1003, wherein:

[0156] The first determining unit 1001 is used to determine the target application identifier corresponding to the target information to be queried, and to determine the target keyword type corresponding to the target application identifier; the second determining unit 1002 is used to determine the target routing rule corresponding to both the target application identifier and the target keyword type according to the pre-configured routing rule information, and to determine the associated application associated with the target application according to the target routing rule; the generating unit 1003 is used to obtain the query result information corresponding to the target information to be queried, to determine the target associated application in the same transaction link as the target application from the associated application according to the associated record information corresponding to the query result information, and to combine the target application and the target associated application to obtain a transaction link containing the target information to be queried.

[0157] Specifically, the first determining unit 1001 in the device is used to determine the target application identifier corresponding to the target information to be queried, and to determine the target keyword type corresponding to the target application identifier; the second determining unit 1002 is used to determine the target routing rule corresponding to both the target application identifier and the target keyword type according to the pre-configured routing rule information, and to determine the associated application associated with the target application according to the target routing rule; the generating unit 1003 is used to obtain the query result information corresponding to the target information to be queried, to determine the target associated application in the same transaction link as the target application from the associated application according to the associated record information corresponding to the query result information, and to combine the target application and the target associated application to obtain a transaction link containing the target information to be queried.

[0158] The transaction link generation device based on business adaptability testing provided in this embodiment of the invention determines a target application identifier corresponding to the target information to be queried, and determines a target keyword type corresponding to the target application identifier; determines a target routing rule corresponding to both the target application identifier and the target keyword type according to pre-configured routing rule information, and determines an associated application associated with the target application according to the target routing rule; obtains query result information corresponding to the target information to be queried, determines a target associated application in the same transaction link as the target application from the associated applications according to the associated record information corresponding to the query result information, and combines the target application and the target associated application to obtain a transaction link containing the target information to be queried, which can improve the testing efficiency and testing quality of business adaptability testing.

[0159] Furthermore, the generation unit 1003 is specifically used for:

[0160] Based on the target application identifier and the target keyword type, obtain the first data storage location information of the target application, and obtain the query result information corresponding to the target information to be queried from the first data storage location information.

[0161] The transaction link generation device based on business adaptability testing provided in this embodiment of the invention can accurately obtain query result information.

[0162] Furthermore, the target keyword type includes string field information; correspondingly, the generation unit 1003 is also specifically used for:

[0163] The target database name corresponding to the target application identifier is determined according to a preset correspondence.

[0164] The preset correspondence includes the correspondence between preset application identifiers and preset database names;

[0165] The string field information is calculated using a consistent hashing algorithm to obtain the target data shard number in the target database corresponding to the target database name;

[0166] The target database and the target data fragment number are used as the first data storage location information.

[0167] The transaction link generation device based on business adaptability testing provided in this embodiment of the invention can accurately determine the location information of the first data storage.

[0168] Furthermore, the generation unit 1003 is specifically used for:

[0169] The second data storage location information of the associated application is obtained based on the associated application identifier and the associated keyword type corresponding to the associated application identifier, and the associated record information corresponding to the query result information is obtained from the second data storage location information.

[0170] The transaction link generation device based on business adaptability testing provided in this embodiment of the invention can accurately obtain associated record information.

[0171] Furthermore, the associated keyword type includes string field information; correspondingly, the generation unit 1003 is also specifically used for:

[0172] The associated database name corresponding to the associated application identifier is determined according to a preset correspondence.

[0173] The preset correspondence includes the correspondence between preset application identifiers and preset database names;

[0174] The string field information is calculated using a consistent hashing algorithm to obtain the associated data shard number in the associated database corresponding to the associated database name;

[0175] The associated database and the associated data shard number are used as the second data storage location information.

[0176] The transaction link generation device based on business adaptability testing provided in this embodiment of the invention can accurately determine the location information of the second data storage.

[0177] Furthermore, the generation unit 1003 is specifically used for:

[0178] The associated application corresponding to the second data storage location information containing the associated record information is determined as the target associated application in the same transaction link as the target application.

[0179] The transaction link generation device based on business adaptability testing provided in this embodiment of the invention can accurately identify the target associated application in the same transaction link as the target application.

[0180] Furthermore, after the step of combining the target application and the target associated application to obtain a transaction link containing the target information to be queried, the transaction link generation device based on business adaptability testing is further configured to:

[0181] The system displays the transaction link of the target information to be queried based on pre-configured transaction link information, as well as the key transaction information of the target application and the target associated application.

[0182] The transaction link generation device based on business adaptability testing provided in this embodiment of the invention can display transaction links and key transaction information, making it convenient for relevant personnel to browse and analyze.

[0183] The embodiments of the present invention provide a transaction link generation device based on business adaptability testing, which can be used to execute the processing flow of the above method embodiments. Its functions will not be repeated here, but can be referred to the detailed description of the above method embodiments.

[0184] Figure 11 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as... Figure 11 As shown, the electronic device includes: a processor 1101, a memory 1102, and a bus 1103;

[0185] The processor 1101 and the memory 1102 communicate with each other via the bus 1103.

[0186] The processor 1101 is used to call program instructions in the memory 1102 to execute the methods provided in the above-described method embodiments, including, for example:

[0187] Determine the target application identifier corresponding to the target information to be queried, and determine the target keyword type corresponding to the target application identifier;

[0188] Based on the pre-configured routing rule information, a target routing rule corresponding to both the target application identifier and the target keyword type is determined, and an associated application associated with the target application is determined based on the target routing rule.

[0189] Obtain query result information corresponding to the target information to be queried; determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information; and combine the target application and the target related application to obtain the transaction link containing the target information to be queried.

[0190] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer can perform the methods provided in the above-described method embodiments, such as including:

[0191] Determine the target application identifier corresponding to the target information to be queried, and determine the target keyword type corresponding to the target application identifier;

[0192] Based on the pre-configured routing rule information, a target routing rule corresponding to both the target application identifier and the target keyword type is determined, and an associated application associated with the target application is determined based on the target routing rule.

[0193] Obtain query result information corresponding to the target information to be queried; determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information; and combine the target application and the target related application to obtain the transaction link containing the target information to be queried.

[0194] This embodiment provides a computer-readable storage medium storing a computer program that causes the computer to execute the methods provided in the above-described method embodiments, including, for example:

[0195] Determine the target application identifier corresponding to the target information to be queried, and determine the target keyword type corresponding to the target application identifier;

[0196] Based on the pre-configured routing rule information, a target routing rule corresponding to both the target application identifier and the target keyword type is determined, and an associated application associated with the target application is determined based on the target routing rule.

[0197] Obtain query result information corresponding to the target information to be queried; determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information; and combine the target application and the target related application to obtain the transaction link containing the target information to be queried.

[0198] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0199] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0200] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0201] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0202] In the description of this specification, the references to terms such as "an embodiment," "a specific embodiment," "some embodiments," "for example," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0203] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for generating transaction links based on business adaptability testing, characterized in that, include: Determine the target application identifier corresponding to the target information to be queried, and determine the target keyword type corresponding to the target application identifier; Based on the pre-configured routing rule information, a target routing rule corresponding to both the target application identifier and the target keyword type is determined, and an associated application associated with the target application is determined based on the target routing rule. Obtain query result information corresponding to the target information to be queried; determine the target related application in the same transaction link as the target application from the related applications according to the associated record information corresponding to the query result information; and combine the target application and the target related application to obtain a transaction link containing the target information to be queried. The step of obtaining the query result information corresponding to the target information to be queried includes: Based on the target application identifier and the target keyword type, obtain the first data storage location information of the target application, and obtain the query result information corresponding to the target information to be queried from the first data storage location information.

2. The transaction link generation method based on business adaptability testing according to claim 1, characterized in that, The target keyword type includes string field information; correspondingly, obtaining the first data storage location information of the target application based on the target application identifier and the target keyword type includes: The target database name corresponding to the target application identifier is determined according to a preset correspondence. The preset correspondence includes the correspondence between preset application identifiers and preset database names; The string field information is calculated using a consistent hashing algorithm to obtain the target data shard number in the target database corresponding to the target database name; The target database and the target data fragment number are used as the first data storage location information.

3. The transaction link generation method based on business adaptability testing according to claim 1, characterized in that, Retrieving associated record information corresponding to the query result information includes: The second data storage location information of the associated application is obtained based on the associated application identifier and the associated keyword type corresponding to the associated application identifier, and the associated record information corresponding to the query result information is obtained from the second data storage location information.

4. The transaction link generation method based on business adaptability testing according to claim 3, characterized in that, The associated keyword type includes string field information; correspondingly, obtaining the second data storage location information of the associated application based on the associated application identifier and the associated keyword type corresponding to the associated application identifier includes: The associated database name corresponding to the associated application identifier is determined according to a preset correspondence. The preset correspondence includes the correspondence between preset application identifiers and preset database names; The string field information is calculated using a consistent hashing algorithm to obtain the associated data shard number in the associated database corresponding to the associated database name; The associated database and the associated data shard number are used as the second data storage location information.

5. The transaction link generation method based on business adaptability testing according to claim 3, characterized in that, The step of determining the target associated application in the same transaction chain as the target application from the associated applications based on the associated record information corresponding to the query result information includes: The associated application corresponding to the second data storage location information containing the associated record information is determined as the target associated application in the same transaction link as the target application.

6. The transaction link generation method based on business adaptability testing according to any one of claims 1 to 5, characterized in that, After the step of combining the target application and the target associated application to obtain a transaction link containing the target information to be queried, the transaction link generation method based on business adaptability testing further includes: The system displays the transaction link of the target information to be queried based on pre-configured transaction link information, as well as the key transaction information of the target application and the target associated application.

7. A transaction link generation device based on business adaptability testing, characterized in that, include: The first determining unit is used to determine the target application identifier corresponding to the target information to be queried, and to determine the target keyword type corresponding to the target application identifier; The second determining unit is used to determine the target routing rule corresponding to both the target application identifier and the target keyword type based on the pre-configured routing rule information, and to determine the associated application associated with the target application based on the target routing rule; The generation unit is used to obtain query result information corresponding to the target information to be queried, determine the target related application in the same transaction link as the target application from the related application according to the associated record information corresponding to the query result information, and combine the target application and the target related application to obtain a transaction link containing the target information to be queried. The step of obtaining the query result information corresponding to the target information to be queried includes: Based on the target application identifier and the target keyword type, obtain the first data storage location information of the target application, and obtain the query result information corresponding to the target information to be queried from the first data storage location information.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Associating data from different nodes of a distributed ledger system

    US11507562B1