Interface-oriented automatic test method for software fault injection

A technology for automated testing and software failure, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems that are not suitable for software testing, improve testability and reusability, and reduce design difficulty , Improve the effect of versatility and ease of use

Inactive Publication Date: 2017-11-21
中国船舶工业综合技术经济研究院
View PDF4 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The research on cross-link interface fault injection is mainly based on hardware-based technology, while the hardware-based cross-link interface fault injection is injected at the electrical layer, mainly for hardware system testing, not suitable for software testing

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
  • Interface-oriented automatic test method for software fault injection
  • Interface-oriented automatic test method for software fault injection
  • Interface-oriented automatic test method for software fault injection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The invention proposes an interface-oriented software fault injection automatic testing method, which can realize the automatic testing of interface fault injection. First obtain the cross-link interface relationship, communication behavior, and protocol data, then design the fault injection operator and model the test case, automatically generate the test case in XML format on the basis of this model, and finally automatically generate the test case in C++ language based on XSLT The test script calls the windows SDK to automatically generate and execute the test program, and realizes the result collection through the Windows pipeline technology.

[0047] Specific embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0048] figure 1 A flow chart of an interface-oriented software fault injection automated testing method is given, and the specific process is as follows:

[0049] The first step is to model the cross...

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 interface-oriented automatic test method for software fault injection, and aims at realizing the automatic test of interface fault injection. The method comprises the following steps of: firstly carrying out cross-linkage interface modeling, communication behavior modeling and protocol data modeling; designing a fault injection operator and carrying out test case modeling; automatically generating an XML-format test case on the basis of the model; and finally automatically generating the test case into a test script of C++ language on the basis of XSLT, calling windows SDK to automatically generate a test program and automatically executing the test program, realizing result collection through a Windows pipeline technology, and evaluating the test result so as to complete the fault injection test of the whole cross-linkage interface. According to the method, universality and usability realized by an interface fault injection test tool are effectively improved, the interface test efficiency is improved and the test cost is reduced.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to an interface-oriented software fault injection automatic testing method. Background technique [0002] Fault injection technology adopts the method of artificially introducing faults into the target system to accelerate the failure of the system, and evaluates the reliability of the system by observing the behavior of the system after a fault occurs. At present, fault injection can be divided into four categories from the technical realization: hardware-based technology, software-based technology, simulation-based technology and ion radiation technology. [0003] Software-based technologies include program mutation testing technology, module or component fault injection technology, software cross-link interface fault injection technology and system operating environment fault injection technology. Among them, environmental fault injection refers to the fault injection t...

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/36
CPCG06F11/3684
Inventor 吴立金张凯韩新宇唐龙利
Owner 中国船舶工业综合技术经济研究院
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