A software defect processing method, system and storage medium

By simulating user requests through the mirror server, and using error request logs and backup data sets, it solves the difficulty and high cost of reproducing problems in software defect processing, and improves processing efficiency and accuracy.

CN117971693BActive Publication Date: 2024-10-29TECHNOLOGY (CHENGDU) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410200002.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-22
Publication Date
2024-10-29
Estimated Expiration
2044-02-22

AI Technical Summary

Technical Problem

In the process of handling existing software defects, testers have difficulty in successfully reproducing the problem, which increases the difficulty and cost of solving the problem and results in low efficiency.

Method used

Obtain the request log of the application server and the user's backup data set through the mirror server, collect error request logs and corresponding user backup data, simulate user requests, determine the simulation results, and push prompt information to the processor according to preset conditions to improve the software Efficiency of defect handling.

Benefits of technology

It reduces the difficulty and cost of reproducing software defects, improves processing efficiency, and enables faster problem location and related processing and testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117971693B_ABST
    Figure CN117971693B_ABST
Patent Text Reader

Abstract

The embodiment of the present specification provides a method, system and storage medium for handling software defects, the system includes an acquisition module, a log collection module, a backup collection module, a determination module and a push module; the method is executed by the system, and the method includes: obtaining the request log of the application server and the backup data set of the user, and sending the request log and the backup data set to the mirror server; collecting the error request log in the request log through the mirror server; in response to the mirror server collecting the error request log, collecting the user backup data with the same request time as the error request log from the backup data set through the mirror server; based on the user backup data, simulating the user request of the user through the mirror server to determine the simulation result; in response to the simulation result meeting the preset result condition, pushing the first prompt information to the processing personnel. The storage medium stores the computer instructions related to the software defect handling method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a software defect processing method, system and storage medium. Background Art

[0002] With the popularity of the Internet and smart devices such as computers, people's daily lives and work are increasingly inseparable from various software. In order to maintain the normal operation of various software, it is necessary to promptly discover and handle software defects. Many software collect error logs through servers and use related tools to provide log retrieval and query functions. R&D personnel query logs to locate problems and pass them to testers to reproduce the problems. Once the problem is reproduced and fixed, testers will perform regression testing to ensure that all problems have been resolved. The above process may take a lot of time and cost, and is inefficient. If the tester cannot successfully reproduce the problem, it will further increase the difficulty and cost of solving the problem.

[0003] Therefore, it is hoped to provide a software defect processing method, system and storage medium, which can better simulate user requests through mirroring technology and improve the processing efficiency of software defect processing. Summary of the invention

[0004] One or more embodiments of the present specification provide a method for handling software defects. The method includes: obtaining a request log of an application server and a backup data set of a user, and sending the request log and the backup data set to a mirror server; collecting an error request log in the request log through the mirror server; in response to the mirror server collecting the error request log, collecting user backup data with the same request time as the error request log from the backup data set through the mirror server; based on the user backup data, simulating the user request of the user through the mirror server to determine the simulation result; in response to the simulation result meeting the preset result condition, pushing a first prompt information to the processing personnel.

[0005] One of the embodiments of the present specification provides a software defect processing system, the system comprising: an acquisition module, configured to acquire a request log of an application server and a backup data set of a user, and send the request log and the backup data set to a mirror server; a log collection module, configured to collect an error request log in the request log through the mirror server; a backup collection module, configured to collect user backup data with the same request time as the error request log from the backup data set through the mirror server in response to the error request log being collected by the mirror server; a determination module, configured to simulate a user request of the user through the mirror server based on the user backup data and determine a simulation result; a push module, configured to push a first prompt information to a processing personnel in response to the simulation result satisfying a preset result condition.

[0006] One or more embodiments of the present specification provide a computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the software defect handling method. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:

[0008] Figure 1 is a schematic diagram of an application scenario of a software defect handling system according to some embodiments of this specification;

[0009] Figure 2 is a module diagram of a software defect handling system according to some embodiments of this specification;

[0010] Figure 3 is an exemplary flow chart of a software defect handling method according to some embodiments of this specification;

[0011] Figure 4 is an exemplary flow chart of simulating updated software according to some embodiments of this specification;

[0012] Figure 5 is an exemplary schematic diagram of simulating a user request of a user through a mirror server according to some embodiments of this specification;

[0013] Figure 6 It is a general flow chart of the software defect handling method shown in some embodiments of this specification. DETAILED DESCRIPTION

[0014] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.

[0015] It should be understood that the "system", "device", "unit" and / or "module" used herein are a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.

[0016] Unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0017] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.

[0018] In order to ensure software quality, software defects need to be handled reasonably during the software development and maintenance stages. When faced with many different software defects, handlers may not always be able to immediately find the problem and make the correct modifications, which often requires multiple trials and tests. If the software environment and data at the time of the user's request can be reproduced more completely, it can help handlers find the problem more quickly and perform relevant processing and testing. Therefore, it is hoped to provide a software defect handling method and system that can reduce the difficulty and cost of handlers reproducing erroneous requests and improve processing efficiency.

[0019] Figure 1 It is a schematic diagram of an application scenario of a software defect handling system according to some embodiments of this specification.

[0020] In some embodiments, Figure 1 As shown, the application scenario 100 of the software defect handling system may include a server 110 , a processor 120 , a storage device 130 , a user terminal 140 , a network 150 , and a processing person 160 .

[0021] In some embodiments, the server 110 , the user terminal 140 , and other possible system components may include a storage device 130 .

[0022] In some embodiments, the server 110 , the user terminal 140 , and other possible system components may include a processor 120 .

[0023] In some embodiments, server 110 can be a single server or a server group. The server group can be centralized or distributed, can be dedicated, and can also be provided by other devices or systems at the same time. In some embodiments, server 110 can be regional or remote. In some embodiments, server 110 can be implemented on a cloud platform, or provided in a virtual manner.

[0024] In some embodiments, the server 110 may include an application server 110-1 and a mirror server 110-2. The application server 110-1 is an execution framework provided to the user terminal 140 for using the software. In some embodiments, the application server 110-1 may provide the software and the use environment of the software to the user terminal 140 through the network 150 or directly. The mirror server 110-2 is a server that has the same content as the application server 110-1 and can be updated synchronously, and can be understood as a copy of the application server 110-1. In some embodiments, the mirror server 110-2 can exchange data with the application server 110-1 through the network 150 or hardware. In some embodiments, the application server 110-1 and the mirror server 110-2 may include a sub-processor.

[0025] In some embodiments, the processor 120 is used to manage resources and process data and / or information of at least one component in the application scenario or an external data source (e.g., a cloud data center). In some embodiments, the processor 120 can process data and / or information obtained from other devices or system components. The processor can execute program instructions based on these data, information and / or processing results to perform one or more functions described in this specification.

[0026] In some embodiments, the processor 120 may include one or more sub-processing devices (e.g., a single-core processing device or a multi-core multi-core processing device). As an example only, the processor 120 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), a microprocessor, etc., or any combination thereof.

[0027] In some embodiments, the processor 120 can obtain the request log of the application server 110-1 and the user's backup data set, and send the request log and the backup data set to the mirror server 110-2; collect the error request log in the request log through the mirror server 110-2; in response to the collection of the error request log, collect the user backup data with the same request time as the error request log from the backup data set through the mirror server 110-2; based on the user backup data, simulate the user's user request through the mirror server 110-2 to determine the simulation result; in response to the simulation result meeting the preset result condition, push the first prompt information to the processing personnel 160.

[0028] The storage device 130 may be used to store data and / or instructions. The storage device 130 may include one or more storage components, each of which may be an independent device or a part of another device, such as a part of the server 110 .

[0029] In some embodiments, the storage device 130 may include random access memory (RAM), volatile read-write memory, etc. or any combination thereof. Exemplarily, the mass storage may include a magnetic disk, an optical disk, a solid-state disk, etc.

[0030] In some embodiments, the storage device 130 may be implemented on a cloud platform. In some embodiments, the storage device 130 may be used to store the request log of the application server 110-1, the backup data set of the user, etc. In some embodiments, the storage device 130 may back up the data of the application server 110-1 at a certain point in time through snapshot technology.

[0031] The user terminal 140 refers to one or more terminal devices or software used by the user. In some embodiments, the user terminal 140 may be used by one or more users, including users who directly use the service, and other related users (such as processing personnel, etc.). For more information about processing personnel, see Figure 1 The following is a related description. In some embodiments, the user terminal 140 can be one of the mobile devices 140-1, tablet computers 140-2, notebook computers 140-3, and other devices with input and / or output functions, or any combination thereof.

[0032] The network 150 may connect the components of the system and / or connect the system with external resources. The network 150 enables communication between the components and with other components outside the system, and facilitates the exchange of data and / or information.

[0033] In some embodiments, the network 150 may be any one or more of a wired network or a wireless network. For example, the network 150 may include a cable network, an optical fiber network cable connection, etc., or any combination thereof. The network connection between the various parts may be in one of the above-mentioned ways, or in multiple ways.

[0034] In some embodiments, the network may be a point-to-point, shared, centralized, or other topological structure or a combination of multiple topological structures. In some embodiments, the network 150 may include one or more network access points. For example, the network 150 may include a wired or wireless network access point, such as a base station and / or a network switching point 150-1, 150-2, ..., through which one or more components of the application scenario 100 of the software defect handling system may be connected to the network 150 to exchange data and / or information.

[0035] The processing personnel 160 is a technician who processes the successfully reproduced software defects. In some embodiments, the processing personnel 160 can receive the first prompt information, the second prompt information, etc. sent by the processor 120 to the user terminal 140. In some embodiments, the processing personnel 160 can send the updated software to the mirror server 110-2, etc. through the user terminal 140.

[0036] For more information about request logs, error request logs, user backup data sets, snapshot technology, user backup data, user requests, simulation results, preset result conditions, and first prompt information, see Figure 3 For more information about the second prompt, updated software, etc., please refer to Figure 4 The corresponding description.

[0037] In some embodiments, the software defect handling system may also be applied to application scenarios using non-mirror servers, for example, may be applied to application scenarios using other tools that can achieve functions similar to those of the mirror server.

[0038] It should be noted that the above description of the application scenario 100 of the software defect handling system is for illustrative purposes only and is not intended to limit the scope of this specification. For those of ordinary skill in the art, various variations and modifications may be made according to this specification. However, these variations and modifications do not depart from the scope of this specification.

[0039] Figure 2 It is a module diagram of a software defect handling system according to some embodiments of this specification.

[0040] In some embodiments, Figure 2As shown, the software defect handling system 200 may include an acquisition module 210 , a log collection module 220 , a backup collection module 230 , a determination module 240 and a push module 250 .

[0041] The acquisition module 210 is a module for acquiring relevant data of the application server and sending it to the mirror server. In some embodiments, the acquisition module can be configured to acquire the request log of the application server and the backup data set of the user, and send the request log and the backup data set to the mirror server.

[0042] The log collection module 220 is a module for collecting error request logs. In some embodiments, the log collection module can be configured to collect error request logs in request logs through a mirror server.

[0043] The backup collection module 230 is a module for collecting user backup data. In some embodiments, the backup collection module can be configured to collect user backup data with the same request time as the error request log from the backup data set through the mirror server in response to the mirror server collecting the error request log.

[0044] The determination module 240 is a module for simulating user requests and determining simulation results. In some embodiments, the determination module can be configured to simulate the user request of the user through the mirror server based on the user backup data and determine the simulation result.

[0045] The push module 250 is a module for pushing relevant prompt information. In some embodiments, the push module can be configured to push first prompt information to the processing personnel in response to the simulation result meeting the preset result condition.

[0046] In some embodiments, the determination module 240 can be further configured to simulate user requests through a mirror server based on user backup data and updated software to determine the update simulation result; the push module 250 can be further configured to push a second prompt message to the processing personnel in response to the update simulation result not meeting the preset update conditions.

[0047] In some embodiments, the determination module 240 can be further configured to intercept the user's first relevant operation data in a first preset time period through a mirror server; configure a first software testing environment based on the first relevant operation data, and simulate the user request through the mirror server under the first software testing environment to determine a first simulation result; in response to the first simulation result not satisfying the preset result condition, determine whether the simulation satisfies the termination condition; the push module 250 can be further configured to stop the simulation and close the processing process in response to the simulation satisfying the termination condition; in response to the simulation not satisfying the termination condition, intercept the user's second relevant operation data in a second preset time period through the mirror server, and perform the next simulation.

[0048] In some embodiments, the acquisition module 210, the log collection module 220, the backup collection module 230, the determination module 240 and the push module 250 may be components of the processor 120. For more information about the processor 120, see Figure 1 Related description.

[0049] For more information about application servers and mirror servers, see Figure 1 For more information about the above, see Figures 2 to 6 and its related description.

[0050] It should be understood that Figure 2 The illustrated system and its modules may be implemented in various ways.

[0051] It should be noted that the above description of the software defect handling system 200 and its modules is only for convenience of description and does not limit the present specification to the scope of the embodiments. It is understandable that, after understanding the principle of the system, those skilled in the art may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle. In some embodiments, Figure 2 The acquisition module 210, log collection module 220, backup collection module 230, determination module 240 and push module 250 disclosed in the specification can be different modules in a system, or a module can realize the functions of two or more modules mentioned above. For example, each module can share a storage module, or each module can have its own storage module. Such variations are all within the protection scope of this specification.

[0052] Figure 3 is an exemplary flow chart of a method for handling software defects according to some embodiments of this specification. Figure 3 As shown, the process 300 includes the following steps. In some embodiments, the process 300 may be executed by a software defect handling system.

[0053] Step 310: Obtain the request log of the application server and the backup data set of the user, and send the request log and the backup data set to the mirror server.

[0054] For instructions on application servers, mirror servers, and users, see Figure 1 Corresponding description.

[0055] Request logs refer to relevant request records created by application servers. For example, request logs may include information such as the IP address of the user terminal, user request, request date / time, requested web page, etc. User request refers to a request initiated by a user to an application server. For example, a user request may be a request issued by a user to an application server to obtain a certain web page.

[0056] In some embodiments, the request log can be written into one file, or can be separated into multiple logs, such as access logs and error request logs, and written into different files. For an explanation of the error request log, see the relevant description of step 320 below.

[0057] In some embodiments, if there is an erroneous request, the request log may also include error information. The error information may include the type of erroneous request, the line where the erroneous request code is located, and the like.

[0058] The user's backup data set refers to a set obtained by backing up the user data. For example, the user's backup data set may include user backup data of one or more users at a certain point in time. For an explanation of the user backup data, see the relevant content of step 320 below.

[0059] In some embodiments, the acquisition module 210 can obtain the request log of the application server and the backup data set of the user in a variety of ways, and send the request log and the backup data set to the mirror server. For example, the request log is generated by the application server during the software application process. The acquisition module 210 can directly obtain the request log of the application server and the backup data set of the user from the application server or storage device, and send the request log and the backup data set to the mirror server. For another example, the acquisition module 210 can achieve the acquisition and sending of the user's backup data set through snapshot technology, such as, when the user data changes, the changed user data is immediately pushed to the mirror server, and at the same time, the request log of the application server is pushed to the mirror server in real time. A snapshot is the state of the entire system at a certain point in time. Snapshot technology is a database technology that can perform instantaneous backup and rapid recovery of data online. For an explanation of user data, please refer to the relevant content of step 320 below.

[0060] Step 320: Collect error request logs in request logs through the mirror server.

[0061] The error request log refers to a log of abnormalities in the request log. For example, the error request log may include the request address and request time corresponding to the erroneous user request. For an explanation of the request log, please refer to the corresponding description of step 310 above.

[0062] In some embodiments, the log collection module 220 can collect the error information (if any) in the request log through the mirror server to obtain the error request log. For example, the log collection module 220 can automatically substitute the request address, user encrypted data, and input parameter information in the user's error request through the mirror server based on the error information in the request log and the user's backup data set, and collect the error request log in the request log. The input parameter information is the value input to the function when calling a function or method.

[0063] The above method of automatically substituting relevant information of the user through the mirror server and collecting erroneous requests can ensure the privacy and security of the user information.

[0064] Step 330 , in response to the mirror server collecting the error request log, the mirror server collects user backup data with the same request time as the error request log from the backup data set.

[0065] The request time of the error request log refers to the time when the error request occurs.

[0066] User backup data refers to the backup data of user data. For example, user backup data can be the backup data of user data at a certain time point. User data refers to data containing relevant information of the user. For example, user data can include user personal information (such as user ID, location), user status information (such as user usage time, activity level), etc.

[0067] In some embodiments, in response to the mirror server collecting the error request log, the backup collection module 230 can collect the user backup data with the same request time as the error request log from the backup data set through the mirror server in a variety of ways. For example, based on the request time of the error request log, the mirror server can be used to match the user backup data with the same request time in the backup data set, and the matched user backup data can be collected.

[0068] Step 340: Based on the user backup data, the user request of the user is simulated through the mirror server to determine the simulation result.

[0069] For instructions on the user request, please refer to the relevant description in step 310 above.

[0070] The simulation result refers to the feedback result of the mirror server for the simulated user request. For example, the simulation result can be whether the same error as that in the error request log is simulated.

[0071] In some embodiments, the determination module 240 can simulate the user's user request through the mirror server once or multiple times based on the user backup data to determine the simulation result. For example, the determination module 240 can simulate the user's user request through the mirror server once or multiple times based on the user backup data at the same time as when the request error occurs, restore the software environment and data when the user issues the user request (such as logging in to a specific account, handling a specific business), and simulate according to the same operation steps as the user issuing the user request, and determine the request result corresponding to the user request in the mirror server as the simulation result. The number of simulations can be preset according to actual needs, for example, the number of simulations can be 3 times, etc.

[0072] In some embodiments, the determination module 240 can intercept the user's relevant operation data of a preset time period through the mirror server based on the user backup data; configure the software testing environment based on the relevant operation data, and simulate user requests through the mirror server under the software testing environment.

[0073] The preset time period is a preset period of time. In some embodiments, the preset time period may be a period of time including the request time corresponding to the user backup data. For example, the preset time period may be a period of time with the request time corresponding to the user backup data as the end point and 2 minutes or 5 minutes before the request time as the start point.

[0074] In some embodiments, the determination module 240 can determine the preset time period in a variety of ways. For example, the determination module 240 can preset the length of the preset time period according to actual needs. The determination module 240 can determine the starting point and the end point of the preset time period based on the length of the preset time period and the request time corresponding to the user backup data.

[0075] In some embodiments, the determination module 240 may obtain related requests of the user request; and determine a preset time period based on the related requests.

[0076] The related request of the user request refers to other requests that may be related to the error generated by the user request. In some embodiments, the related request of the user request can be determined artificially by the processing personnel.

[0077] In some embodiments, the determination module 240 may obtain a successfully reproduced association request corresponding to the user request; and determine a related request based on the association request.

[0078] The successfully reproduced associated request refers to the request involved when the corresponding user request is successfully reproduced during the historical simulation process. The historical simulation process refers to the process of simulating user requests in historical time. Multiple historical data will be generated during the historical simulation process. The length of the historical time can be set according to time requirements. For example, the historical time is one week, one month, three months from the current time, etc.

[0079] In some embodiments, the determination module 240 may obtain the association request that has been successfully reproduced and the number of times the association request has been successfully reproduced based on historical data of the historical simulation process.

[0080] In some embodiments, the determination module 240 may determine related requests in a variety of ways based on the related requests. For example, in a historical simulation process of a certain user request, the related requests involved in each successful reproduction of the user request are sorted from large to small according to the number of occurrences of the related requests, and the requests with a preset number of requests in the front are determined as related requests. The preset number may be preset manually.

[0081] In some embodiments of the present specification, by determining related requests based on associated requests, the associated requests that appear more times when the historical simulation is successfully reproduced can be determined as related requests. The related requests determined in this way may be more relevant to the cause of the error, making the subsequently determined preset time period more reasonable, so as to conduct more effective simulation tests.

[0082] In some embodiments, the determination module 240 can determine the preset time period based on the relevant request in a variety of ways. For example, the determination module 240 can set the preset time period to end at the request time of the user request, and include the time period of the relevant request as much as possible. The time period that includes the relevant request as much as possible refers to the time period that includes more relevant requests without exceeding the preset time threshold. The preset time threshold is used to limit the maximum time of the preset time period, and can be preset manually.

[0083] In some embodiments of the present specification, by determining a preset time period based on related requests, the preset time period can be set more reasonably. Since related requests of user requests may also lead to errors, including related requests as much as possible when determining the preset time period can improve the success rate of reproducing user requests.

[0084] The user's relevant operation data refers to the data of the software-related operations performed by the user within a preset time period. For example, the relevant operation data may include the data actually input by the user within the preset time period, the relevant operation steps, etc. In some embodiments, the user's relevant operation data can be obtained based on the user's backup data within the corresponding preset time period.

[0085] In some embodiments, the determination module 240 may determine a preset time period corresponding to the user backup data based on the user backup data, and intercept relevant operation data of the user in the preset time period through the mirror server.

[0086] For example, the determination module 240 can automatically determine a preset time period based on the request time corresponding to the user backup data, and intercept the user's relevant operation data of the preset time period through the mirror server at the starting point and the end point of the preset time period. For the application server, the user's operation corresponds to the request of the software, and the mirror server can obtain these requests from the received request log, and intercept the relevant operation data of the user corresponding to the request through the user backup data. For the specific determination method of the preset time period, please refer to the relevant description above.

[0087] The software testing environment is an environment used to test the running status of the software. For example, the software testing environment can be constructed by one or more of computer hardware, software, network equipment, historical data, etc.

[0088] In some embodiments, the determination module 240 can configure the software test environment in a variety of ways based on the relevant operation data, and simulate the user request once or multiple times through the mirror server under the software test environment. For example, the determination module 240 can perform corresponding related operations in sequence according to the order of the relevant operation data based on the relevant operation data to configure the software test environment required for the simulation, and simulate the user request under the software test environment through the mirror server.

[0089] In some embodiments, the determination module 240 may also configure a corresponding software test environment based on a plurality of relevant operation data in a plurality of preset time periods, and perform one or more simulations through the mirror server in the corresponding software test environment. For details, see Figure 5 and related instructions.

[0090] In some embodiments of the present specification, by intercepting relevant operation data of users in a preset time period based on user backup data, configuring a software testing environment based on the relevant operation data, and simulating user requests once or multiple times through a mirror server, the real environment when the user encounters an error can be better restored, thereby improving the success rate of reproducing errors during simulation.

[0091] Step 350: In response to the simulation result satisfying the preset result condition, a first prompt message is pushed to the processing personnel.

[0092] For instructions on handling personnel, see Figure 1 The corresponding description.

[0093] The preset result condition is a condition for determining whether the simulation result successfully reproduces the error. In some embodiments, the preset result condition may be that the number of times the same error as in the error request log appears in multiple simulation results is greater than or equal to 1.

[0094] The first prompt information refers to the relevant information provided to the processing personnel for processing the errors in the above-mentioned error request log. For example, the first prompt information may include the error request log, simulation results, etc.

[0095] In some embodiments, the first prompt information may also include a work order, an error request log, and user backup data. For the error request log and user backup data, please refer to the relevant descriptions of step 320 and step 330 above.

[0096] A work order refers to a simple maintenance or processing plan consisting of one or more operations. In some embodiments, a work order may include relevant information of a user request, user backup data, etc. In some embodiments, in response to the existence of an error request log and when the simulation result meets the preset result condition, the push module 250 may automatically create a work order based on the relevant information of the corresponding user request and the user backup data.

[0097] In some embodiments of the present specification, by providing the first prompt information to the processing personnel, including the work order, the error request log and the user backup data, the processing personnel can have more detailed reference materials for the part where the error occurs, which is convenient for locating the defect and improving the efficiency of handling software defects.

[0098] In some embodiments, in response to the simulation result meeting the preset result condition, the push module 250 can push the first prompt information to the processing personnel in various ways. For example, when the simulation result shows the same error as that in the error request log, the push module 250 can push the first prompt information to the processing personnel through the user terminal. For relevant instructions on the user terminal, see Figure 1 The corresponding description.

[0099] In some embodiments, in response to the simulation result not meeting the preset result condition, the push module 250 can close the processing process. For example, if the simulation is repeated more than a threshold number (such as 3 times) and still fails, and the multiple simulations do not produce the same error as in the error request log, the simulation result does not meet the preset result condition, and the push module 250 can close the processing process and transfer the relevant problem information to offline processing personnel for manual investigation and processing.

[0100] In some embodiments of this specification, based on user backup data with the same request time as the erroneous request, the user request is simulated through the mirror server to obtain the simulation result, which provides strong support for the scenario simulation. It is possible to achieve better scenario reproduction without specific accounts and businesses, and there is no need for processing personnel to reproduce the problem, which can reduce the difficulty and cost of reproducing software defects and improve processing efficiency. When the simulation result meets the preset result conditions, the first prompt information is pushed to the processing personnel, and a work order can be generated in time when the error is successfully reproduced. The processing personnel can handle the software defects based on the more detailed prompt information. When the simulation results of multiple simulations do not meet the preset result conditions, the processing process can be closed and handed over to offline manual investigation to reduce system resource usage.

[0101] Figure 4 is an exemplary flow chart of simulating updated software according to some embodiments of this specification. Figure 4 As shown, the process 400 includes the following steps: In some embodiments, the process 400 may be executed by the determination module 240 and the push module 250 .

[0102] Step 410: receiving the updated software sent by the processing personnel through the mirror server.

[0103] For instructions on mirror servers and processing personnel, please refer to Figure 1 The corresponding description.

[0104] Updated software refers to software after the software defects have been addressed by the processing personnel.

[0105] Step 420, based on the user backup data and the updated software, simulate the user request through the mirror server to determine the update simulation result.

[0106] The update simulation result refers to the simulation result based on the updated software. For example, the update simulation result may be whether the same error request in the error request log appears during the simulation based on the updated software.

[0107] For an explanation of the simulation results, please refer to Figure 3 The corresponding description.

[0108] In some embodiments, the determination module 240 may determine the update simulation result by simulating the user request once or multiple times through the mirror server based on the user backup data and the updated software.

[0109] For example, based on the user backup data, the mirror server can simulate the user's user request once or multiple times on the updated software to restore the situation when the user request occurred, and determine the request result corresponding to the user request in the mirror server as the update simulation result. Some embodiments of how to determine the update simulation result are similar to the embodiments of how to determine the simulation result. For more details, please refer to Figure 3 The corresponding description.

[0110] Step 431: In response to the update simulation result not satisfying the preset update condition, a second prompt message is pushed to the processing personnel.

[0111] The preset update condition is a condition for determining whether the updated software meets the requirements. In some embodiments, the preset update condition may be that the same error as that in the error request log does not appear in the update simulation results of multiple update simulations.

[0112] The second prompt information refers to the relevant information provided to the processing personnel after the simulation of the updated software update. In some embodiments, the second prompt information may include the relevant content included in the first prompt information, and may also include the update simulation results. For example, the second prompt information may include a work order, an error request log, user backup data, simulation results, and update simulation results.

[0113] In some embodiments, a work order is created when the first prompt message is pushed, temporarily closed after the processing personnel update the software, and reopened when the second prompt message is pushed. For instructions on work orders, error request logs, and user backup data, see Figure 3 The corresponding description.

[0114] In some embodiments, in response to the update simulation result not meeting the preset update condition, the push module 250 can push the second prompt information to the processing personnel in a variety of ways. For example, if the same error as that in the error request log appears at least once in multiple update simulations, that is, the update simulation result does not meet the preset update condition, the push module 250 can push the second prompt information to the processing personnel through the user terminal, etc. After receiving the second prompt information, the processing personnel processes and updates the software defects, and then sends the updated software to the mirror server, repeating steps 410 to 420 until the update simulation result meets the preset update condition, and executing step 432.

[0115] Step 432: In response to the update simulation result satisfying the preset update condition, a full regression test is performed based on the updated software.

[0116] Full regression testing refers to the execution and result checking of all test cases for the software. Test cases refer to use cases used for software testing. For example, test cases may include preconditions, use case steps, expected results, etc. In some embodiments, all test cases included in the full regression testing may be preset manually.

[0117] In some embodiments, the determination module 240 may perform a full regression test based on the updated software in response to the update simulation result satisfying the preset update condition. For example, if the same error as that in the error request log does not appear in the update simulation results for multiple times (such as 3 times, 10 times, etc.), it is judged that the update simulation result satisfies the preset update condition, and the determination module 240 may configure the software test environment according to the preconditions of each test case based on the updated software through the mirror server, and automatically perform a full regression test according to the corresponding test case steps.

[0118] In some embodiments, in order to improve the test efficiency, in response to the update simulation result satisfying the preset update condition, the determination module 240 may also perform a selected regression test based on the updated software. Selective regression testing refers to the execution and result checking of some test cases on the software. Some test cases may be selected from all test cases. For example, some test cases from all test cases may be manually selected as the aforementioned partial test cases. In some embodiments, the determination module 240 performs any feasible regression test based on the updated software, and the type of regression test may be set according to actual needs.

[0119] In some embodiments, in response to the full regression test passing, the push module 250 can close the processing process of the current work order. The current work order refers to the work order included in the second prompt information in the above step 431.

[0120] In some embodiments, the push module 250 can determine whether the updated software has passed the full regression test based on the test results of the test cases in the full regression test. For example, if all the test cases used for testing in the full regression test have no errors during the test process, and the test results of each test case are consistent with the corresponding expected results, the updated software can be considered to have passed the full regression test.

[0121] In some embodiments, in response to the updated software passing the full regression test, the push module 250 can close the processing process of the current work order and release the updated version of the software through the application server to fix the software defects.

[0122] In some embodiments of the present specification, simulation is performed based on the updated software to determine whether the update simulation results meet the preset update conditions. When the preset update conditions are not met, a second prompt message is pushed to the processing personnel for processing, the software is updated again, and the above steps are repeated until the update simulation results of the updated software meet the preset update conditions. When the preset update conditions are met, a full regression test is performed on the updated software to ensure that other businesses will not be affected by the software update. If the full regression test is passed, the processing process is closed and the updated software is released. By multiple simulations and updating the software based on simulation results, the risk of missing software defects can be reduced to a low level to ensure the normal use of the software.

[0123] It should be noted that the above description of the process 300 and the process 400 is only for example and explanation, and does not limit the scope of application of this specification. For those skilled in the art, various modifications and changes can be made to the process 300 and the process 400 under the guidance of this specification. However, these modifications and changes are still within the scope of this specification.

[0124] Figure 5 This is an exemplary schematic diagram of simulating a user request of a user through a mirror server according to some embodiments of this specification.

[0125] In some embodiments, the simulation may include multiple simulations, where a simulation such as Figure 5 As shown, the determination module 240 can intercept the first preset time period 510-1 and the user's first relevant operation data 510-2 through the mirror server; configure the first software test environment 520 based on the first relevant operation data 510-2, and simulate the user request 530 through the mirror server under the first software test environment 520 to determine the first simulation result 540; determine whether the first simulation result meets the preset result condition 550; in response to the first simulation result 540 not meeting the preset result condition, determine whether the simulation meets the termination condition 560. In response to the first simulation result 540 meeting the preset result condition, the push module 250 can push the first prompt information to the processing personnel, see Figure 3 Relevant description of step 350.

[0126] In some embodiments, in response to the simulation satisfying the termination condition, the push module 250 can stop the simulation and close the processing process 570; in response to the simulation not satisfying the termination condition, the determination module 240 can intercept the second preset time period 580-1 and the user's second related operation data 580-2 through the mirror server, and use the second preset time period 580-1 and the user's second related operation data 580-2 as the first preset time period and the user's first related operation data for the next simulation, and re-perform the next simulation.

[0127] For instructions on mirror servers, please refer to Figure 1 For more information about simulation, preset result conditions, etc., please refer to Figure 3 The corresponding description.

[0128] In some embodiments, the preset time period may include a first preset time period and a second preset time period, and the second preset time period includes the first preset time period.

[0129] In some embodiments, in order to improve processing efficiency, the first preset time period can usually be set to be shorter.

[0130] In some embodiments, if this simulation is the first of multiple simulations, the first preset time period is the time period that needs to be intercepted for the first time when performing the simulation. If this simulation is not the first of multiple simulations, the first preset time period may be the second preset time period determined in the previous simulation.

[0131] The second preset time period is the time period that needs to be intercepted when the first simulation result does not meet the termination condition. In some embodiments, the second preset time period includes the first preset time period and is longer than the first preset time period. For example, a preset time length can be added before the first preset time period as the second preset time period. For example, if the first preset time period is 5 minutes, 3 minutes can be added before the starting point of the first preset time period, and the end point remains unchanged as the second preset time period. The preset time length can be preset manually. For more information about the preset time period, please refer to Figure 3 The corresponding description.

[0132] The first relevant operation data is relevant operation data of the user corresponding to a first preset time period.

[0133] The second relevant operation data is relevant operation data of the user corresponding to a second preset time period.

[0134] For instructions on relevant operating data, see Figure 3 The corresponding description.

[0135] The first software testing environment refers to a software testing environment configured based on the first relevant operation data. For a description of the software testing environment and how to configure it, see Figure 3 The corresponding description.

[0136] The first simulation result refers to the simulation result based on the first relevant operation data and the first software test environment. For an explanation of the simulation result, see Figure 3 The corresponding description.

[0137] In some embodiments, the determination module 240 can configure a first software test environment based on the first relevant operation data, and simulate a user request through a mirror server under the first software test environment to determine a first simulation result, and determine whether the content of the first simulation result is consistent with the content of the first simulation result. Figure 3 The contents of determining the simulation results in step 340 are similar, and the relevant instructions can be referred to Figure 3 The corresponding description will not be repeated here.

[0138] The termination condition refers to the condition used to determine whether the simulation is terminated. In some embodiments, the termination condition may be: up to this simulation, the number of simulations that do not have the same error as in the error request log exceeds the number threshold. The number threshold may be preset manually. For example, if the number threshold is 3, this simulation is the 4th simulation, and the simulation results of this and the previous 3 times do not have the same error as in the error request log, then the first simulation result satisfies the termination condition.

[0139] In some embodiments, in response to the first simulation result not satisfying the preset result condition, the determination module 240 may determine whether the simulation satisfies the termination condition in a variety of ways. For example, the determination module 240 may determine whether the number of simulations without the same error as in the error request log exceeds a number threshold based on the first simulation result of the current simulation and the historical simulation result record. If so, the simulation is determined to satisfy the termination condition, otherwise, the simulation is determined to not satisfy the termination condition.

[0140] In some embodiments, in response to the simulation satisfying the termination condition, the push module 250 can stop the simulation, close the processing process, and transfer the problem to offline manual processing.

[0141] In some embodiments, in response to the simulation not satisfying the termination condition, the determination module 240 may intercept the second preset time period and the second relevant operation data of the user through the mirror server, and perform the next simulation. For example, the determination module 240 may intercept the second preset time period and the second relevant operation data of the user through the mirror server as the first preset time period and the first relevant operation data of the user for the next simulation, repeat the above steps, and re-perform the next simulation. For the specific simulation process, please refer to the relevant description above.

[0142] In some embodiments of the present specification, by setting a first preset time period in a simulation, a first software testing environment is configured based on first relevant operation data of the user intercepted in the first preset time period, user requests are simulated through a mirror server, a first simulation result is determined, and it is determined whether preset result conditions and termination conditions are met, and whether to continue the simulation. The relevant operation data within a shorter preset time period can be simulated first, and the preset time period can be increased when it cannot be reproduced, thereby improving the efficiency of reproducing erroneous requests. When multiple simulations cannot reproduce the erroneous request, the process is closed in time to save system resources.

[0143] Figure 6 It is a general flow chart of the software defect handling method shown in some embodiments of this specification.

[0144] In some embodiments, Figure 6 As shown, the software defect processing method may include: obtaining the request log of the application server and the user's backup data set, and sending the request log and the backup data set to the mirror server; collecting the error request log in the request log through the mirror server; collecting the user backup data with the same request time as the error request log from the backup data set through the mirror server; based on the user backup data, simulating the user's user request through the mirror server to determine the simulation result.

[0145] When the simulation is successful, that is, when the simulation result meets the preset result conditions, the first prompt information is pushed to the processing personnel. After receiving the first prompt information, the processing personnel updates the software based on the first prompt information and sends it to the mirror server. When the simulation is not successful, that is, when the simulation result does not meet the preset result conditions, the process can be closed, the processing can be ended, and it can be handed over to offline manual processing. For the specific content of the above process, please refer to Figure 3 Relevant instructions for process 300.

[0146] In some embodiments, Figure 6 As shown, the software defect handling method may also include: receiving the updated software sent by the processing personnel through the mirror server; simulating the user request through the mirror server based on the user backup data and the updated software, and determining the update simulation result. When the update simulation result reproduces the wrong request again, that is, when the update result does not meet the preset update condition, a second prompt information is pushed to the processing personnel.

[0147] After receiving the second prompt information, the processing personnel will update the software again based on the second prompt information, and send it to the mirror server to perform the above simulation again. When the update simulation result does not reproduce the error request, that is, when the update result meets the preset update conditions, a full regression test is performed based on the updated software; after the full regression test passes, the processing process can be terminated. For the specific content of the above process, please refer to Figure 4 Relevant instructions for process 400.

[0148] In all the above processes, the number of simulated user requests can be multiple times. For details about one of the multiple simulations, see Figure 5 and its corresponding description.

[0149] In some embodiments of the present specification, the method can simulate user data and user requests to a large extent, and can basically reproduce defects caused by user operations in the production environment without investing personnel to reproduce the problems. It provides a new method for locating defects in the software production environment and can overcome the problem of being unable to use the problematic user account to log in and reproduce the problem.

[0150] Some embodiments of the present specification also provide a computer-readable storage medium, the storage medium storing computer instructions, and when a computer reads the computer instructions in the storage medium, the computer executes the software defect handling method.

[0151] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.

[0152] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this specification, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this specification. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this specification. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.

[0153] Similarly, it should be noted that in order to simplify the description disclosed in this specification and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this specification, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this specification are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.

[0154] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of this specification are approximate values, in specific embodiments, the setting of such numerical values ​​is as accurate as possible within the feasible range.

[0155] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this specification are hereby incorporated by reference in their entirety. Except for application history documents that are inconsistent with or conflicting with the contents of this specification, documents that limit the broadest scope of the claims of this specification (currently or later attached to this specification) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the materials attached to this specification are inconsistent or conflicting with the contents described in this specification, the descriptions, definitions, and / or use of terms in this specification shall prevail.

[0156] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.

Claims

1. A software defect handling method, characterized in that: include: Obtaining a request log of an application server and a backup data set of a user, and sending the request log and the backup data set to a mirror server; Collecting error request logs in the request logs through the mirror server; In response to the mirror server collecting the error request log, collecting user backup data with the same request time as the error request log from the backup data set through the mirror server; Based on the user backup data, simulating a user request of the user through the mirror server to determine a simulation result; The simulating the user request of the user by the mirror server based on the user backup data comprises: Based on the user backup data, the mirror server intercepts the relevant operation data of the user in a preset time period; the preset time period includes a first preset time period and a second preset time period, and the second preset time period includes the first preset time period; the preset time period is determined by: Obtaining related requests of the user request, wherein the related requests are determined in the following manner: Obtain a successfully reproduced association request corresponding to the user request; Determining the related request based on the association request; wherein determining the related request based on the association request includes: In the historical simulation process of the user request, the associated requests involved in each successful reproduction of the user request are sorted from large to small according to the number of occurrences of the associated requests, and a preset number of requests ranked in front are determined as the related requests; Based on the relevant request, determining the preset time period; A software testing environment is configured based on the relevant operation data, and the user request is simulated by the mirror server in the software testing environment; the simulation includes multiple simulations, wherein one simulation includes: intercepting, by the mirror server, first relevant operation data of the user during the first preset time period; configuring a first software testing environment based on the first relevant operation data, and simulating the user request through the mirror server under the first software testing environment to determine a first simulation result; In response to the first simulation result not satisfying a preset result condition, determining whether the simulation satisfies a termination condition; In response to the simulation satisfying the termination condition, stopping the simulation and closing the processing process; and In response to the simulation not satisfying the termination condition, intercepting, through the mirror server, the second relevant operation data of the user in the second preset time period, and performing the next simulation; In response to the simulation result satisfying a preset result condition, a first prompt message is pushed to the processing personnel, wherein the preset result condition is that the number of times the same error as that in the error request log appears in the simulation results is greater than or equal to 1.

2. The method according to claim 1, characterized in that The method further comprises: Receiving the updated software sent by the processing personnel through the mirror server; Based on the user backup data and the updated software, simulating the user request through the mirror server to determine an update simulation result; In response to the update simulation result not satisfying the preset update condition, pushing a second prompt message to the processing personnel; In response to the update simulation result satisfying a preset update condition, a full regression test is performed based on the updated software.

3. The method according to claim 2, characterized in that In response to the full regression test being passed, the processing process is closed.

4. The method according to claim 1, characterized in that The first prompt information includes the work order, the error request log and the user backup data.

5. A software defect handling system, characterized in that: include: An acquisition module is configured to acquire a request log of an application server and a backup data set of a user, and send the request log and the backup data set to a mirror server; A log collection module, configured to collect error request logs in the request logs through the mirror server; A backup collection module, configured to collect user backup data with the same request time as the error request log from the backup data set through the mirror server in response to the mirror server collecting the error request log; The determination module is configured to simulate the user request of the user through the mirror server based on the user backup data and determine the simulation result; the determination module is further configured to: Based on the user backup data, the mirror server intercepts the relevant operation data of the user in a preset time period; the preset time period includes a first preset time period and a second preset time period, and the second preset time period includes the first preset time period; the preset time period is determined by: Obtaining related requests of the user request, wherein the related requests are determined in the following manner: Obtain a successfully reproduced association request corresponding to the user request; Based on the association request, determining the related request; The determining, based on the association request, the related request comprises: In the historical simulation process of the user request, the associated requests involved in each successful reproduction of the user request are sorted from large to small according to the number of occurrences of the associated requests, and a preset number of requests ranked in front are determined as the related requests; Based on the relevant request, determining the preset time period; A software testing environment is configured based on the relevant operation data, and the user request is simulated by the mirror server in the software testing environment; the simulation includes multiple simulations, wherein one simulation includes: intercepting, by the mirror server, first relevant operation data of the user during the first preset time period; configuring a first software testing environment based on the first relevant operation data, and simulating the user request through the mirror server under the first software testing environment to determine a first simulation result; In response to the first simulation result not satisfying a preset result condition, determining whether the simulation satisfies a termination condition; In response to the simulation satisfying the termination condition, stopping the simulation and closing the processing process; and In response to the simulation not satisfying the termination condition, intercepting, through the mirror server, the second relevant operation data of the user in the second preset time period, and performing the next simulation; The push module is configured to push a first prompt message to the processing personnel in response to the simulation result satisfying a preset result condition, wherein the preset result condition is that the number of times the same error as that in the error request log appears in the simulation results is greater than or equal to 1.

6. A computer-readable storage medium, characterized in that: The storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Test process reproduction method and device, electronic equipment and storage medium

    CN116795727A