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

Black box fault injection method and system and medium device

A fault and black box technology, applied in the direction of instrumentation, error detection/correction, calculation, etc., can solve the problem of demanding SUT of the platform under test and achieve the effect of fast and efficient detection and guaranteed coverage

Active Publication Date: 2021-02-23
NANJING UNIV
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Furthermore, this method has many problems in practical application, such as event filtering and security detection, etc., and the requirements of the test platform SUT are relatively strict

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
  • Black box fault injection method and system and medium device
  • Black box fault injection method and system and medium device
  • Black box fault injection method and system and medium device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] A black box injection method for dealing with potential faults of the platform to be tested according to Embodiment 1 of the present invention, such as figure 1 shown, including the following steps:

[0063] Step S100, tracking the service calling path of the platform under test.

[0064] As an implementable manner, step S100 includes the following steps:

[0065] Track the business call path of the platform to be tested, and then pass the call chain traced by the platform to be tested for processing, and extract the call chain information.

[0066] Step S200, generating or perfecting a corresponding business architecture diagram according to the business calling path and the extracted information.

[0067] As an implementable manner, step S200 includes the following steps:

[0068] The business in the business call path is mapped to the corresponding point in the business architecture diagram of the platform under test, and the call relationship is mapped to the ed...

Embodiment 2

[0084] Set the complete internal business architecture of the platform to be tested as follows: figure 2 shown. Denote the crash failure of node m as Crash(n), and the information loss failure between node m and n as Omit(m-n).

[0085] (1) if diagram 2-1 As shown, trace the first call chain:

[0086] L1:A1-B1-D1-F1

[0087] Explore the four nodes A1, B1, D1, and F1, and the corresponding three edges;

[0088] The set of failure modes returned is:

[0089] F1={Omit(A1-B1)&Omit(B1-D1)&Omit(D1-F1)}.

[0090] (2) if Figure 2-2 As shown, F1 is injected into the platform under test, the test result is SUCCESS, and the second call chain is traced:

[0091] L2:A1-B2-D1-F2

[0092] Detect two nodes, B2 and F2, and three edges;

[0093] The set of failure modes returned is:

[0094] F2=F1&{Omit(A1-B2)&Omit(B2-D1)&Omit(D1-F2)}

[0095] (3) if Figure 2-3 As shown, F2 is injected into the platform under test, the test result is SUCCESS, and the third call chain is traced: ...

Embodiment 3

[0143] In this embodiment, the specific process of sorting optimization in steps S300 and S500 in the first embodiment is given.

[0144] In Embodiment 2, the present invention explores a complete service path system structure of the system to be tested (such as figure 2 shown), the paths are optimized and sorted, and the corresponding fault scenarios to be injected are designed for each sorted path.

[0145] After using the LDFI (Linear Discriminant Analysis, linear discriminant analysis) method to explore the complete business architecture of the platform to be tested, the set of all paths P of the platform to be tested can be obtained, as shown in Table 1:

[0146] Table 1:

[0147]

[0148] As shown in Table 1, the platform to be tested has a total of 40 paths.

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 black box fault injection method, system and media equipment. The injection method includes the following steps: tracking the service calling path of the platform to be tested; generating or improving the corresponding business architecture diagram according to the business calling path and the extracted information; Test the fault scenarios and inject them into the platform under test for testing; on the basis of exploring the complete architecture of the system under test, optimize and sort the paths, and then generate corresponding fault scenarios for each path. It quickly and efficiently detects potential faults of the SUT platform under test and guarantees a certain coverage.

Description

technical field [0001] The invention relates to the field of computer testing, and is a black-box fault injection method, system and media device based on a service call path that can be applied to system fault tolerance evaluation. [0002] technical background [0003] Fault Insertion Test (FIT) is an effective and useful technique for evaluating system platform reliability. The principle of this method is to inject a specific fault into the platform under test (Software UnderTesting, SUT), and monitor the response of the SUT of the platform under test, so as to observe whether the behavior of the SUT in the face of such a fault conforms to expected. [0004] However, in actual scenarios, the platform under test SUT itself may have defects (bugs), for example, errors may occur when two components work together, resulting in the failure of the SUT to provide services normally. These hidden defects (bugs) are often difficult to find, will only be triggered under certain con...

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
CPCG06F11/3688
Inventor 聂长海张文茜尹震
Owner NANJING UNIV
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