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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com