CN108829576A - A kind of software defect detection method and its detection system - Google Patents

A kind of software defect detection method and its detection system Download PDF

Info

Publication number
CN108829576A
CN108829576A CN201810382114.5A CN201810382114A CN108829576A CN 108829576 A CN108829576 A CN 108829576A CN 201810382114 A CN201810382114 A CN 201810382114A CN 108829576 A CN108829576 A CN 108829576A
Authority
CN
China
Prior art keywords
defect
software
type
coding
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810382114.5A
Other languages
Chinese (zh)
Inventor
张得佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wenzhou Polytechnic
Original Assignee
Wenzhou Polytechnic
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wenzhou Polytechnic filed Critical Wenzhou Polytechnic
Priority to CN201810382114.5A priority Critical patent/CN108829576A/en
Publication of CN108829576A publication Critical patent/CN108829576A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3608Software analysis for verifying properties of programs using formal methods, e.g. model checking, abstract interpretation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of software defect detection method and its detection systems.It is related to software defect detection technique field.Including S000:Timing scan software source code;S001:Inspection software source code whether there is defect;If it exists, then S002 is executed;If it is not, then executing S000;S002:Judge defect type;If major defect type, then S005 is executed;If coding defect type, then S004 is executed;S003:Judge whether it is wrong report defect;If so, executing S004;If it is not, then executing S005;S004:Not display defect;S005:Display defect.The present invention by defect type judgment module distinguishes major defect type and encodes defect type and by the type of coding defect type judgment module refinement coding defect, improve defect type from discovery to the efficiency of processing and the convenience of defect management.

Description

A kind of software defect detection method and its detection system
Technical field
The invention belongs to software defect detection technique fields, more particularly to a kind of software defect detection method and its detection System.
Background technique
Software defect (Defect) is usually called Bug again.In so-called software defect, as computer software or program The problem of existing certain destroys normal operation ability, mistake, or hiding functional defect.The presence of defect will lead to software Product is not able to satisfy the needs of user to a certain extent.IEEE729-1983 has the definition of a standard to defect:From product Inside sees that defect is the various problems such as mistake present in Software Development or maintenance process, defect;Outside product, Defect is the failure for certain function of realizing required for system or violates.
Seriousness and priority are two key factors of characterization software test defect, it influences the statistics knot of software defect The priority of fruit and corrective pitting, especially in the later period of software test, whether will affect software can issue on schedule.
For software test beginner, or the not Test Engineer of Experiences in Developing Software, it is general for the two The understanding of thought is not thorough for what their effect and processing mode often understood, is unable to Correct in actual test work The seriousness and priority of defect.This will affect the quality of software deficiency report, be unfavorable for handling serious software defect as early as possible, It may influence the processing opportunity of software defect.
This invention address that a kind of software defect detection method and its detection system are invented, for solving software defect process The middle software defect according to different severity levels generates different reports.
Summary of the invention
The purpose of the present invention is to provide a kind of software defect detection method and its detection systems, by first using defect class Type judgment module judges whether defect is major defect type, then judges defect type using coding defect type judgment module Classification confirms coding defect type confirmation display result finally by contrast module and to the processing of software defect, solves existing Have different software defects to be uniformly processed causes the efficiency of defect processing to reduce the problem of cannot but protruding major defect with report.
In order to solve the above technical problems, the present invention is achieved by the following technical solutions:
The present invention is a kind of software defect detection method, including
S000:Timing scan software source code;
S001:Inspection software source code whether there is defect;If it exists, then S002 is executed;If it is not, then executing S000;
S002:Judge defect type;If major defect type, then S005 is executed;If coding defect type, then execute S004;
S003:Judge whether it is wrong report defect;If so, executing S004;If it is not, then executing S005;
S004:Not display defect;
S005:Display defect.
Preferably, inspection software source code is detected with the presence or absence of defect using software defect dictionary-based learning in S001 Algorithm.
Preferably, major defect type is to seriously affect the defect of software or operation platform in S002;The major defect It detects and is shown to user, for guaranteeing the normal operation of software and operation platform.
Preferably, wrong report defect is judged whether it is in S003, and detailed process is as follows:
T000:Confirmation coding defect type type;
T001:Same location same type is judged whether it is according to coding site into prescribed coding defect type library and encodes defect; If so then execute T002;If otherwise executing T003;
T002:Not display defect;
T003:Judge whether it is different location same type coding defect;If so then execute T004;If it is not, then executing T005;
T004:Not display defect and isocoding defect list add software defect address;
T005:Display defect.
A kind of software defect detection system, including
Scan module is used for timing scan designated software source code;
Detection module is used for inspection software source code defect;
Defect type judgment module, for distinguishing major defect type and coding defect type;
Defect type judgment module is encoded, for judging the classification of coding defect defect;
Contrast module, software defect for will test and the coding defect pair in corresponding coding defect type list Than confirming identical coding defect type;
Memory module, for storing defect record, including each coding defect type list;
Display module, for showing software defect.
Preferably, software defect detection algorithm dictionary-based learning is used in the detection module.
Preferably, the scan module is integrated with timer.
Preferably, corresponding coding defect type is stored in the coding defect type list.
The invention has the advantages that:
1, the present invention distinguishes major defect type and coding defect type by defect type judgment module and passes through coding The type of defect type judgment module refinement coding defect, improves the efficiency and defect from discovery to processing of defect type The convenience of management;
2, the software defect that the present invention will test by contrast module and the corresponding volume encoded in defect type list Code Defect Comparison confirms identical coding defect type, so that whether the software defect that confirmation detects is wrong report defect, and then keeps away Exempt to repeat same type defect simultaneously to store using coding defect type list convenient for processing and management, improves software defect and solve Efficiency.
Certainly, it implements any of the products of the present invention and does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will be described below to embodiment required Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow chart of software defect detection method of the invention;
Fig. 2 is the flow chart that wrong report defect is judged whether it is in S003;
Fig. 3 is a kind of structural schematic diagram of software defect detection system of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other Embodiment shall fall within the protection scope of the present invention.
Refering to Figure 1, the present invention is a kind of software defect detection method, including
S000:Timing scan software source code;
S001:Inspection software source code whether there is defect;If it exists, then S002 is executed;If it is not, then executing S000;
S002:Judge defect type;If major defect type, then S005 is executed;If coding defect type, then execute S004;
S003:Judge whether it is wrong report defect;If so, executing S004;If it is not, then executing S005;
S004:Not display defect;
S005:Display defect.
Wherein, inspection software source code is calculated with the presence or absence of defect using software defect dictionary-based learning detection in S001 Method.
Wherein, major defect type is to seriously affect the defect of software or operation platform in S002;Major defect detects It is shown to user, for guaranteeing the normal operation of software and operation platform.
Wherein, wrong report defect is judged whether it is in S003, and detailed process is as follows:
T000:Confirmation coding defect type type;
T001:Same location same type is judged whether it is according to coding site into prescribed coding defect type library and encodes defect; If so then execute T002;If otherwise executing T003;
T002:Not display defect;
T003:Judge whether it is different location same type coding defect;If so then execute T004;If it is not, then executing T005;
T004:Not display defect and isocoding defect list add software defect address;
T005:Display defect.
A kind of software defect detection system, including
Scan module is used for timing scan designated software source code;
Detection module is used for inspection software source code defect;
Defect type judgment module, for distinguishing major defect type and coding defect type;
Defect type judgment module is encoded, for judging the classification of coding defect defect;
Contrast module, software defect for will test and the coding defect pair in corresponding coding defect type list Than confirming identical coding defect type;
Memory module, for storing defect record, including each coding defect type list;
Display module, for showing software defect.
Wherein, software defect detection algorithm dictionary-based learning is used in detection module.
Wherein, scan module is integrated with timer.
Wherein, it encodes in defect type list and stores corresponding coding defect type.
It is worth noting that, included each unit is only drawn according to function logic in the above system embodiment Point, but be not limited to the above division, as long as corresponding functions can be realized;In addition, each functional unit is specific Title is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
In addition, those of ordinary skill in the art will appreciate that realizing all or part of the steps in the various embodiments described above method It is that relevant hardware can be instructed to complete by program.
Present invention disclosed above preferred embodiment is only intended to help to illustrate the present invention.There is no detailed for preferred embodiment All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification, It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to better explain the present invention Principle and practical application, so that skilled artisan be enable to better understand and utilize the present invention.The present invention is only It is limited by claims and its full scope and equivalent.

Claims (8)

1. a kind of software defect detection method, which is characterized in that including
S000:Timing scan software source code;
S001:Inspection software source code whether there is defect;If it exists, then S002 is executed;If it is not, then executing S000;
S002:Judge defect type;If major defect type, then S005 is executed;If coding defect type, then execute S004;
S003:Judge whether it is wrong report defect;If so, executing S004;If it is not, then executing S005;
S004:Not display defect;
S005:Display defect.
2. a kind of software defect detection method according to claim 1 and its detection system, which is characterized in that examined in S001 It surveys software source code and uses software defect detection algorithm dictionary-based learning with the presence or absence of defect.
3. a kind of software defect detection method according to claim 1 and its detection system, which is characterized in that tight in S002 Weight defect type is the defect for seriously affecting software or operation platform;The major defect, which detects, is shown to user, is used for Guarantee the normal operation of software and operation platform.
4. a kind of software defect detection method according to claim 1 and its detection system, which is characterized in that sentence in S003 Whether disconnected be that detailed process is as follows for wrong report defect:
T000:Confirmation coding defect type type;
T001:Same location same type is judged whether it is according to coding site into prescribed coding defect type library and encodes defect;If Then execute T002;If otherwise executing T003;
T002:Not display defect;
T003:Judge whether it is different location same type coding defect;If so then execute T004;If it is not, then executing T005;
T004:Not display defect and isocoding defect list add software defect address;
T005:Display defect.
5. a kind of software defect detection system as described in claim 1-4, which is characterized in that including
Scan module is used for timing scan designated software source code;
Detection module is used for inspection software source code defect;
Defect type judgment module, for distinguishing major defect type and coding defect type;
Defect type judgment module is encoded, for judging the classification of coding defect defect;
Contrast module, the software defect for will test and the coding Defect Comparison in corresponding coding defect type list are true Recognize identical coding defect type;
Memory module, for storing defect record, including each coding defect type list;
Display module, for showing software defect.
6. a kind of software defect detection system according to shown in claim 5, which is characterized in that use base in the detection module In the software defect detection algorithm of dictionary learning.
7. a kind of software defect detection system according to claim 5, which is characterized in that the scan module is integrated with fixed When device.
8. a kind of software defect detection system according to claim 5, which is characterized in that the coding defect type list It is middle to store corresponding coding defect type.
CN201810382114.5A 2018-04-14 2018-04-14 A kind of software defect detection method and its detection system Pending CN108829576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810382114.5A CN108829576A (en) 2018-04-14 2018-04-14 A kind of software defect detection method and its detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810382114.5A CN108829576A (en) 2018-04-14 2018-04-14 A kind of software defect detection method and its detection system

Publications (1)

Publication Number Publication Date
CN108829576A true CN108829576A (en) 2018-11-16

Family

ID=64155631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810382114.5A Pending CN108829576A (en) 2018-04-14 2018-04-14 A kind of software defect detection method and its detection system

Country Status (1)

Country Link
CN (1) CN108829576A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111837109A (en) * 2019-11-22 2020-10-27 深圳海付移通科技有限公司 Code quality and defect analysis method, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591774A (en) * 2011-12-28 2012-07-18 深圳天源迪科信息技术股份有限公司 Method for determinating severity levels of software defects
CN103970657A (en) * 2014-05-09 2014-08-06 中国联合网络通信集团有限公司 Software defect detection method and device
CN107688527A (en) * 2016-08-05 2018-02-13 华为技术有限公司 Defect display methods and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591774A (en) * 2011-12-28 2012-07-18 深圳天源迪科信息技术股份有限公司 Method for determinating severity levels of software defects
CN103970657A (en) * 2014-05-09 2014-08-06 中国联合网络通信集团有限公司 Software defect detection method and device
CN107688527A (en) * 2016-08-05 2018-02-13 华为技术有限公司 Defect display methods and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111837109A (en) * 2019-11-22 2020-10-27 深圳海付移通科技有限公司 Code quality and defect analysis method, server and storage medium
WO2021097824A1 (en) * 2019-11-22 2021-05-27 深圳海付移通科技有限公司 Code quality and defect analysis method, server and storage medium

Similar Documents

Publication Publication Date Title
US11599408B2 (en) Technology system auto-recovery and optimality engine and techniques
US9830252B2 (en) System, method and non-transitory computer readable medium for software testing
KR101606289B1 (en) Programmable controller
CN102541756A (en) Cache memory system
CN112084110B (en) Data processing method, device, equipment and storage medium
CN102135925B (en) Method and device for detecting error check and correcting memory
US20190385081A1 (en) Anomaly detection model selection and validity for time series data
CN105933176B (en) A kind of method and device detecting Host Status
CN111159029B (en) Automated testing method, apparatus, electronic device and computer readable storage medium
CN108829576A (en) A kind of software defect detection method and its detection system
CN103137227B (en) The software common mode failure detection system of nuclear power station security level DCS and control method thereof
CN114721862B (en) Watchdog circuit with signal checking function and working method thereof
CN108519950A (en) Terminal, the fault detection method of application software and its device and readable storage medium storing program for executing
CN104809038B (en) FIFO exception handling method and device
KR101740666B1 (en) Method for operating cyber security evaluation managemental system
CN105068937A (en) Unit test method of Linux kernel module
CN109658487A (en) A kind of real-time rendering device optimization method and system
CN216749321U (en) Dead pixel self-detection device and chip
KR102269335B1 (en) Apparatus and method for verifying suitability of code algorithm implementation in real time operating system
Roongruangsuwan et al. Test case reduction methods by using CBR
CN109933448B (en) Method and device for predicting fault of nonvolatile storage medium
JP2015109535A (en) Communication apparatus and error response level switching method
CN115250225A (en) Network health monitoring method, device and medium based on fault domain detection
CN107608891A (en) Data handling utility detection method based on instruction
CN112653599A (en) Interface error information reporting method, system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116