A software defect reclassification method, device and medium

By obtaining attribute information of software defects for natural language processing, extracting keywords, and matching according to preset rules, the problem of inaccurate reclassification of software defects in the existing technology is solved, and accurate description and automated processing of defects are achieved.

CN118394634BActive Publication Date: 2024-10-22INSPUR GENERSOFT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410463212.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-10-22
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

Existing software defect reclassification schemes cannot accurately describe defects, increase manual workload, and the accuracy of classification results cannot be guaranteed.

Method used

By responding to the trigger action of defect reclassification, the attribute information of the software defect is obtained, natural language processing is performed to extract defect keywords, and matching is performed according to the preset reclassification rules to determine the priority and severity of the defect and adopt the longest matching strategy. Reclassify.

Benefits of technology

It achieves an accurate description of software defects, facilitates priority processing of defects with serious impact, reduces the workload of manual reclassification, and improves the accuracy and automation of reclassification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394634B_ABST
    Figure CN118394634B_ABST
Patent Text Reader

Abstract

The present invention discloses a software defect reclassification method, device and medium, which belongs to the field of software development technology and is used to solve the technical problem that the existing defect reclassification scheme cannot accurately describe software defects. The method includes: in response to the triggering action of defect reclassification, obtaining the attribute information of the software defect and determining the attribute expression form; if the attribute expression form is text, performing natural language processing on the attribute information of the software defect, extracting the defect keywords corresponding to the software defect; obtaining preset defect reclassification rules; matching the defect keywords with the defect reclassification rules, and determining the priority level and severity level corresponding to the software defect according to the matching results. The present invention realizes accurate description of software defects through the above-mentioned reclassification method, provides business accuracy guarantee for defect reclassification, and reduces the workload of manual reclassification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software development, and in particular to a method, device and medium for reclassifying software defects. Background Art

[0002] During large-scale software development, a large number of software defects will be generated through manual testing or automated testing. These defects will be added, opened, resolved, closed, rejected, and reopened in a cycle as the product is iterated. In this process, the severity and handling priority of the defects are the two most important attributes, which will directly determine the efficiency of defect resolution and product stability.

[0003] Reclassification of software defects means re-assigning severity and priority levels if the initial manual classification of defects is inaccurate. Currently, software defect reclassification is generally a completely manual operation, that is, after feedback from R&D personnel, testers re-analyze the defects, re-assign severity and priority levels based on the impact of the defects on the business and customers, and then return them to R&D personnel for correction. This reclassification scheme not only increases manual workload, but also cannot guarantee the accuracy of the classification results, that is, it cannot accurately describe software defects. Summary of the invention

[0004] The present invention provides a software defect reclassification method, device and medium, which are used to solve the following technical problem: the existing defect reclassification scheme cannot accurately describe the software defects.

[0005] The present invention adopts the following technical solutions:

[0006] In a first aspect, the present invention provides a method for reclassifying software defects, the method comprising: in response to a triggering action for defect reclassification, obtaining attribute information of the software defect and determining an attribute expression form; if the attribute expression form is text, performing natural language processing on the attribute information of the software defect, and extracting defect keywords corresponding to the software defect; obtaining preset defect reclassification rules; matching the defect keywords with the defect reclassification rules, and determining the priority level and severity level corresponding to the software defect based on the matching results.

[0007] In a possible implementation of the present invention, the triggering action of defect reclassification includes: manually clicking a reclassification button and polling for newly registered software defects.

[0008] In a possible implementation of the present invention, after acquiring the attribute information of the software defect and determining the attribute expression form, the method further includes: if the attribute expression form is an image, performing text extraction and / or text recognition processing on the image to change the attribute expression form into text.

[0009] In a possible implementation of the present invention, natural language processing is performed on the attribute information of the software defect to extract defect keywords corresponding to the software defect, including: segmenting the attribute information of the software defect according to punctuation marks and / or pause words; segmenting the segmented attribute information; and extracting the defect keywords from the segmentation results.

[0010] In a possible implementation of the present invention, the attribute information of the software defect includes at least any one of: defect description, reproduction steps, discussion, solution description, problem category, system information, acceptance conditions, technology stack, defect source, function menu and found version.

[0011] In a possible implementation of the present invention, the preset defect reclassification rules include: software defects that cause system downtime and / or data loss are reclassified as level one defects and severe defects; software defects that cause core functions to be unusable and / or cannot be stably reproduced, resulting in product unavailability are reclassified as level two defects and medium defects; software defects that cause problems with secondary functions and affect product availability are reclassified as level three defects and general defects.

[0012] In a possible implementation of the present invention, the defect keywords and the defect reclassification rules are matched, including: adopting the longest match strategy to match the defect keywords and the defect reclassification rules; if the defect keyword hits only one of the defect reclassification rules, the priority level and severity level in the hit rule are determined as the priority level and severity level of the software defect; if the defect keyword hits at least two of the defect reclassification rules, the highest priority level and the highest severity level in the hit rule are determined as the priority level and severity level of the software defect.

[0013] In a possible implementation of the present invention, after the defect keyword and the defect reclassification rule are matched using the longest match strategy, the method further includes: if the defect keyword does not hit the defect reclassification rule, discarding the current software defect, or adding the defect reclassification rule and then rematching.

[0014] In a second aspect, the present invention also provides a software defect reclassification device, the device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor so that the at least one processor can execute, in response to a triggering action for defect reclassification, obtaining attribute information of the software defect and determining an attribute expression form; if the attribute expression form is text, performing natural language processing on the attribute information of the software defect, extracting defect keywords corresponding to the software defect; obtaining preset defect reclassification rules; matching the defect keywords with the defect reclassification rules, and determining the priority and severity level corresponding to the software defect based on the matching results.

[0015] In a third aspect, the present invention further provides a non-volatile computer storage medium having computer executable instructions stored thereon, wherein the computer executable instructions are configured to execute, in response to a triggering action of defect reclassification, obtaining attribute information of a software defect and determining an attribute expression form; if the attribute expression form is text, performing natural language processing on the attribute information of the software defect, extracting defect keywords corresponding to the software defect; obtaining preset defect reclassification rules; matching the defect keywords with the defect reclassification rules, and determining the priority and severity level corresponding to the software defect based on the matching results.

[0016] The present invention provides a method, device and medium for reclassifying software defects, which have the following beneficial effects:

[0017] The present invention extracts keywords of software defects, constructs defect reclassification rules, and uses the longest matching principle to reclassify defects, thereby determining the severity and priority of software defects, which can accurately describe software defects, facilitate priority processing of defects with serious impacts, and maximize the allocation of research and development resources. At the same time, the preset reclassification rules can provide business accuracy guarantees for defect reclassification, reduce the workload of manual reclassification, and realize the automation and intelligence of reclassification. The experimental simulation results show that with the improvement of the accuracy of the reclassification rules, the final reclassification results can achieve commercially viable results. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0019] Figure 1A flow chart of a software defect reclassification method provided by the present invention;

[0020] Figure 2 A schematic diagram of a preset defect reclassification rule provided by the present invention;

[0021] Figure 3 A schematic diagram of the structure of a software defect reclassification device provided by the present invention. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0023] The method of the present invention is described in detail below with reference to the accompanying drawings.

[0024] Figure 1 A flowchart of a software defect reclassification method provided by the present invention is as follows: Figure 1 As shown, the defect reclassification method in the present invention at least includes the following execution steps:

[0025] Step 101: In response to a triggering action of defect reclassification, attribute information of a software defect is obtained and an attribute representation form is determined.

[0026] When the present invention reclassifies software defects, there will be a predetermined trigger mechanism. In one example, defect reclassification is triggered manually or automatically. For example, a reclassification button can be manually clicked, or a scheduled task can be set to regularly poll newly registered software defects for reclassification.

[0027] After the defect reclassification is triggered, the attribute information of the software defect is obtained. In an example, the attribute information here includes defect description, reproduction steps, discussion, solution description, problem category, system information, acceptance conditions, technology stack, defect source, function menu, found version, etc. Among them, the first five types of information are useful for reclassification. Most of this information is expressed in natural language or function screenshots, that is, the attribute expression is text or image.

[0028] Step 102: If the attribute is in text form, natural language processing is performed on the attribute information of the software defect to extract defect keywords corresponding to the software defect.

[0029] When the acquired attribute information of the software defect is a text description, natural language processing is performed on the attribute information, and defect keywords corresponding to the current software defect are extracted through natural language processing technology.

[0030] In a possible implementation of the present invention, the process of performing natural language processing on attribute information may include word segmentation, word segmentation, and keyword extraction techniques. Specifically, the attribute information of the software defect is first segmented according to punctuation marks and / or pause words to complete the word segmentation process, and then the segmented attribute information is segmented, and finally the defect keywords are extracted from the word segmentation results. It should be noted that the natural language processing techniques such as word segmentation, word segmentation, and keyword extraction used here can all be implemented through existing algorithms or methods, and the present invention will not elaborate on them here.

[0031] It should also be noted that the defect keywords extracted here are used to reclassify software defects, so these keywords are generally words that describe the defect form or problem, that is, they actually have some corresponding relationship with the attribute information obtained above.

[0032] Step 103: Obtain preset defect reclassification rules.

[0033] When reclassifying software defects, the present invention will preset defect reclassification rules in advance. These rules may be manually customized based on experience. In an example, the defect reclassification rules are a manually maintained rule base in the form of P->Q, which include security issues, data loss - first-level defects; xx error prompts, system freezes, spinning in circles, unequal results - second-level defects; interface buttons, colors, unclear prompts - third-level defects, etc.

[0034] In one possible implementation of the present invention, the preset defect reclassification rules include: software defects that cause system downtime and / or data loss are reclassified as level one defects and severe defects; software defects that cause core functions to be unusable and / or cannot be stably reproduced, resulting in product unavailability are reclassified as level two defects and medium defects; software defects that cause problems with secondary functions and affect product availability are reclassified as level three defects and general defects.

[0035] Figure 2 A schematic diagram of a preset defect reclassification rule provided by the present invention. Figure 2 In addition to the above rules, an exemplary display is also provided. For example, the data is not visible on the foreground after the document is saved, which corresponds to a first-level defect; incorrect calculation results after the document is submitted correspond to a second-level defect; changes in the interface after the document is reviewed correspond to a third-level defect.

[0036] Step 104: Match the defect keywords with the defect reclassification rules, and determine the priority and severity level corresponding to the software defect according to the matching results.

[0037] After determining the defect keywords corresponding to the current software defect and presetting the defect reclassification rules, the defect reclassification process can be carried out.

[0038] In a possible implementation of the present invention, by matching defect keywords with defect reclassification rules, a longest matching strategy is adopted during matching, that is, a rule that maximally contains defect keywords is regarded as hitting the rule, thereby obtaining a matching result.

[0039] Furthermore, the defect is handled differently according to the different matching results. Specifically: if the defect keyword hits only one of the defect reclassification rules, the priority and severity level in the hit rule are determined as the priority and severity level of the software defect; if the defect keyword hits at least two of the defect reclassification rules, the highest priority and highest severity level in the hit rule are determined as the priority and severity level of the software defect; if the defect keyword does not hit the defect reclassification rule, the current software defect is discarded and the next defect is polled, or a new defect reclassification rule is added and rematched. That is, if the defect keyword hits multiple reclassification rules (more than one) at the same time, the rule with the highest severity level is taken as the reclassification result. If the rule is not hit, a specific conclusion is output to guide subsequent manual modification or addition of new rules, or the defect is discarded.

[0040] Finally, the reclassification results are output. The output results here are the severity and priority levels corresponding to the software defects, so that subsequent personnel can handle the defects according to the reclassification results, thereby maximizing the allocation of R&D resources.

[0041] Based on the same inventive concept, the present invention also provides a software defect reclassification device, the structure of which is as follows: Figure 3 shown.

[0042] Figure 3 The schematic diagram of the structure of a software defect reclassification device provided by the present invention is as follows. Figure 3 As shown, the software defect reclassification device 300 in the present invention specifically includes: at least one processor 301; and a memory 303 that is communicatively connected to the at least one processor 301 (connected via a bus 302); wherein the memory 303 stores instructions that can be executed by the at least one processor 301, so that the at least one processor 301 can execute a software defect reclassification method as described in the above embodiment.

[0043] In one possible implementation of the present invention, the aforementioned processor is used to execute, in response to a triggering action of defect reclassification, obtaining attribute information of the software defect and determining the attribute expression form; if the attribute expression form is text, performing natural language processing on the attribute information of the software defect to extract defect keywords corresponding to the software defect; obtaining preset defect reclassification rules; matching the defect keywords with the defect reclassification rules, and determining the priority level and severity level corresponding to the software defect based on the matching results.

[0044] In addition, the present invention further provides a non-volatile computer storage medium on which computer executable instructions are stored, and the computer executable instructions are configured to execute a software defect reclassification method as described in the above embodiment.

[0045] In one possible implementation of the present invention, the aforementioned computer executable instructions are configured to execute, in response to a triggering action of defect reclassification, obtaining attribute information of the software defect and determining an attribute expression form; if the attribute expression form is text, performing natural language processing on the attribute information of the software defect to extract defect keywords corresponding to the software defect; obtaining preset defect reclassification rules; matching the defect keywords with the defect reclassification rules, and determining the priority level and severity level corresponding to the software defect based on the matching results.

[0046] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0047] The system and medium provided by the present invention correspond one-to-one to the method, and therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.

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

[0049] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0050] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0051] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0052] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0053] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0054] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0055] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0056] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A software defect reclassification method, characterized in that: The method comprises: In response to a triggering action of defect reclassification, obtaining attribute information of the software defect and determining an attribute representation form; If the attribute is in the form of text, natural language processing is performed on the attribute information of the software defect to extract defect keywords corresponding to the software defect, including: segmenting the attribute information of the software defect according to punctuation marks and / or pause words, segmenting the segmented attribute information, and extracting the defect keywords from the segmentation results, wherein the attribute information of the software defect includes at least any one of defect description, reproduction steps, discussion, solution description, problem category, system information, acceptance conditions, technology stack, defect source, function menu, and found version; Obtain preset defect reclassification rules, including: software defects that cause system downtime and / or data loss are reclassified as level 1 defects and severe defects; software defects that cause core functions to be unusable and / or cannot be stably reproduced, resulting in product unavailability are reclassified as level 2 defects and medium defects; software defects that cause problems with secondary functions and affect product availability are reclassified as level 3 defects and general defects; Matching the defect keyword with the defect reclassification rule includes: using the longest match strategy to match the defect keyword with the defect reclassification rule, if the defect keyword only hits one of the defect reclassification rules, then determining the priority level and severity level in the hit rule as the priority level and severity level of the software defect, if the defect keyword hits at least two of the defect reclassification rules, then determining the highest priority level and the highest severity level in the hit rule as the priority level and severity level of the software defect; The priority level and severity level corresponding to the software defect are determined according to the matching result.

2. A software defect reclassification method according to claim 1, characterized in that: The triggering actions of defect reclassification include: manually clicking a reclassification button and polling newly registered software defects.

3. A software defect reclassification method according to claim 1, characterized in that: After obtaining the attribute information of the software defect and determining the attribute expression form, the method further includes: If the attribute expression form is an image, text extraction and / or text recognition processing is performed on the image to change the attribute expression form into text.

4. A software defect reclassification method according to claim 1, characterized in that: After matching the defect keywords with the defect reclassification rules using the longest matching strategy, the method further includes: If the defect keyword does not match the defect reclassification rule, the current software defect is discarded, or the defect reclassification rule is added and then rematched.

5. A software defect reclassification device, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, so that the at least one processor can execute the software defect reclassification method according to any one of claims 1 to 4.

6. A non-volatile computer storage medium having computer executable instructions stored thereon, characterized in that: The computer executable instructions are configured to execute a software defect reclassification method as described in any one of claims 1 to 4.