Testing method and device based on fault injection and computer equipment

A fault injection and fault technology, applied in the computer field, can solve problems such as low accuracy, reduce man-hours and costs, and improve effectiveness

Pending Publication Date: 2021-07-16
AEROSPACE INFORMATION
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] With the widespread application of cloud services, microservices and other technologies, the above two fault injection methods may introduce new data when performing data consistency verification tests on microservice architecture systems, resulting in low test accuracy

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
  • Testing method and device based on fault injection and computer equipment
  • Testing method and device based on fault injection and computer equipment
  • Testing method and device based on fault injection and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046]In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention. In the case of no conflict, the embodiments and the features in the embodiments of the present invention can be combined arbitrarily with each other. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0047] The te...

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 discloses a test method and device based on fault injection and computer equipment, which are used for improving the accuracy of a data consistency test. The method specifically comprises the following steps: determining a test fault type and a fault injection point of a target program, wherein the fault injection point is a program starting position corresponding to a method for interacting with a predetermined database in the target program; determining a target test case from the test case set according to the test fault type; according to the target test case, determining a target byte code from the mapping relation between the test case and the byte code, and inserting the target byte code into the target program at the fault injection point during operation of the target program to obtain a test result of the target program; and comparing the test result with a predetermined data set to verify the consistency of the target program data.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a testing method, device and computer equipment based on fault injection. Background technique [0002] Fault injection is an important technical means for product testing and system verification. It can speed up the testing process by consciously injecting faults into the system. Currently, physical layer fault injection and service layer fault injection are mainly used. When injecting at the physical layer, manual methods such as disconnecting the network, turning off the power supply, and dialing the hard disk are generally used for injection. The method is simple and clear, and it is easy to operate. When the service layer is injected, it is usually injected by closing the service (Tomcat, Monitor). [0003] With the widespread application of technologies such as cloud services and microservices, the above two fault injection methods may introduce new data when performing...

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
CPCG06F11/3688G06F11/3692
Inventor 郝立峰王汉雄
Owner AEROSPACE INFORMATION
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