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

Method and system for automatic fault injection and fault detection

A technology of automatic injection and fault detection, applied in software testing/debugging and other directions, can solve the problems of inability to inject and detect large-scale program source code faults, inability to give full play to high error detection capabilities, and labor costs, so as to achieve good test results, The effect of speeding up errors and high error detection ability

Inactive Publication Date: 2016-10-26
BEIJING UNIV OF POSTS & TELECOMM
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In current practical applications, fault injection is mostly performed manually or semi-automatically, which consumes a lot of labor costs and the test efficiency is also very low.
Moreover, only small-scale source code fault injection can be performed, and comprehensive source code fault injection and detection for large-scale programs or entire projects cannot be performed, and the high error detection ability of this method cannot be fully utilized

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
  • Method and system for automatic fault injection and fault detection
  • Method and system for automatic fault injection and fault detection
  • Method and system for automatic fault injection and fault detection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0020] figure 1 A flow chart of the method for automatic fault injection and fault detection of the present invention is shown.

[0021] refer to figure 1 , the method for automatic fault injection and fault detection in the embodiment of the present invention includes:

[0022] In step S1, automatic injection is performed on the tested file, and a plurality of fault files are generated after analysis.

[0023] Fault injection is to use fault operators to make minor grammatical changes to the original code under test to simulate various errors that programmers may make in a real environment.

[0024] figure 2 A specific flow chart of step S1 of the method for automatic fault injection and fault detection of the present invention is shown.

[0025] refer to figure 2 , the specific steps include:

[0026] S11, inputting the tested file, performing...

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 relates to an automatic fault injection and fault detecting method and system. The method includes the steps of S1, performing automatic fault injection on a to-be-detected file, and analyzing and generating multiple fault files; S2, respectively processing the fault files to generate multiple executable files; S3, selecting specific case library according to the to-be-detected file, operating the cases in the case library one by one on each executable file to perform fault detection, and calculating fault detecting rate. The method has the advantages that source code fault injection is used, error occurrence can be accelerated, whether faults exists in software or not can be judged, high fault detection capacity is achieved, and good detecting effect of small-probability errors is achieved.

Description

technical field [0001] The invention relates to software testing technology, in particular to a fault automatic injection and fault detection method and system thereof in software testing. Background technique [0002] As a special testing technology, Fault Injection technology usually refers to generating faults according to a certain fault model and applying them to the target system under test in a controlled manner to accelerate the occurrence of errors and failures of the system. Fault detection is to observe and check the response information of the system to the injected error, and judge whether the injected fault is detected. The combination of the two can analyze the error handling, error tolerance and robustness of the target system, and verify and evaluate the system. [0003] Although the fault injection method has a high error detection ability, how to automatically inject large-scale faults, and how to effectively execute a large number of fault files and comp...

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 Patents(China)
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