Code method-level software defect positioning method

A software defect and positioning method technology, applied in software testing/debugging, generation of response errors, instruments, etc., can solve problems such as negative effects, loss of semantic information, loss of text sequence information, etc., to achieve high accuracy and reduce code The number of rows and the effect of excellent performance

Active Publication Date: 2020-06-19
YANGZHOU UNIV
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, current studies of this kind regard defect reports and source code files as "word packages". Although the semantics of the same word is often similar in defect reports and codes, only focusing on the degree of similarity between the two words will cause problems. The sequential information of the text is lost, resulting in the loss of part of the semantic information, which has a negative impact on the effect of defect localization

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code method-level software defect positioning method
  • Code method-level software defect positioning method
  • Code method-level software defect positioning method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0053] In one embodiment, combined with figure 1 , the present invention proposes a method for locating software defects at the code method level, the method comprising the following steps:

[0054] Step 1, build and train a seq2seq (sequence-to-sequence) model;

[0055] Step 2, constructing a defect localization model based on the seq2seq model;

[0056] Step 3, constructing training samples for the defect localization model;

[0057] Step 4, using the training samples to train the defect localization model;

[0058] Step 5, using the trained defect localization model...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a code method-level software defect positioning method, which belongs to the field of software maintenance, and comprises the following steps of: constructing and training a seq2seq model; constructing a defect positioning model based on the seq2seq model; constructing a training sample of the defect positioning model; training a defect positioning model by using the training sample; and predicting the defect method in the defect report by utilizing the trained defect positioning model. According to the method provided by the invention, historical data and a deep learning technology are combined to train a defect positioning model; according to the method, a seq2seq model is utilized to determine parameters of a code encoder in the defect positioning model, code method annotation is used as supervision information, the information amount is rich, the purpose of positioning software defects on the method level is well achieved, and the software defect repairing efficiency can be greatly improved.

Description

technical field [0001] The invention belongs to the field of software maintenance, in particular to a method for locating software defects at the code method level. Background technique [0002] During the development process, defects are unavoidable. In the traditional development process, when a software tester or software user discovers a defect, they will write a defect report in the defect tracking management system to inform the software development and maintenance personnel. The defect report records the reporting time, severity, abnormal program performance and details of how to reproduce the software defect. Software developers and maintainers need to manually determine the defect location based on the submitted defect report to fix the defect. In the actual defect repair process, repairers often spend a lot of time in the link of defect location. [0003] With the development of the software industry, software functions become more and more complex, and the numb...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F11/07G06F16/35
CPCG06F11/366G06F11/3684G06F11/3688G06F11/079G06F16/35Y02P90/30
Inventor 李斌陈天浩孙小兵倪珍
Owner YANGZHOU UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products