Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automatic positioning method of software failures in unit test

A software fault, automatic location technology, applied in the field of fault location, can solve the problem of large amount of calculation, not considering the connection of statement nodes, etc., to achieve the effect of improving efficiency, reducing the amount of calculation, and high accuracy

Active Publication Date: 2012-10-03
BEIJING UNIV OF POSTS & TELECOMM
View PDF7 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the main purpose of the present invention is to provide a method for automatically locating software faults in unit tests, to overcome the fact that the existing software fault locating methods take statement nodes as coverage units, have a large amount of calculation and do not take into account the relationship between statement nodes. Link defects, reduce the computational workload of statement analysis, and take into account the logical relationship between statement nodes, improve the efficiency of fault location

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
  • Automatic positioning method of software failures in unit test
  • Automatic positioning method of software failures in unit test
  • Automatic positioning method of software failures in unit test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The method of the present invention will be further described in detail below in conjunction with the drawings and the embodiments of the present invention.

[0046] The method for automatically locating software faults in unit testing of the present invention proposes an automatic locating technology for faults in unit testing based on two execution modes under multi-type coverage, and the two execution modes are considered separately from the perspective of users. For the fully automatic mode, a group of test cases will be executed at the same time, and the more common situation is that once a certain wrong test case is executed, the test is stopped for fault finding. Therefore, the method of the present invention can separately perform two The execution mode automatically locates software faults. Taking the edge on the corresponding control flow graph of the program as the covering unit, the program will fail, and the path execution trajectory will inevitably change. Tw...

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 provides an automatic positioning method of software failures in a unit test. The automatic positioning method comprises the following steps: A. adopting a group of test examples meeting the covering requirements, executing a tested program, and judging whether the executing result of the test examples is identical to an expected result or not; B. analyzing edge information on a path according to an executing path corresponding to each test example and determining a suspicious space formed by edges on the path; C. performing statistics on covering times of the test examples passed or not passed for each edge in the suspicious space and calculating the degree of suspiciousness of each edge under an appointed executing mode; D. calculating the degree of suspiciousness of a node of an adjacent sentence; and E. sequencing failure nodes according to the degree of suspiciousness and mapping orderly to the tested program to generate a failure positioning report to assistant the user to examine the failures. With the adoption of the method provided by the invention, the calculating workload of sentence analysis can be reduced, and the failure positioning efficiency is improved by taking logic relationships among the sentence nodes into consideration.

Description

Technical field [0001] The method relates to a fault location technology in software testing, and more particularly to a method for automatically locating software faults in unit testing. By executing test cases, according to whether the execution results are consistent with the expected test results, faults existing in the software are automatically located. Background technique [0002] Software failure is a dynamic behavior. If a software failure occurs without proper measures to deal with it in time, software failure will occur. Finding and eliminating as many faults as possible in the unit test as early as possible will reduce and avoid wasting too much unworthy time later. [0003] At present, most of the research on software fault location technology is based on whether the execution result is passed, and the program statement is used as the coverage node for statistical analysis. When the program code is large, the calculation amount of sentence analysis is large, which ...

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
IPC IPC(8): G06F11/36
Inventor 王雅文宫云战韩春晓黄俊飞金大海唐容蔡敏
Owner BEIJING UNIV OF POSTS & TELECOMM
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products