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

Automatic fault injection and fault detecting method and system

An automatic injection and fault detection technology, applied in software testing/debugging, etc., can solve the problems of unable to inject and detect large-scale program source code faults, cannot fully utilize high error detection capabilities, and consume labor costs, etc., to achieve good test results. Acceleration of errors and high error detection capabilities

Inactive Publication Date: 2014-07-09
BEIJING UNIV OF POSTS & TELECOMM
View PDF1 Cites 12 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
  • Automatic fault injection and fault detecting method and system
  • Automatic fault injection and fault detecting method and system
  • Automatic fault injection and fault detecting method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0020] figure 1 Shows a flowchart of the method for automatic fault injection and fault detection of the present invention.

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

[0022] Step S1: Automatically inject the tested file, analyze and generate multiple fault files.

[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 produce in the real environment.

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

[0025] Reference figure 2 , The specific steps include:

[0026] S11, input the tested file, perform grammatical analysis, lexical analysis and semantic a...

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 method and system for automatic fault injection and fault detection in software testing. Background technique [0002] Fault Injection (Fault Injection) technology, as a special testing technology, usually refers to the generation of faults according to a certain fault model and controllable application to the target system under test 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 determine 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 high error detection capabilities, how to automatically inject large-scale faults, and how to effectively execute a large number of fault files...

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