Error report information processing method and device, equipment, medium and program product
By automatically receiving and parsing error codes for error reporting information, and automatically calling scripts for error correction processing based on the script's call priority, the problem of inefficient manual review is solved and the efficiency and accuracy of error reporting information processing is improved.
Patent Information
- Application Number
- CN202411787601.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-04
AI Technical Summary
Traditional error-reporting information processing methods rely on manual review, which is inefficient and prone to missing key information, resulting in extended problem investigation and resolution cycles.
By receiving and analyzing the error code of the error message detected from the test environment, determining the error type, and automatically calling the script to correct the error message according to the script's call priority.
It improves the efficiency of troubleshooting and handling of error-reported information, avoids the cumbersome and inefficient manual review, ensures priority resolution of key issues, and thus improves the stability and reliability of the system.
Smart Images

Figure CN119557137A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of financial technology and big data technology, and more specifically to an error information processing method, device, equipment, medium and program product. Background Art
[0002] In the process of software development and maintenance, error information processing is a critical task. Especially in complex testing environments, error information may come from a variety of reasons, including but not limited to code errors, configuration errors, resource conflicts, or external system problems. Traditional error information processing methods often rely on manual review of logs and error information, which is not only inefficient, but also prone to missing key information, resulting in a longer troubleshooting and resolution cycle. Summary of the invention
[0003] In view of the above problems, the present disclosure provides an error information processing method, apparatus, device, medium and program product for improving the efficiency of error information troubleshooting and handling.
[0004] According to the first aspect of the present disclosure, there is provided a method for processing error information, including: receiving a first message, the first message including an error code for recording error information detected from a test environment; parsing the first message to obtain the error code, and determining the error type of the error information according to the error code; obtaining a calling priority of at least one first script corresponding to the error type, the first script being used to perform error correction processing on the error information; calling a target script in at least one first script based on the calling priority, and performing error correction processing on the error information.
[0005] According to an embodiment of the present disclosure, calling a target script in at least one first script based on a calling priority includes: when there are at least two first scripts, determining a second script whose calling priority reaches a preset threshold among the at least two first scripts as the target script.
[0006] According to an embodiment of the present disclosure, the error information processing method further includes: when the second script is executed and the test environment contains error information, determining a third script with a calling priority lower than that of the second script among the at least two first scripts as a target script.
[0007] According to an embodiment of the present disclosure, the error information processing method further includes: when the third script is executed and the test environment does not contain error information, updating the calling priority of the third script.
[0008] According to an embodiment of the present disclosure, determining the error type of error information according to the error code includes: matching the error code with a preset first query list to determine the error type, wherein the first query list represents the correspondence between the error code and the error type.
[0009] According to an embodiment of the present disclosure, obtaining the calling priority of at least one first script corresponding to an error type includes: matching the error type with a preset second query list to determine at least one first script corresponding to the error type, the second query list characterizing the correspondence between the error type and the first script; determining the calling priority of at least one first script according to the setting order of at least one script in the second query list.
[0010] According to an embodiment of the present disclosure, before receiving the first message, the error information processing method further includes: sending a second message to the test environment, the second message is used to detect the error information, and the second message corresponds to the first message.
[0011] The second aspect of the present disclosure provides an error information processing device, including: a receiving module, used to receive a first message, the first message including an error code for recording error information detected from a test environment; a parsing module, used to parse the first message, obtain the error code, and determine the error type of the error information according to the error code; an acquisition module, used to obtain the calling priority of at least one first script corresponding to the error type, the first script being used to perform error correction processing on the error information; and a calling module, used to call a target script in the at least one first script based on the calling priority, and perform error correction processing on the error information.
[0012] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0013] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.
[0014] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.
[0015] According to the error information processing method, apparatus, device, medium and program product of the embodiments of the present disclosure, an error code is extracted from the detection message returned by the test environment, the type of error information is determined according to the error code, and the script is automatically called according to the script calling priority to correct the corresponding error information. By automatically receiving and parsing the error code in the first message, the error type can be determined quickly and accurately, avoiding the tediousness and inefficiency of manual review. Through the script calling priority, the processing script that best suits the current error type can be intelligently selected and called, which can not only improve processing efficiency, but also ensure the priority resolution of key issues, thereby improving the stability and reliability of the overall system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0017] Figure 1 The application scenario diagram of the error information processing method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;
[0018] Figure 2 A flowchart of a method for processing error information according to an embodiment of the present disclosure is schematically shown;
[0019] Figure 3 A flowchart of a method for processing error information according to some embodiments of the present disclosure is schematically shown;
[0020] Figure 4 A flowchart of a method for processing error information according to some embodiments of the present disclosure is schematically shown;
[0021] Figure 5 A schematic diagram of a structure of an error information processing device according to an embodiment of the present disclosure is shown; and
[0022] Figure 6 A block diagram of an electronic device suitable for implementing the error information processing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0023] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0024] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0025] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0026] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0027] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0028] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.
[0029] The embodiments of the present disclosure provide a method for processing error information, which extracts error codes from the detection message returned by the test environment, determines the type of error information according to the error code, and automatically calls the script to correct the corresponding error information according to the script calling priority. By automatically receiving and parsing the error code in the first message, the error type can be determined quickly and accurately, avoiding the tediousness and inefficiency of manual review. Through the script calling priority, the processing script that best suits the current error type can be intelligently selected and called, which can not only improve processing efficiency, but also ensure the priority resolution of key issues, thereby improving the stability and reliability of the overall system.
[0030] Figure 1 The application scenario diagram of the error information processing method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0031] like Figure 1As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0032] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0033] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0034] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0035] It should be noted that the error information processing method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the error information processing device provided in the embodiment of the present disclosure can generally be set in the server 105. The error information processing method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the error information processing device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0036] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0037] The following will be based on Figure 1 The scene described by Figure 2~Figure 4 The error information processing method of the disclosed embodiment is described in detail.
[0038] Figure 2 The flowchart of the error information processing method according to the embodiment of the present disclosure is schematically shown.
[0039] like Figure 2 As shown, the error information processing method of this embodiment includes operations S210 to S240, and the error information processing method can be executed by the server 105.
[0040] In operation S210, a first message is received, where the first message includes an error code for recording error information detected from a test environment.
[0041] The first message is usually sent from the test environment to report the error information detected during the test. As an example, the message can be received by network monitoring, file reading, database query, etc. The message format can be text, binary, JSON, XML, etc., depending on the system design and communication protocol, and the present disclosure does not make specific limitations.
[0042] In operation S220, the first message is parsed to obtain an error code, and the error type of the error information is determined according to the error code.
[0043] The method for parsing the message depends on the format of the message. For example, if the message is in JSON format, you can use the JSON parsing library to extract the error code. The error code can be a combination of one or more characters or numbers, which is used to uniquely identify an error type. You can use a mapping table to map the error code to the corresponding error type, so that you can quickly determine the error type of the error information based on the error code.
[0044] In operation S230, a calling priority of at least one first script corresponding to the error reporting type is obtained, and the first script is used to perform error correction processing on the error reporting information.
[0045] The priority of the script can be pre-set based on a variety of factors, such as the success rate of the script, processing speed, resource consumption, etc. The priority can be set in the properties of the script, for example. The priority can be a level in the form of an integer, a floating point number, or a string, and the present disclosure is not limited thereto.
[0046] In operation S240, a target script in at least one first script is called based on the calling priority, and error correction processing is performed on the error information.
[0047] The target script is a script in the first script that can correct the error information. According to the calling priority, one or more qualified scripts can be called as the target script to automatically correct the error information. The method of calling the script may depend on the type of script and the operating environment of the system. For example, if the script is a Python script, the Python interpreter can be used to execute them. In some embodiments, the results of the script execution (such as whether the error correction is successful, the generated log, etc.) can be recorded and stored for subsequent analysis.
[0048] Through the steps of the above embodiment, the error code in the first message is automatically received and parsed, and the error type can be quickly and accurately determined, avoiding the tediousness and inefficiency of manual review. Through the script call priority, the processing script that best suits the current error type can be intelligently selected and called, which can not only improve the processing efficiency, but also ensure the priority resolution of key issues, thereby improving the stability and reliability of the overall system.
[0049] Based on the above embodiment, the above operation S240 may include: when there are at least two first scripts, determining a second script whose calling priority reaches a preset threshold among the at least two first scripts as a target script.
[0050] As an example, all first scripts associated with the error type can be retrieved from the script library, and then the calling priority of each script can be evaluated. For example, the priority value of each script can be obtained by reading the metadata or configuration information of the script. For example, the calling priority value can be 1, 2, 3, etc., where 1 represents the highest calling priority, and the calling priorities of 2 and 3 decrease in sequence. The preset threshold can be set according to factors such as system requirements, script performance, resource limitations, etc., and the preset threshold can be one or more.
[0051] The preset threshold value may be set to a value with the highest call priority, such as 1. That is, the script with the highest call priority (call priority value is 1) is extracted from the multiple first scripts as the target script, so that the most appropriate script can be preferentially selected to process the error information, so as to improve the success rate and processing efficiency of the error information processing.
[0052] Based on the above embodiment, the error information processing method may further include: when the second script is executed and the test environment contains error information, determining a third script with a lower calling priority than the second script among the at least two first scripts as a target script.
[0053] After the second script is executed, the status of the error information in the test environment can be checked. For example, the status of the error information of the test environment can be obtained again through the message, or the error information status can be obtained by querying the error log, system status or user feedback. In the error information processing flow, if the second script (i.e., the script whose calling priority reaches or exceeds the preset threshold) is executed, the test environment still contains the original error information, which means that the second script may not completely solve the error problem, or the error information may be caused by multiple independent problems. In this case, a third script with a calling priority lower than that of the second script can be executed as an additional error correction method, and error correction processing is performed by calling the script.
[0054] It is understandable that if the error message is not completely resolved after executing all the selected third scripts, the above steps can be repeated, and the execution of a lower priority script or other error correction measures can be considered until the detected error message is corrected. In this way, by continuously calling scripts of other priority levels in order of priority, the error message in the test environment can be processed more systematically to ensure that the error problem is fully and effectively resolved.
[0055] Based on the above embodiment, the error information processing method may further include: when the third script is executed and the test environment does not contain error information, updating the calling priority of the third script.
[0056] As an example, after the third script is executed, the test environment can be checked again to confirm whether the error message has been completely resolved. When the error message is resolved, the calling priority of the third script can be increased. For example, the priorities of the second script and the third script were originally 1 and 2, respectively. After the update, the priority of the third script can be changed to 1. The priority of the second script can be changed to 2 accordingly, or the priority of the second script can be placed at the last level. By dynamically adjusting the calling priority of the script, it can be ensured that the script that is most effective for the error message is at a higher calling level. When the same or similar error message appears again, the high-priority script after the priority adjustment can be called first to improve the efficiency and accuracy of error message processing.
[0057] Figure 3 The flowchart of the error information processing method according to some embodiments of the present disclosure is schematically shown.
[0058] like Figure 3As shown, the processing process of calling the second script, the third script, and the fourth script is schematically shown. The process of calling the second script and the third script for error correction processing has been described in the previous text, so it will not be repeated here. It should be noted that in the case of failure of the third script, the fourth script with a lower priority can be further called, and when the fourth script successfully corrects the error message, the calling priority of the fourth script is updated. For example, the calling priority of the fourth script is increased by one level, or the calling priority of the second script is replaced. In this way, when the same or similar error message appears again, the fourth script that can successfully solve the error message can be called first, thereby improving the processing efficiency of the error message.
[0059] Based on the above embodiment, in the above operation S220, determining the error type of the error information according to the error code may include: matching the error code with a preset first query list to determine the error type, and the first query list represents the correspondence between the error code and the error type.
[0060] The first query list is a data structure, such as an error code mapping table, an error code comparison table or an error code library, to record the correspondence between error codes and error types. This list can contain all known error codes and their corresponding error types. The first query list can be, for example, a hash table, a dictionary tree, etc., so as to speed up the matching process. During the matching process, the extracted error codes can be compared one by one with the error codes in the first query list until a matching entry is found. Once a matching error code is found, the error type corresponding to the entry can be read, and a descriptive string or code can be used to uniquely identify the error type. In this way, the error type of the error information can be accurately and quickly determined.
[0061] It should be emphasized that new error codes may be introduced as the system is updated and upgraded. Therefore, the first query list can be updated regularly to ensure that it contains all the latest error codes and error types. If the received error code cannot find a match in the first query list, it can be regarded as an unknown error code and trigger the corresponding processing flow, such as logging, sending an alert, or executing a default error handling script.
[0062] Based on the above embodiment, the above operation S230 may include: matching the error type with a preset second query list, determining at least a first script corresponding to the error type, the second query list characterizing the correspondence between the error type and the first script; determining the calling priority of at least one first script according to the setting order of at least one script in the second query list.
[0063] The second query list can use similar data structures and query methods as the first query list, and similar contents are not repeated here. The difference is that the second query list also determines the calling priority of these scripts according to the order of the scripts in the list or the clear priority value. By introducing the second query list, the scripts corresponding to the error type and their calling priority can be accurately and efficiently determined, and useful guidance can be provided for subsequent error handling.
[0064] In some embodiments, the second query table can be combined with the first query table to form a general query table for corresponding to the relationship between the error code, the error type and the error correction script, thereby reducing the amount of data and improving query efficiency.
[0065] Figure 4 The flowchart of the error information processing method according to some other embodiments of the present disclosure is schematically shown.
[0066] like Figure 4 As shown, in some embodiments, the error information processing method may further include operations S410 to S450.
[0067] In operation S410, a second message is sent to the test environment, where the second message is used to detect error information, and the second message corresponds to the first message.
[0068] Before sending the second message, the parameters required for the second message, such as the target address, port number, protocol type, sending frequency, etc., can be set to ensure that these parameters match the configuration of the test environment. The second message can be sent to the test environment using appropriate communication protocols and tools, such as encrypting the message content, using a secure communication protocol, and restricting access to the test environment to ensure that any necessary security and compliance requirements are followed during the sending process.
[0069] In operation S420, a first message is received, the first message including an error code for recording error information detected from the test environment. The content of operation S420 can refer to the content of operation S210 above, and will not be repeated here.
[0070] In operation S430, the first message is parsed to obtain an error code, and the error type of the error information is determined according to the error code. The content of operation S430 can refer to the content of operation S220 above, and will not be repeated here.
[0071] In operation S440, the calling priority of at least one first script corresponding to the error type is obtained, and the first script is used to perform error correction processing on the error information. The content of operation S440 can refer to the content of operation S230 above, and will not be repeated here.
[0072] In operation S450, the target script in at least one of the first scripts is called based on the calling priority, and error correction processing is performed on the error information. The content of operation S450 can refer to the content of operation S240 above, which will not be repeated here. The following is an example for illustration. First, a second message for detection can be sent to the test environment to be detected. After detecting the error information of the test environment, the first message is returned. Parse the error code in the return message, such as the "return_code" field, and query the response list, as shown in Table 1:
[0073] Table 1
[0074]
[0075] As shown in Table 2, the error code "return_code": "1" indicates that the container is abnormal. The corresponding measures can be: 1.1 restart the container; 1.2 upgrade the version; 1.3 update the container parameters. 1.1, 1.2, 1.3 indicate the corresponding priority of each measure. Each measure can be executed through the corresponding script.
[0076] Table 2
[0077]
[0078] Next, you can select and execute the corresponding script according to the priority. For "return_code": "1"--container exception, you can prioritize executing "Script 1.1" corresponding to "1.1 Restart Container". As shown in Table 3:
[0079] Table 3
[0080]
[0081] After executing the script, the error message is detected again in the form of a message to analyze whether the error code returned is 0, and if successful, the process ends. If not, the script in the next priority measure is executed and a detection message is sent. The above process is repeated until the detection returns a successful message. If it still fails in the end, the error message is processed in other preset ways, for example, by manual intervention.
[0082] Based on the above error information processing method, the present disclosure also provides an error information processing device. Figure 5 The device is described in detail.
[0083] Figure 5 The structure block diagram of the error information processing device according to the embodiment of the present disclosure is schematically shown.
[0084] like Figure 5As shown, the error information processing device 500 of this embodiment includes a receiving module 510, a parsing module 520, an acquiring module 530 and a calling module 540.
[0085] The receiving module 510 is used to receive a first message, and the first message includes an error code for recording error information detected from the test environment. In one embodiment, the receiving module 510 can be used to perform the operation S210 described above, which will not be described in detail here.
[0086] The parsing module 520 is used to parse the first message, obtain an error code, and determine the error type of the error information according to the error code. In one embodiment, the parsing module 520 can be used to perform the operation S220 described above, which will not be described in detail here.
[0087] The acquisition module 530 is used to obtain the calling priority of at least one first script corresponding to the error type, and the first script is used to perform error correction processing on the error information. In one embodiment, the acquisition module 530 can be used to perform the operation S230 described above, which will not be repeated here.
[0088] The calling module 540 is used to call the target script in at least one first script based on the calling priority, and perform error correction processing on the error information. In one embodiment, the calling module 540 can be used to perform the operation S240 described above, which will not be repeated here.
[0089] According to an embodiment of the present disclosure, the calling module 540 may also be configured to, when there are at least two first scripts, determine a second script whose calling priority reaches a preset threshold among the at least two first scripts as a target script.
[0090] According to an embodiment of the present disclosure, the error information processing device 500 may further include a determination module. The determination module is used to determine a third script with a lower calling priority than the second script among the at least two first scripts as a target script when the second script is executed and the test environment contains error information.
[0091] According to an embodiment of the present disclosure, the error information processing apparatus 500 may further include a replacement module. The replacement module is used to update the calling priority of the third script when the third script is executed and the test environment does not contain error information.
[0092] According to an embodiment of the present disclosure, the parsing module 520 may also be used to match the error code with a preset first query list to determine the error type, and the first query list represents the correspondence between the error code and the error type.
[0093] According to an embodiment of the present disclosure, the acquisition module 530 can also be used to match the error type with a preset second query list, determine at least a first script corresponding to the error type, and the second query list represents the correspondence between the error type and the first script; and determine the calling priority of at least one first script according to the setting order of at least one script in the second query list.
[0094] According to an embodiment of the present disclosure, the error information processing device 500 may further include a sending module. The sending module is used to send a second message to the test environment, the second message is used to detect the error information, and the second message corresponds to the first message. The sending module can be used to perform the operation S410 described above, which will not be repeated here.
[0095] According to an embodiment of the present disclosure, any multiple modules among the receiving module 510, the parsing module 520, the acquiring module 530, the calling module 540, the determining module, the replacing module, the sending module, etc. can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the receiving module 510, the parsing module 520, the acquiring module 530, the calling module 540, the determining module, the replacing module, the sending module, etc. can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware and firmware or in a suitable combination of any of them. Alternatively, the receiving module 510, the parsing module 520, the acquiring module 530, the calling module 540 and at least one of the determining module, the replacing module, the sending module, etc. may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.
[0096] Figure 6 A block diagram of an electronic device suitable for implementing the error information processing method according to an embodiment of the present disclosure is schematically shown.
[0097] like Figure 6As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0098] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0099] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0100] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0101] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.
[0102] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program includes a program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the error information processing method provided by the embodiment of the present disclosure.
[0103] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0104] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0105] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.
[0106] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0107] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0108] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0109] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for processing error information, characterized in that: The method comprises: receiving a first message, wherein the first message includes an error code for recording error information detected from a test environment; Parsing the first message to obtain the error code, and determining the error type of the error information according to the error code; Obtaining a calling priority of at least one first script corresponding to the error type, wherein the first script is used to perform error correction processing on the error information; The target script in the at least one first script is called based on the calling priority, and error correction processing is performed on the error information.
2. The method according to claim 1, characterized in that The calling of a target script in the at least one first script based on the calling priority comprises: When there are at least two first scripts, the second script whose calling priority reaches a preset threshold among the at least two first scripts is determined as the target script.
3. The method according to claim 2, characterized in that Also includes: When the second script is executed and the test environment includes the error message, a third script among the at least two first scripts whose calling priority is lower than that of the second script is determined as the target script.
4. The method according to claim 3, characterized in that: Also includes: When the execution of the third script is completed and the test environment does not include the error message, the calling priority of the third script is updated.
5. The method according to claim 1, characterized in that: The determining the error type of the error information according to the error code includes: The error code is matched with a preset first query list to determine the error type, wherein the first query list represents the corresponding relationship between the error code and the error type.
6. The method according to claim 1, characterized in that The obtaining the calling priority of at least one first script corresponding to the error type includes: Matching the error type with a preset second query list to determine the at least first script corresponding to the error type, wherein the second query list represents a corresponding relationship between the error type and the first script; The calling priority of the at least one first script is determined according to the arrangement order of the at least one script in the second query list.
7. The method according to claim 1, characterized in that Before receiving the first message, the method further includes: A second message is sent to the test environment, where the second message is used to detect the error information, and the second message corresponds to the first message.
8. An error information processing device, characterized in that: The device comprises: A receiving module, used to receive a first message, wherein the first message includes an error code for recording error information detected from a test environment; A parsing module, used for parsing the first message, obtaining the error code, and determining the error type of the error information according to the error code; an acquisition module, configured to obtain a calling priority of at least one first script corresponding to the error type, wherein the first script is used to perform error correction processing on the error information; and A calling module is used to call a target script in the at least one first script based on the calling priority, and perform error correction processing on the error information.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.