Transaction Link-Based Performance Capability Perspective Method, System, Device, and Readable Storage Medium

By building a relationship mapping model and intelligent matching association method of transaction links, the problem that performance testers find it difficult to obtain transaction links and system shortcomings is solved, and fast and accurate performance data acquisition and system shortcomings are achieved, and testing efficiency is improved.

CN114240654BActive Publication Date: 2025-06-13CHINA CITIC BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111512102.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2025-06-13
Estimated Expiration
2041-12-07

AI Technical Summary

Technical Problem

In the prior art, it is difficult for performance testers to quickly and accurately obtain the transaction link and system shortcomings of a certain transaction, resulting in inefficient testing.

Method used

By constructing a relationship mapping model and introducing an intelligent matching association method, based on the transaction code, automatically match and obtaining the transaction link, a transaction mapping relationship data model between each trading system corresponding to the transaction link is constructed, the performance result data of each trading system is extracted, and the optimal performance result data of each trading system is obtained through the intelligent matching association algorithm, and the benchmark calculation is finally carried out to obtain the individual performance result data and system shortcomings of each trading system.

Benefits of technology

It realizes rapid acquisition of transaction link paths and system performance data, accurately predicts system shortcomings, and improves the efficiency and accuracy of performance testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114240654B_ABST
    Figure CN114240654B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, system, device and readable storage medium for performance capacity perspective based on a transaction link. The method includes the following steps: Step S1, automatically match and obtain a transaction link from an asset library according to a transaction code; Step S2, construct a transaction mapping relationship data model between each transaction system corresponding to the transaction link and import it into the asset library; Step S3, extract performance result data of each transaction system from the asset library, and obtain the optimal performance result data of each transaction system according to an intelligent matching association algorithm; Step S4, perform benchmark calculation based on the optimal performance result data of each transaction system to obtain the single-system performance result data of each transaction system. This technical solution can predict transaction link bottlenecks in advance, provide data basis for full-link stress testing and early warning of short-board systems to a certain extent, and assist performance test implementers and developers to conduct targeted performance tuning analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of performance testing, and in particular to a method, system, device and readable storage medium for performance capability perspective based on a transaction link. Background Art

[0002] In the prior art, especially in the field of performance testing, performance testers cannot quickly and accurately obtain the transaction link of a certain transaction and the system short board under this link. Therefore, when implementing a stress testing scenario, they can only obtain the transaction link of the transaction to be tested by referring to the performance requirement specification or communicating with developers, and they are even less able to know in advance the system short board under this transaction link, resulting in low testing efficiency.

[0003] Based on the above problems, in order to quickly obtain the transaction link path of the transaction to be tested, the performance result data (TPS) of each system in this link, and the system short board accurately predicted based on historical asset data, so as to assist the test implementer to quickly obtain transaction link data and the link bottleneck system. The present invention proposes a method, system, device and readable storage medium for performance capability perspective based on a transaction link by constructing a relationship mapping model and introducing an intelligent matching and association method. Summary of the Invention

[0004] To solve the deficiencies of the prior art, the present invention proposes a method, system, device and readable storage medium for performance capability perspective based on a transaction link.

[0005] To achieve the above objectives, the technical solutions adopted by the present invention include:

[0006] According to the first aspect of the present invention, a method for performance capability perspective based on a transaction link is disclosed, including the following steps:

[0007] Step S1: Automatically match and obtain the transaction link from the asset library according to the transaction code;

[0008] Step S2: Construct a transaction mapping relationship data model between each transaction system corresponding to the transaction link and import it into the asset library;

[0009] Step S3: Extract the performance result data of each transaction system from the asset library, and obtain the optimal performance result data of each transaction system according to the intelligent matching and association algorithm;

[0010] Step S4: Perform benchmark calculation according to the optimal performance result data of each transaction system to obtain the single-system performance result data of each transaction system.

[0011] Further, the method further includes dynamically displaying the single-system performance result data of each transaction system.

[0012] Further, the dynamic display includes dynamically presenting the trend and flow direction of the transaction link and highlighting the short - board system of the transaction link.

[0013] Further, step S1 includes, based on the principle of the longest path first, automatically matching and obtaining the most complete transaction link from the asset library according to the transaction code.

[0014] Further, step S2 includes the following sub - steps:

[0015] Step S21: Split and obtain each transaction system corresponding to the transaction link, determine the initiating - end transaction system and the corresponding transaction code;

[0016] Step S22: Initiate a real transaction to cover the transaction link;

[0017] Step S23: Intercept the transaction request messages of each transaction system, and according to the transaction code field in the transaction request message, parse and obtain the transaction code corresponding to each transaction system;

[0018] Step S24: Construct a complete transaction mapping relationship data model and import it into the asset library.

[0019] Further, the intelligent matching and association algorithm in step S3 includes setting a hierarchical priority principle for the stress - testing time, stress - testing scenario, and stress - testing environment, establishing a transaction data pool, respectively scoring the performance result data of each transaction system, and calculating the optimal performance result data of each transaction system.

[0020] Further, step S4 includes combining the stress - testing environment configuration information of each transaction system to perform a benchmark calculation on the optimal performance result data of each transaction system to obtain the single - entity performance result data of each transaction system.

[0021] According to the second aspect of the present invention, a performance - capacity perspective system based on a transaction link is disclosed, including:

[0022] An acquisition module, configured to automatically match and obtain a transaction link from the asset library according to the transaction code;

[0023] A construction module, configured to construct a transaction mapping relationship data model between each transaction system corresponding to the transaction link and import it into the asset library;

[0024] A calculation module, configured to extract the performance result data of each transaction system from the asset library, and according to the intelligent matching and association algorithm, obtain the optimal performance result data of each transaction system;

[0025] A calibration module, configured to perform a benchmark calculation on the optimal performance result data of each transaction system to obtain the single - entity performance result data of each transaction system.

[0026] Furthermore, the system further includes:

[0027] A display module for dynamically displaying the individual performance result data of each trading system.

[0028] According to the third aspect of the present invention, an electronic device is disclosed, including:

[0029] One or more processors;

[0030] A memory;

[0031] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the performance capability perspective method based on the trading link as described above.

[0032] According to the fourth aspect of the present invention, a computer-readable storage medium is disclosed, which is used to store computer instructions. When it runs on a computer, it enables the computer to execute the performance capability perspective method based on the trading link as described above.

[0033] The beneficial effects of the present invention are as follows:

[0034] By adopting the performance capability perspective method, system, device and readable storage medium based on the trading link of the present invention, based on the historical asset data in the asset library, following the principle of the longest path first, automatically matching and obtaining the complete trading link according to the trading code, and ensuring that the trading link covers the most trading systems; constructing a trading mapping relationship data model between each trading system, establishing a trading data pool according to the intelligent matching association algorithm, setting corresponding reasonable weights, calculating the optimal performance result data of each trading system, and performing benchmark calculations to obtain the individual performance result data and system shortboards of each trading system, which provides data basis and early warning for shortboard systems for full-link stress testing to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above and / or additional aspects and advantages of the present application will become apparent and easy to understand from the following description of the embodiments in conjunction with the drawings, where:

[0036] Figure 1 It is a schematic flowchart of a performance capability perspective method based on a trading link provided by an embodiment of the present application.

[0037] Figure 2 It is a schematic flowchart of a method for constructing a trading mapping relationship data model provided by an embodiment of the present application.

[0038] Figure 3A structural schematic diagram of a performance capacity perspective system based on a transaction link provided by an embodiment of the present application.

[0039] Figure 4 A structural schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0040] For a clearer understanding of the content of the present invention, it will be described in detail in conjunction with the accompanying drawings and embodiments.

[0041] The embodiments of the present application will be described in detail below. The examples of each embodiment are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described by referring to the accompanying drawings are exemplary and are only used to explain the present application and should not be construed as a limitation to the present application.

[0042] Those skilled in the art of the present technology can understand that unless specifically stated otherwise, the singular forms "a", "an" and "the" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present application means the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. The phrase "and / or" used herein includes all or any unit and all combinations of one or more related listed items.

[0043] To make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0044] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. These several specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0045] A method for performance capacity perspective based on a transaction link, as Figure 1 shown, the method may include the following steps:

[0046] Step S1: Automatically match and obtain a transaction link from an asset library according to a transaction code;

[0047] Step S2: Construct a transaction mapping relationship data model between each transaction system corresponding to the transaction link and import it into the asset library;

[0048] Step S3: Extract the performance result data of each transaction system from the asset library, and obtain the optimal performance result data of each transaction system according to the intelligent matching association algorithm;

[0049] Step S4. Perform benchmark calculations based on the optimal performance result data of each trading system to obtain the individual performance result data of each trading system.

[0050] Preferably, the method further includes dynamically displaying the individual performance result data of each trading system.

[0051] Specifically, the dynamic display includes dynamically presenting the trend and flow of the trading link and highlighting the short-board systems in the trading link.

[0052] Among them, step S1 includes, based on the principle of the longest path first, automatically matching and obtaining the most complete trading link from the asset library according to the trading code. For example, the path of trading S is A -> B -> C -> D.

[0053] As Figure 2 shown, step S2 may include the following sub-steps:

[0054] Step S21. Split and obtain each trading system corresponding to the trading link, and determine the initiating trading system and the corresponding trading code;

[0055] Step S22. Initiate a real transaction to cover the trading link;

[0056] Step S23. Intercept the trading request messages of each trading system, and parse and obtain the trading codes corresponding to each trading system according to the trading code field in the trading request message;

[0057] Step S24. Construct a complete trading mapping relationship data model and import it into the asset library.

[0058] For example, under the path of A -> B -> C -> D for trading S, the trading codes corresponding to trading systems A, B, C, and D are S0, S1, S2, and S3 respectively. The trading mapping relationship is shown in Table 1:

[0059] Table 1 Trading mapping relationship of trading S

[0060]

[0061] The intelligent matching and association algorithm described in step S3 includes setting the hierarchical priority principle of the stress test time, stress test scenario, and stress test environment, establishing a trading data pool, scoring the performance result data of each trading system respectively, and calculating the optimal performance result data of each trading system.

[0062] Specifically, set "time nearest first", "general scenario type first", and "stress test environment consistency first" as the first-level, second-level, and third-level priority principles respectively. For example, the weights α of the stress test time, stress test scenario, and stress test environment are 0.6, 0.3, and 0.1 respectively, and the sum of the three is 1. Set the scoring rules as shown in Table 2, calculate the corresponding scoring values of the performance result data of each trading system according to the scoring rules, sort them from high to low according to the scoring values, and obtain the optimal task dataset X i , that is, the optimal performance result data (TPS) of each trading system.

[0063] Table 2 Scoring Rules Table

[0064]

[0065] The step S4 includes combining the stress test environment configuration information of each trading system to perform benchmark calculation on the optimal performance result data of each trading system to obtain the single-system performance result data of each trading system.

[0066] Specifically, the benchmark calculation method is: the performance result data (TPS) under a single trading system divided by the corresponding number of servers is the single-system performance result data of the trading system. For example: in a stress test environment of 2 application servers, the TPS of transaction S0 under system A is 100, then its single-system TPS is 100 / 2 = 50.

[0067] The embodiment of the present application provides a performance capability perspective method based on a trading link. By automatically matching and obtaining the trading link from the asset library according to the trading code; constructing a trading mapping relationship data model between each trading system corresponding to the trading link and importing it into the asset library; extracting the performance result data of each trading system from the asset library, and according to the intelligent matching association algorithm, obtaining the optimal performance result data of each trading system; performing benchmark calculation according to the optimal performance result data of each trading system to obtain the single-system performance result data of each trading system. That is, by constructing a trading mapping relationship data model and an intelligent matching association algorithm, dynamically obtain the performance result data (TPS) of a certain transaction under each trading system in the trading link and the system short board in the trading link, so as to predict the trading link bottleneck in advance and assist performance test implementers and developers to perform targeted performance tuning analysis.

[0068] Figure 3 FIG. 21 is a schematic structural diagram of a performance capability perspective system based on a trading link provided by an embodiment of the present application. The system 20 includes: an acquisition module 201, a construction module 202, a calculation module 203, and a calibration module 204, where:

[0069] The acquisition module 201 is used to automatically match and obtain the trading link from the asset library according to the trading code;

[0070] A building module 202 for building a transaction mapping relationship data model between each transaction system corresponding to a transaction link and importing it into an asset library;

[0071] A calculation module 203 for extracting performance result data of each transaction system from the asset library and obtaining the optimal performance result data of each transaction system according to an intelligent matching and association algorithm;

[0072] A calibration module 204 for performing benchmark calculation based on the optimal performance result data of each transaction system to obtain the single - entity performance result data of each transaction system.

[0073] Furthermore, the system may further include a display module for dynamically displaying the single - entity performance result data of each transaction system.

[0074] The performance capability perspective system based on a transaction link in this embodiment can execute the performance capability perspective method based on a transaction link provided in the above - mentioned embodiments of the present application. Its implementation principle is similar, and the beneficial effects achieved are similar, so details are not described here again.

[0075] An embodiment of the present application provides an electronic device, as Figure 4 shown, Figure 4 The electronic device 30 shown includes: a processor 3001 and a memory 3003. Among them, the processor 3001 and the memory 3003 are connected, such as through a bus 3002. Further, the electronic device 30 may further include a transceiver 3004. It should be noted that in practical applications, the transceiver 3004 is not limited to one, and the structure of the electronic device 30 does not constitute a limitation to the embodiments of the present application. Among them, the processor 3001 is applied in the embodiments of the present application to implement Figure 3 the functions of the modules shown. The transceiver 3004 includes a receiver and a transmitter. The processor 3001 may be a CPU, a general - purpose processor, a DSP, an ASIC, an FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in combination with the disclosure of the present application. The processor 3001 may also be a combination for implementing computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0076] The bus 3002 may include a path for transmitting information between the above - mentioned components. The bus 3002 may be a PCI bus or an EISA bus, etc. The bus 3002 may be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 4 only a thick line is shown in

[0077] The memory 3003 can be a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or an EEPROM, CD-ROM, or other optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0078] The memory 3003 is used to store the application program code for executing the solution of this application and is controlled by the processor 3001 for execution. The processor 3001 is used to execute the application program code stored in the memory 3003 to implement Figure 3 the functions of the performance capability perspective system based on the transaction link provided by the illustrated embodiment.

[0079] The embodiment of this application provides an electronic device, which includes automatically matching and obtaining a transaction link from an asset library according to a transaction code; constructing a transaction mapping relationship data model between each transaction system corresponding to the transaction link and importing it into the asset library; extracting the performance result data of each transaction system from the asset library, and obtaining the optimal performance result data of each transaction system according to the intelligent matching association algorithm; performing benchmark calculation according to the optimal performance result data of each transaction system to obtain the single-system performance result data of each transaction system. That is, by constructing a transaction mapping relationship data model and an intelligent matching association algorithm, the performance result data (TPS) of each transaction system of a certain transaction under the transaction link and the system short board in the transaction link are dynamically obtained, so as to predict the transaction link bottleneck in advance and assist performance test implementers and developers to conduct targeted performance tuning analysis.

[0080] The embodiment of this application provides an electronic device applicable to the above method embodiment. Details are not described herein again.

[0081] The embodiment of this application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the method shown in the above embodiment.

[0082] An embodiment of the present application provides a computer-readable storage medium, which includes automatically matching and obtaining a transaction link from an asset library according to a transaction code; constructing a transaction mapping relationship data model among respective transaction systems corresponding to the transaction link and importing it into the asset library; extracting performance result data of each transaction system from the asset library, and obtaining optimal performance result data of each transaction system according to an intelligent matching association algorithm; performing a benchmark calculation based on the optimal performance result data of each transaction system to obtain single-system performance result data of each transaction system. That is, by constructing a transaction mapping relationship data model and an intelligent matching association algorithm, the performance result data (TPS) of each transaction system in a transaction link for a certain transaction and the system shortcoming in the transaction link are dynamically obtained, so as to predict in advance the bottleneck of the transaction link, and assist performance test implementers and developers to perform targeted performance tuning analysis.

[0083] An embodiment of the present application provides a computer-readable storage medium applicable to the above method embodiment. Details are not described herein again.

[0084] The technical solution shown in an embodiment of the present invention has been applied to a performance map tool developed in the system testing domain of a certain bank software development center. During the use of this performance map, when a certain transaction system is selected, all transaction links of this transaction system can be displayed. After selecting a certain transaction among them, the flow direction of this transaction in the transaction link and a system shortcoming warning display will be dynamically displayed.

[0085] In a transaction link, if there is no performance result data for a certain node transaction system, the transaction system node will be grayed out. When a performance tester uses the performance map and encounters a full-link stress test requirement, he / she can refer to the full-link data displayed by the performance map, reasonably arrange the stress test plan, and focus on analyzing the system shortcoming.

[0086] The present invention provides an effective data reference for full-link performance test implementation and system shortcomings under the link, and greatly improves the implementation efficiency of performance testing.

[0087] It should be understood that although the steps in the flowchart of the accompanying drawings are displayed in sequence according to the indication of the arrows, these steps do not necessarily need to be executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages do not necessarily need to be executed at the same moment, but can be executed at different moments, and their execution order does not necessarily need to be sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.

[0088] The above are only the preferred specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for perspective of performance capabilities based on a transaction link, characterized in that, it includes the following steps: Step S1: Automatically match and obtain a transaction link from an asset library according to a transaction code; Step S2: Construct a transaction mapping relationship data model between each transaction system corresponding to the transaction link and import it into the asset library; Step S3: Extract the performance result data of each transaction system from the asset library, and obtain the optimal performance result data of each transaction system according to an intelligent matching association algorithm; Step S4: Perform benchmark calculation according to the optimal performance result data of each transaction system to obtain the single-system performance result data of each transaction system; The said Step S1 includes automatically matching and obtaining the most complete transaction link from the asset library according to the transaction code based on the principle of the longest path priority; The intelligent matching association algorithm in the said Step S3 includes setting a hierarchical priority principle for stress testing time, stress testing scenario, and stress testing environment, establishing a transaction data pool, scoring the performance result data of each transaction system respectively, and calculating to obtain the optimal performance result data of each transaction system.

2. The method according to claim 1, characterized in that, it further includes dynamically displaying the single-system performance result data of each transaction system.

3. The method according to claim 2, characterized in that, the said dynamic display includes dynamically presenting the trend and flow direction of the transaction link and highlighting the short-board systems of the transaction link.

4. The method according to claim 1, characterized in that, the said Step S2 includes the following sub-steps: Step S21: Split and obtain each transaction system corresponding to the transaction link, and determine the initiating transaction system and the corresponding transaction code; Step S22: Initiate a real transaction to cover the transaction link; Step S23: Intercept the transaction request messages of each transaction system, and parse and obtain the transaction codes corresponding to each transaction system according to the transaction code field in the transaction request message; Step S24: Construct a complete transaction mapping relationship data model and import it into the asset library.

5. The method according to any one of claims 1 to 3, characterized in that, the said Step S4 includes performing benchmark calculation on the optimal performance result data of each transaction system in combination with the stress testing environment configuration information of each transaction system to obtain the single-system performance result data of each transaction system.

6. A system for perspective of performance capabilities based on a transaction link, characterized in that, it includes: An acquisition module, used to automatically match and obtain a transaction link from an asset library according to a transaction code; A construction module, used to construct a transaction mapping relationship data model between each transaction system corresponding to the transaction link and import it into the asset library; A calculation module, used to extract the performance result data of each transaction system from the asset library, and obtain the optimal performance result data of each transaction system according to an intelligent matching association algorithm; A calibration module, used to perform benchmark calculation according to the optimal performance result data of each transaction system to obtain the single-system performance result data of each transaction system; Automatically matching and obtaining a transaction link from an asset library according to a transaction code includes automatically matching and obtaining the most complete transaction link from the asset library according to the transaction code based on the principle of the longest path priority; The intelligent matching association algorithm includes setting the hierarchical priority principle of stress testing time, stress testing scenario, and stress testing environment, establishing a transaction data pool, scoring the performance result data of each trading system respectively, and calculating the optimal performance result data of each trading system.

7. The system according to claim 6, wherein, it further includes: a display module for dynamically displaying the individual performance result data of each trading system.

8. An electronic device, wherein, it includes: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs are configured to: execute the method for perspective of performance capabilities based on a trading link according to any one of claims 1 to 5.

9. A computer-readable storage medium, wherein, the computer-readable storage medium is used to store computer instructions, and when it runs on a computer, it enables the computer to execute the method for perspective of performance capabilities based on a trading link according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Message testing method for front-end system, and simulation baffle system

    CN106027330A

  • Automated model generation for a software system

    US20170286277A1