Fault analysis method and device based on test environment
By introducing a fault analysis method based on the test environment in the bank information system, the failures in the transaction link are automatically analyzed, and the testing difficulty caused by the complexity of the transaction link under the distributed architecture is solved, and the testing efficiency and cost-effectiveness are improved.
Patent Information
- Application Number
- CN202311557917.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2025-05-13
AI Technical Summary
Under the distributed and unitized architecture of the bank information system, the complexity of transaction links leads to increased difficulty in acceptance testing, and testers need to spend more time and steps to analyze and solve problems, affect testing efficiency and increase costs and risks.
Provide a fault analysis method based on the test environment, which realizes automated fault analysis by obtaining transaction information, restoring transaction links, extracting and restructuring system logs, locates the root cause of the fault, and sends the analysis results to the front-end visualization system.
The traditional manual problem detection method has been optimized, the testing work efficiency has been improved, labor and time cost has been saved, and the automation and efficiency of fault analysis has been improved.
Smart Images

Figure CN119988067A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated testing and can also be applied to the financial field, and specifically to a fault analysis method and device based on a test environment. Background Art
[0002] In the digital economy era, the rapid development of information technology has brought various new challenges due to the need to adapt to the ever-changing technological environment. Among them, banking information systems are also facing many changes. Traditionally, banking information systems usually adopt a single centralized architecture, in which all transactions and functions are concentrated on a single host. However, with the advancement of digital transformation, this architecture has become no longer applicable.
[0003] Currently, banking information systems are undergoing a transformation from a monolithic centralized architecture to a distributed, unitized architecture. This means that the core business system is no longer a huge single host, but consists of multiple subsystems distributed in different locations, which can communicate with each other. The transaction processing process is also undergoing major changes, from the traditional "channel-upstream gateway-host" model to a remote procedure call (RPC) model across systems. In other words, when processing a transaction, the data will be transmitted and processed multiple times through different systems, and is no longer limited to a single central host.
[0004] However, the above technical architecture changes have brought a series of challenges, especially in the acceptance test phase. As the transaction links become more complex and cross-system, testers need to have a deep understanding of the internal workings of the system in white box testing to ensure that each subsystem works together correctly. This complexity increases the difficulty of troubleshooting, and testers must spend more time and steps to analyze and solve problems, which not only affects the test efficiency, but also increases the cost and risk of testing. Summary of the invention
[0005] In response to the problems in the prior art, this application provides a fault analysis method and device based on a test environment, which can automatically and efficiently analyze the cause of the fault based on information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link fault solutions is provided, and the traditional manual troubleshooting method is optimized, which improves the efficiency of test work and saves labor and time costs.
[0006] In order to solve at least one of the above problems, the present application provides the following technical solutions:
[0007] According to a first aspect of an embodiment of the present application, the present application provides a fault analysis method based on a test environment, comprising:
[0008] Obtaining transaction information input by a tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code;
[0009] Acquire a transaction record of the first subsystem according to the transaction information, and restore the transaction link based on the transaction record;
[0010] According to the transaction link, extract and reorganize the system logs of the first subsystem and other subsystems in the transaction link;
[0011] The root cause of the fault is located according to the return information of the system log and upstream and downstream log messages, and the fault analysis result is sent to the front-end visualization system.
[0012] According to any implementation of the present application, the restoring the corresponding transaction link based on the transaction record includes:
[0013] Reorganizing the server terminal log according to the field information in the transaction record;
[0014] Extracting multiple key link elements of the corresponding transaction according to the recording time, occurrence frequency, transmission information and return information of the server terminal log, wherein the key link elements include transaction time, transaction amount and transaction type;
[0015] Based on the holographic technology, the corresponding transaction link is determined according to the multiple link key elements.
[0016] According to any implementation of the present application, the determining the corresponding transaction link based on the multiple link key elements based on the holographic technology includes:
[0017] Based on holographic technology, determine the event number of the current transaction according to the transaction link;
[0018] According to the time sequence, the event number is connected in series to other subsystems in the transaction link to obtain the corresponding transaction link.
[0019] According to any implementation manner of the present application, extracting and reorganizing the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link includes:
[0020] Extracting system logs from the first subsystem and other subsystems in the transaction link;
[0021] The extracted system logs are reorganized according to the chronological order and the interaction order between systems to obtain the log records of the complete transaction link, and the logs of different subsystems are integrated into a unified storage location.
[0022] According to any embodiment of the present application, it also includes:
[0023] Based on the transaction link, deploy a timed detection program for the service interface of each environment in the link;
[0024] In response to the timing detection program detecting that the system indicator exceeds the alarm threshold, an alarm message is sent to the front-end visualization system.
[0025] According to any embodiment of the present application, it also includes:
[0026] Inputting the fault analysis and results and the alarm information into a preset structured query language template to construct corresponding knowledge base information;
[0027] The knowledge base information is sent to the front-end visualization system.
[0028] According to any embodiment of the present application, it also includes:
[0029] In response to receiving the fault optimization instruction fed back by the tester, the transaction link is fault optimized through the service interfaces of each environment of the transaction link according to the fault optimization instruction.
[0030] According to a second aspect of an embodiment of the present application, the present application provides a fault analysis device based on a test environment, comprising:
[0031] The transaction information receiving module is used to obtain the transaction information input by the tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code;
[0032] A link restoration module, used to: obtain a transaction record of the first subsystem according to the transaction information, and restore the transaction link based on the transaction record;
[0033] A log reorganization module, used to: extract and reorganize the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link;
[0034] The fault analysis module is used to locate the root cause of the fault according to the return information of the system log and upstream and downstream log messages, and send the fault analysis result to the front-end visualization system.
[0035] According to any implementation of the present application, the link restoration module includes:
[0036] A log reorganization unit, used to reorganize the server terminal log according to the field information in the transaction record;
[0037] An element extraction unit, used to extract a plurality of link key elements of a corresponding transaction according to the recording time, occurrence frequency, transmission information and return information of the server terminal log, wherein the link key elements include transaction time, transaction amount and transaction type;
[0038] The link restoration unit is used to: determine the corresponding transaction link according to the multiple link key elements based on holographic technology.
[0039] According to any implementation manner of the present application, the link restoration unit is specifically used for:
[0040] Based on holographic technology, determine the event number of the current transaction according to the transaction link;
[0041] According to the time sequence, the event number is connected in series to other subsystems in the transaction link to obtain the corresponding transaction link.
[0042] According to any implementation of the present application, the log reorganization module includes:
[0043] A log extraction unit, used to: extract system logs from the first subsystem and other subsystems in the transaction link;
[0044] The log integration unit is used to: reorganize the extracted system logs according to the time sequence and the interaction sequence between systems to obtain the log records of the complete transaction link, and integrate the logs of different subsystems into a unified storage location.
[0045] According to any implementation of the present application, a link monitoring module is also included, including:
[0046] A detection deployment unit, configured to: deploy a timed detection program for the service interface of each environment in the link based on the transaction link;
[0047] The alarm detection unit is used to send alarm information to the foreground visualization system in response to the timing detection program detecting that the system indicator exceeds the alarm threshold.
[0048] According to any embodiment of the present application, a knowledge base module is also included, including:
[0049] A knowledge base construction unit is used to: input the fault analysis and results and the alarm information into a preset structured query language template to construct corresponding knowledge base information;
[0050] The knowledge base display unit is used to send the knowledge base information to the front-end visualization system.
[0051] According to any implementation of the present application, a feedback optimization module is further included, which is used to:
[0052] In response to receiving the fault optimization instruction fed back by the tester, the transaction link is fault optimized through the service interfaces of each environment of the transaction link according to the fault optimization instruction.
[0053] According to the third aspect of the embodiments of the present application, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the test environment-based fault analysis method when executing the program.
[0054] According to a fourth aspect of an embodiment of the present application, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the test environment-based fault analysis method when executed by a processor.
[0055] According to a fifth aspect of the embodiments of the present application, the present application provides a computer program product, including a computer program / instruction, which implements the steps of the test environment-based fault analysis method when executed by a processor.
[0056] It can be seen from the above technical solution that the present application provides a fault analysis method and device based on a test environment, by obtaining the transaction information input by the tester, the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code; obtaining the transaction record of the first subsystem according to the transaction information, and restoring the transaction link based on the transaction record; according to the transaction link, extracting and reorganizing the system logs of the first subsystem and other subsystems in the transaction link; locating the root cause of the fault according to the return information of the system log and the upstream and downstream log messages, and sending the fault analysis results to the front-end visualization system. Based on the information and logs in the transaction process, it can automatically and efficiently analyze the cause of the fault through certain rule processing and analysis logic. Based on the current mainstream business design, it provides a complete set of transaction link fault solutions, optimizes the traditional manual troubleshooting method, improves the test work efficiency, and saves labor costs and time costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the above drawings without paying creative work.
[0058] Figure 1 This is one of the flow charts of the fault analysis method based on the test environment in the embodiment of the present application;
[0059] Figure 2 This is a second flow chart of a fault analysis method based on a test environment in an embodiment of the present application;
[0060] Figure 3 The third flowchart of the fault analysis method based on the test environment in the embodiment of the present application;
[0061] Figure 4 This is a fourth flow chart of a fault analysis method based on a test environment in an embodiment of the present application;
[0062] Figure 5 This is a fifth flow chart of a fault analysis method based on a test environment in an embodiment of the present application;
[0063] Figure 6 This is a sixth flow chart of a fault analysis method based on a test environment in an embodiment of the present application;
[0064] Figure 7 This is an interactive schematic diagram of a fault analysis method based on a test environment in an embodiment of the present application;
[0065] Figure 8 This is one of the structural diagrams of a fault analysis device based on a test environment in an embodiment of the present application;
[0066] Fig. 9 This is the second structural diagram of the fault analysis device based on the test environment in the embodiment of the present application;
[0067] Fig.10 This is the third structural diagram of the fault analysis device based on the test environment in the embodiment of the present application;
[0068] Fig.11 This is a fourth structural diagram of a fault analysis device based on a test environment in an embodiment of the present application;
[0069] Fig.12 This is a fourth structural diagram of a fault analysis device based on a test environment in an embodiment of the present application;
[0070] Fig.13 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0072] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0073] Considering that the difficulty of white box testing in the acceptance test phase increases as the transaction link becomes longer, it is difficult for testers to troubleshoot problems and the steps are cumbersome, which affects the test efficiency. This application provides a fault analysis method and device based on the test environment. Based on the information and logs in the transaction process, it automatically and efficiently analyzes the cause of the fault through certain rule processing and analysis logic. Based on the current mainstream business design, it provides a complete set of transaction link fault solutions, optimizes the traditional manual troubleshooting method, improves the test work efficiency, and saves labor and time costs.
[0074] In order to automatically and efficiently analyze the cause of the fault based on the information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link fault solutions is provided, and the traditional manual troubleshooting method is optimized, the test work efficiency is improved, and the labor cost and time cost are saved. This application provides an embodiment of a fault analysis method based on a test environment, see Figure 1 The fault analysis method based on the test environment specifically includes the following contents:
[0075] Step S101: Acquire transaction information input by a tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code.
[0076] Among them, receiving and recording input data from testers, which usually includes information required when troubleshooting transaction problems.
[0077] The transaction information represents the data set used in this solution, and generally includes multiple data fields for specifying and describing a specific transaction or transaction scenario. Exemplarily, it may include at least one of a mobile phone number, a bank card number, and a fault code, for identifying and distinguishing different transactions, and helping the system determine the root cause of the fault.
[0078] Step S102: Acquire the transaction record of the first subsystem according to the transaction information, and restore the transaction link based on the transaction record.
[0079] Among them, the system will extract the corresponding transaction records from the database of the first subsystem based on the transaction information entered by the tester, especially the information used to uniquely identify the transaction. The above records contain detailed information about the specific transaction, such as the transaction amount, transaction time, and other relevant data.
[0080] Once the system successfully obtains the transaction records of the first subsystem, the above information can be used to restore the entire transaction chain, so as to track the transmission and processing path of the specific transaction between different subsystems and understand the complete process of the transaction from start to finish, including data transmission, processing and response, as well as the interaction process with other subsystems.
[0081] By restoring the transaction link, the system can better understand the complete context information of the transaction, which helps with subsequent fault analysis and location.
[0082] In one embodiment of the fault analysis method based on the test environment of the present application, see Figure 2 , the restoring of the corresponding transaction link based on the transaction record may further specifically include the following contents:
[0083] Step S102A: reorganize the server terminal log according to the field information in the transaction record.
[0084] First, check the various fields in the transaction record, including transaction time, transaction amount, transaction type, etc. Then, reorganize the server terminal log according to the above information to form a complete link.
[0085] For example, the system needs to check the field information in the transaction record, for example, use the transaction time entered by the user to find a matching log record, such as the log record corresponding to the transaction time closest to the transaction information entered by the tester, and merge the log record with the user's transaction information to build a complete transaction link.
[0086] Step S102B: extracting a plurality of link key elements of the corresponding transaction according to the recording time, occurrence frequency, transmission information and return information of the server terminal log, wherein the link key elements include transaction time, transaction amount and transaction type.
[0087] Furthermore, the information in the server terminal log may be analyzed, such as recording time, occurrence frequency, transmission information, and return information.
[0088] The transaction time represents the exact timestamp of the transaction, and is used to determine the time point of the transaction.
[0089] The transaction amount represents the specific amount of the transaction and helps determine the monetary amount of the transaction.
[0090] The transaction type characterizes the nature of the transaction, such as shopping, money transfer, or bill payment, and helps to identify the type of transaction.
[0091] Step S102C: Based on holographic technology, determine the corresponding transaction link according to the multiple link key elements.
[0092] Finally, holographic technology is used to restore the corresponding transaction link using the extracted multiple key elements of the link. That is, the system can accurately determine the link of a specific transaction based on the above key elements, that is, how it is transmitted from one subsystem to another, as well as the detailed process of the transaction.
[0093] In one embodiment of the fault analysis method based on the test environment of the present application, see Figure 3 , the determining the corresponding transaction link based on the holographic technology according to the multiple link key elements may also specifically include the following contents:
[0094] Step S102C1 determines the event number of the current transaction according to the transaction link based on holographic technology;
[0095] Step S102C2: According to the time sequence, the event number is serially connected to other subsystems in the transaction link to obtain the corresponding transaction link.
[0096] First, the system uses holographic technology to determine the event number of the current transaction based on the determined transaction link. The event number represents the unique identifier of the current transaction.
[0097] After that, the event numbers are sorted in chronological order, and then the event numbers are connected to construct the corresponding transaction link. The transaction link can track how the current transaction is passed from one subsystem to another, and the events and steps that the transaction goes through in the whole process.
[0098] Step S103: according to the transaction link, extract and reorganize the system logs of the first subsystem and other subsystems in the transaction link.
[0099] In one embodiment of the fault analysis method based on the test environment of the present application, see Figure 4 , extracting and reorganizing the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link may also specifically include the following contents:
[0100] Step S103A: extracting system logs from the first subsystem and other subsystems in the transaction link.
[0101] Step S103B: reorganize the extracted system logs according to the time sequence and the interaction sequence between systems to obtain the log records of the complete transaction link, and integrate the logs of different subsystems into a unified storage location.
[0102] First, system logs are extracted from the first subsystem of the transaction link and other related subsystems. The system logs contain detailed records of events, transaction information and other related data occurring in each subsystem.
[0103] Afterwards, the extracted system logs are sorted in chronological order to ensure that the events are arranged in the order in which they occurred. The order of interactions between different systems is also checked to ensure that the order of events is correctly reorganized in the entire transaction chain.
[0104] By reordering and reorganizing the system logs, the system will obtain a complete log record of the transaction link. The above log record includes a detailed description of the events, interactions and processing steps of each subsystem in the transaction link. It helps the system better understand and analyze the entire transaction process.
[0105] Finally, the system logs extracted from different subsystems can be integrated into a unified storage location, which can be a centralized log storage system or database, making log records easy to access and query.
[0106] By integrating the above logs, subsequent fault analysis and monitoring can be more convenient.
[0107] Step S104: locate the root cause of the fault according to the return information of the system log and upstream and downstream log messages, and send the fault analysis result to the front-end visualization system.
[0108] In the process of locating the root cause of the fault, different methods and rules can be used, such as checking abnormal events, error codes, timeouts, inconsistent data, etc. By tracing the origin of the problem, it is determined which subsystem or event caused the fault.
[0109] Once the system successfully locates the root cause of the fault, it generates fault analysis results, including a detailed description of the fault problem, including the specific cause of the fault, the time of occurrence, the subsystems involved, and transaction information.
[0110] Finally, the fault analysis results will be transmitted to the front-end visualization system, which represents the interactive interface used by testers or administrators. Through the visualization system, testers can easily view the fault analysis results and understand the nature and location of the fault so as to take better actions to solve the fault problem. The visualization interface improves the understandability and manageability of the problem.
[0111] From the above description, it can be seen that the fault analysis method based on the test environment provided by the embodiment of the present application can automatically and efficiently analyze the cause of the fault based on the information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link fault solutions is provided, and the traditional manual troubleshooting method is optimized, which improves the test work efficiency and saves labor and time costs.
[0112] In one embodiment of the fault analysis method based on the test environment of the present application, see Figure 5 , and can also include the following:
[0113] Step S105: Based on the transaction link, a timed detection program is deployed on the service interface of each environment in the link.
[0114] Step S106: In response to the timing detection program detecting that the system indicator exceeds the alarm threshold, an alarm message is sent to the foreground visualization system.
[0115] Among them, the system deploys corresponding timed detection programs for the services and interfaces provided by each subsystem according to the actual transaction link situation. The above detection programs are designed to simulate actual transactions and test the performance and availability of each subsystem.
[0116] Each probe will use preset thresholds for monitoring indicators, such as system response time, transaction success rate, resource utilization, etc. The probe will simulate transactions and collect performance data for each subsystem, and then compare it with the preset thresholds.
[0117] If a subsystem's performance indicator exceeds the normal range, the detection program will trigger warning and alarm notifications. Warning notifications can represent a hint of minor problems, while alarm notifications usually indicate more serious performance problems or failures.
[0118] The results of the detection procedures and visualization data of system performance are uploaded to the front-end visualization system.
[0119] Based on the above solution, this application notifies the front-end visualization system of the problem in a timely manner through early warning and alarm notification to ensure the availability and stability of the link.
[0120] In one embodiment of the fault analysis method based on the test environment of the present application, see Figure 6 , and can also include the following:
[0121] Step S107: input the fault analysis and results and the alarm information into a preset structured query language template to construct corresponding knowledge base information.
[0122] Step S108: Send the knowledge base information to the front-end visualization system.
[0123] In response to receiving the fault optimization instruction fed back by the tester, the transaction link is fault optimized through the service interfaces of each environment of the transaction link according to the fault optimization instruction.
[0124] First, the fault analysis results, including the nature, cause, location and alarm information of the problem, are input into a preset SQL template. The template is designed to contain relevant information and structure it for better organization and query.
[0125] By inputting information into the structured query language template, the corresponding knowledge base information is constructed, and the knowledge base includes various data related to faults, performance issues and solutions. This helps to organize and store information related to system operation and problem solving.
[0126] The knowledge base information will be connected to the front-end visual interface, allowing testers to better understand the system's problems and solutions. This helps them take action faster when encountering similar problems, pre-empt common test problems, and quickly resolve faults, improving test efficiency and problem-solving speed.
[0127] By using knowledge base information, testers can also provide negative feedback to continuously improve the automated analysis process. This helps make the entire process a closed-loop system that is constantly improved and optimized to respond to changing problems and requirements.
[0128] In order to further illustrate the present solution, the present application also provides a specific application example of using the above-mentioned fault analysis device based on the test environment to implement the fault analysis method based on the test environment, see Figure 7 , specifically including the following contents:
[0129] Step 1. The tester enters the mobile phone number, card number, fault code and other information at the front desk and submits the query application.
[0130] Step 2. The fault analysis module queries the transaction record information in the entry subsystem database.
[0131] Step 3. Reorganize and analyze the logs of the entry subsystem based on recording time, occurrence frequency, transmission information, return information, etc.
[0132] Step 4. Based on the processing in the previous step, select three “key link elements”.
[0133] Step 5. Use holographic technology to restore the real link relationship and determine the unique key elements of the link.
[0134] Step 5.1 Deploy a timed detection program based on the link information: Based on the restored link information, the system deploys a timed detection program to monitor the services provided by each environment in the link.
[0135] Step 5.2: According to the preset monitoring indicator threshold, periodically send availability requests to the link service (interface) to check performance and availability.
[0136] Step 5.3 displays the link availability dashboard to the front desk to facilitate link observation before the next test.
[0137] Step 6. Automatically process and analyze the logs of the subsystems involved in the link according to the chronological order and upstream and downstream message transmission.
[0138] Step 7: Locate the cause of the fault and return to the front desk: The system uses the analysis results to locate the cause of the fault and returns the results to the front desk interface for the tester to view.
[0139] Step 7.1 Store the analysis results into the knowledge base: The system will store the fault cause information into the knowledge base based on the analysis results for future reference.
[0140] Step 7.2 Integrate the data in the knowledge base according to transaction information, fault codes and fault causes: The data in the knowledge base will be integrated according to transaction information, fault codes and fault causes to better organize and retrieve information.
[0141] Step 7.3 calls the preset SQL template to generate an intelligent knowledge base template, so that the next time the same query is performed, the information in the knowledge base can be directly called to quickly locate the root cause of the fault: The system uses the preset SQL template to generate an intelligent knowledge base template, so that the next time the same query is performed, the information in the knowledge base can be directly called to quickly locate the root cause of the fault.
[0142] In order to automatically and efficiently analyze the cause of the fault based on the information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link fault solutions is provided, and the traditional manual troubleshooting method is optimized, the test work efficiency is improved, and the labor cost and time cost are saved. This application provides an embodiment of a fault analysis device based on a test environment for implementing all or part of the content of the fault analysis method based on a test environment, see Figure 8 The fault analysis device based on the test environment specifically includes the following contents:
[0143] The transaction information receiving module 1101 is used to: obtain the transaction information input by the tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code;
[0144] The link restoration module 1102 is used to: obtain the transaction record of the first subsystem according to the transaction information, and restore the transaction link based on the transaction record;
[0145] The log reorganization module 1103 is used to: extract and reorganize the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link;
[0146] The fault analysis module 1104 is used to locate the root cause of the fault according to the return information of the system log and upstream and downstream log messages, and send the fault analysis result to the front-end visualization system.
[0147] According to any embodiment of the present application, see Fig. 9 , the link restoration module includes:
[0148] The log reorganization unit 1102A is used to reorganize the server terminal log according to the field information in the transaction record;
[0149] The element extraction unit 1102B is used to extract a plurality of link key elements of the corresponding transaction according to the recording time, occurrence frequency, transmission information and return information of the server terminal log, wherein the link key elements include transaction time, transaction amount and transaction type;
[0150] The link restoration unit 1102C is used to: determine the corresponding transaction link according to the multiple link key elements based on holographic technology.
[0151] According to any implementation manner of the present application, the link restoration unit is specifically used for:
[0152] Based on holographic technology, determine the event number of the current transaction according to the transaction link;
[0153] According to the time sequence, the event number is connected in series to other subsystems in the transaction link to obtain the corresponding transaction link.
[0154] According to any embodiment of the present application, see Fig.10 , the log reorganization module includes:
[0155] The log extraction unit 1103A is used to extract system logs from the first subsystem and other subsystems in the transaction link;
[0156] The log integration unit 1103B is used to reorganize the extracted system logs according to the time sequence and the interaction sequence between systems to obtain the log records of the complete transaction link, and integrate the logs of different subsystems into a unified storage location.
[0157] According to any embodiment of the present application, see Fig.11 , also includes a link monitoring module, including:
[0158] The detection deployment unit 1105A is used to: deploy a timed detection program for the service interface of each environment in the link based on the transaction link;
[0159] The alarm detection unit 1105B is used to send alarm information to the foreground visualization system in response to the timing detection program detecting that the system indicator exceeds the alarm threshold.
[0160] According to any embodiment of the present application, see Fig.12 , also includes knowledge base modules, including:
[0161] The knowledge base construction unit 1106A is used to: input the fault analysis and results and the alarm information into a preset structured query language template to construct corresponding knowledge base information;
[0162] The knowledge base display unit 1106B is used to send the knowledge base information to the front-end visualization system.
[0163] According to any implementation of the present application, a feedback optimization module is further included, which is used to:
[0164] In response to receiving the fault optimization instruction fed back by the tester, the transaction link is fault optimized through the service interfaces of each environment of the transaction link according to the fault optimization instruction.
[0165] From the above description, it can be seen that the fault analysis device based on the test environment provided by the embodiment of the present application can automatically and efficiently analyze the cause of the fault based on the information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link fault solutions is provided, and the traditional manual troubleshooting method is optimized, which improves the efficiency of the test work and saves labor and time costs.
[0166] From the hardware level, in order to be able to automatically and efficiently analyze the cause of the fault based on the information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link fault solutions is provided, and the traditional manual troubleshooting method is optimized, the test work efficiency is improved, and the labor cost and time cost are saved. This application provides an embodiment of an electronic device for implementing all or part of the content of the fault analysis method based on the test environment, and the electronic device specifically includes the following content:
[0167] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the fault analysis device based on the test environment and the core business system, user terminal and related database and other related equipment; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., but the present embodiment is not limited thereto. In the present embodiment, the logic controller can be implemented with reference to the embodiment of the fault analysis method based on the test environment and the embodiment of the fault analysis device based on the test environment in the embodiment, and the contents thereof are incorporated herein, and the repeated parts are not repeated.
[0168] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.
[0169] In practical applications, part of the fault analysis method based on the test environment can be executed on the electronic device side as described above, or all operations can be completed in the client device. The selection can be made based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.
[0170] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0171] Fig.13 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig.13 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig.13 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0172] In one embodiment, the function of the fault analysis method based on the test environment may be integrated into the central processing unit 9100. The central processing unit 9100 may be configured to perform the following control:
[0173] Step S101: Acquire transaction information input by a tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code;
[0174] Step S102: acquiring a transaction record of the first subsystem according to the transaction information, and restoring a transaction link based on the transaction record;
[0175] Step S103: extracting and reorganizing the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link;
[0176] Step S104: locate the root cause of the fault according to the return information of the system log and upstream and downstream log messages, and send the fault analysis result to the front-end visualization system.
[0177] From the above description, it can be seen that the electronic device provided in the embodiment of the present application automatically and efficiently analyzes the cause of the fault based on the information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link fault solutions is provided, and the traditional manual troubleshooting method is optimized, which improves the test work efficiency and saves labor and time costs.
[0178] In another embodiment, the fault analysis device based on the test environment can be configured separately from the central processing unit 9100. For example, the fault analysis device based on the test environment can be configured as a chip connected to the central processing unit 9100, and the function of the fault analysis method based on the test environment can be implemented through the control of the central processing unit.
[0179] like Fig.13 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig.13 In addition, the electronic device 9600 may also include Fig.13 For components not shown, reference may be made to the prior art.
[0180] like Fig.13 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.
[0181] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.
[0182] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.
[0183] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.
[0184] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0185] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0186] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.
[0187] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all steps of the fault analysis method based on a test environment in the above embodiments, where the execution subject is a server or a client. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, all steps of the fault analysis method based on a test environment in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0188] Step S101: Acquire transaction information input by a tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code;
[0189] Step S102: acquiring a transaction record of the first subsystem according to the transaction information, and restoring a transaction link based on the transaction record;
[0190] Step S103: extracting and reorganizing the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link;
[0191] Step S104: locate the root cause of the fault according to the return information of the system log and upstream and downstream log messages, and send the fault analysis result to the front-end visualization system.
[0192] From the above description, it can be seen that the computer-readable storage medium provided in the embodiment of the present application automatically and efficiently analyzes the cause of the failure based on the information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link failure solutions is provided, and the traditional manual troubleshooting method is optimized, which improves the efficiency of testing work and saves labor costs and time costs.
[0193] The embodiments of the present application also provide a computer program product capable of implementing all steps of the fault analysis method based on a test environment in the above embodiments, where the execution subject is a server or a client. When the computer program / instruction is executed by a processor, the steps of the fault analysis method based on a test environment are implemented. For example, the computer program / instruction implements the following steps:
[0194] Step S101: Acquire transaction information input by a tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code;
[0195] Step S102: acquiring a transaction record of the first subsystem according to the transaction information, and restoring a transaction link based on the transaction record;
[0196] Step S103: extracting and reorganizing the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link;
[0197] Step S104: locate the root cause of the fault according to the return information of the system log and upstream and downstream log messages, and send the fault analysis result to the front-end visualization system.
[0198] From the above description, it can be seen that the computer program product provided in the embodiment of the present application automatically and efficiently analyzes the cause of the failure based on the information and logs in the transaction process through certain rule processing and analysis logic. Based on the current mainstream business design, a complete set of transaction link failure solutions is provided, and the traditional manual troubleshooting method is optimized, which improves the efficiency of testing work and saves labor costs and time costs.
[0199] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented 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.
[0200] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. The above-mentioned computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0201] The above-mentioned computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0202] The above-mentioned computer program instructions can also be loaded into a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0203] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A fault analysis method based on a test environment, characterized in that: include: Obtaining transaction information input by a tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code; Acquire a transaction record of the first subsystem according to the transaction information, and restore the transaction link based on the transaction record; According to the transaction link, extract and reorganize the system logs of the first subsystem and other subsystems in the transaction link; The root cause of the fault is located according to the return information of the system log and upstream and downstream log messages, and the fault analysis result is sent to the front-end visualization system.
2. The fault analysis method based on the test environment according to claim 1, characterized in that: The restoring the corresponding transaction link based on the transaction record includes: Reorganizing the server terminal log according to the field information in the transaction record; Extracting multiple key link elements of the corresponding transaction according to the recording time, occurrence frequency, transmission information and return information of the server terminal log, wherein the key link elements include transaction time, transaction amount and transaction type; Based on the holographic technology, the corresponding transaction link is determined according to the multiple link key elements.
3. The fault analysis method based on the test environment according to claim 2, characterized in that: The determining the corresponding transaction link based on the holographic technology according to the multiple link key elements includes: Based on holographic technology, determine the event number of the current transaction according to the transaction link; According to the time sequence, the event number is connected in series to other subsystems in the transaction link to obtain the corresponding transaction link.
4. The fault analysis method based on the test environment according to claim 1, characterized in that: The extracting and reorganizing the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link includes: Extracting system logs from the first subsystem and other subsystems in the transaction link; The extracted system logs are reorganized according to the chronological order and the interaction order between systems to obtain the log records of the complete transaction link, and the logs of different subsystems are integrated into a unified storage location.
5. The fault analysis method based on the test environment according to claim 1, characterized in that: Also includes: Based on the transaction link, deploy a timed detection program for the service interface of each environment in the link; In response to the timing detection program detecting that the system indicator exceeds the alarm threshold, an alarm message is sent to the front-end visualization system.
6. The fault analysis method based on the test environment according to claim 5, characterized in that: Also includes: Input the fault analysis and results and the alarm information into a preset structured query language template to construct corresponding knowledge base information; The knowledge base information is sent to the front-end visualization system.
7. The fault analysis method based on the test environment according to claim 6, characterized in that: Also includes: In response to receiving the fault optimization instruction fed back by the tester, the transaction link is fault optimized through the service interfaces of each environment of the transaction link according to the fault optimization instruction.
8. A fault analysis device based on a test environment, characterized in that: include: The transaction information receiving module is used to obtain the transaction information input by the tester, wherein the transaction information includes at least one of a mobile phone number, a bank card number, and a fault code; A link restoration module, used to: obtain a transaction record of the first subsystem according to the transaction information, and restore the transaction link based on the transaction record; A log reorganization module, used to: extract and reorganize the system logs of the first subsystem and other subsystems in the transaction link according to the transaction link; The fault analysis module is used to locate the root cause of the fault according to the return information of the system log and upstream and downstream log messages, and send the fault analysis result to the front-end visualization system.
9. 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 program, the steps of the fault analysis method based on the test environment according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the fault analysis method based on the test environment described in any one of claims 1 to 7 are implemented.