Automatic testing method and device based on fault simulation, electronic equipment and medium
By defining security levels and subsystems in vehicle equipment, using automated test scripts for random fault injection and testing, and combining chaos theory, the problems of low test efficiency and insufficient coverage in the existing technology are solved, and efficient and accurate fault detection is achieved. Improved system security and reliability.
Patent Information
- Application Number
- CN202410656736.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-10
AI Technical Summary
Existing vehicle equipment fault simulation and automated testing technologies are inefficient and error-prone, cannot fully cover fault scenarios, and cannot effectively utilize chaos testing theory, resulting in limitations in discovering potential system problems.
By defining vehicle safety levels and subsystems, using automated test scripts to perform random fault injection and automated testing at different security levels, combined with chaos theory, the efficiency and accuracy of the automated testing system can be achieved.
It improves the efficiency and accuracy of vehicle equipment fault simulation and automated testing, reduces errors and omissions caused by manual operations, effectively discovers potential problems in the system, and improves the safety and reliability of the system.
Smart Images

Figure CN118626367A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile fault testing, and in particular to an automated testing method, device, electronic equipment and medium based on fault simulation. Background Art
[0002] With the development of automobile intelligence, the complexity of vehicle equipment is getting higher and higher, and the requirements for system reliability and stability are also getting higher and higher. However, various faults may occur in vehicle equipment during operation, which will not only affect the normal operation of the vehicle, but also bring potential safety hazards. Therefore, it is very necessary to simulate and automate the fault testing of vehicle equipment. Chaos testing is an emerging testing technology that simulates complex system behavior by introducing randomness to discover potential problems in the system.
[0003] Existing vehicle equipment fault simulation and automated testing technologies are mainly carried out manually, that is, various faults are simulated through manual operation, and then the system response is observed to judge the reliability and stability of the system. In addition, there are some automated testing tools that can perform automated testing by writing test scripts.
[0004] There are some problems and shortcomings in the existing vehicle equipment fault simulation and automated testing technologies. First, the manual operation method is inefficient and error-prone, and cannot fully cover all fault scenarios. Second, although existing automated testing tools can perform automated testing, they usually require a lot of configuration work, and they may not be able to accurately simulate complex system behaviors. Finally, existing testing technologies usually cannot effectively utilize chaos testing theory, which makes them limited in discovering potential problems in the system. Summary of the invention
[0005] The purpose of the present application is to provide an automated testing method, device, electronic device and medium based on fault simulation, which can solve at least one of the technical problems mentioned above.
[0006] The specific plan is as follows:
[0007] According to a specific implementation of the present application, in a first aspect, the present application provides an automated testing method based on fault simulation, comprising:
[0008] Define several different vehicle safety levels;
[0009] Define the multiple vehicle subsystems that require automated testing;
[0010] Based on the automated test scripts, random faults are injected into the vehicle subsystems that need to perform automated tests at different vehicle safety levels.
[0011] Based on the automated test scripts, perform automated testing on vehicle subsystems that require automated testing;
[0012] Observe and verify test results at each vehicle safety level;
[0013] Based on the verified vehicle safety level and automated test scripts, each vehicle subsystem is automatically tested.
[0014] Optionally, the rating system consists of a benchmark system and a target system.
[0015] Optionally, the perturbation system is a subsystem outside the rating system.
[0016] Optionally, based on the automated test script, random faults are injected into the vehicle subsystems that need to perform automated testing at different vehicle safety levels, including:
[0017] Based on the disturbance system, random faults are injected into the vehicle subsystems respectively.
[0018] Optionally, the injected random faults include different fault types, including: random electrical signals, random non-target functional fault signals, and continuous non-target functional fault signals.
[0019] Optionally, based on the disturbance system, random faults are injected into the vehicle subsystems separately, including:
[0020] Based on the disturbance system, random faults matching the current vehicle safety level are injected into the vehicle subsystems.
[0021] Optionally, observe and verify the test results at each vehicle safety level, including:
[0022] If vehicle equipment can work normally under a certain security level, it is deemed that the vehicle equipment has reached that security level.
[0023] According to a specific implementation of the present application, in a second aspect, the present application further provides an automated testing device based on fault simulation, comprising:
[0024] A level definition module, used to define multiple different vehicle safety levels;
[0025] Subsystem definition module, used to define multiple vehicle subsystems that need to perform automated testing;
[0026] A random injection module is used to inject random faults into vehicle subsystems that need to perform automated testing at different vehicle safety levels based on automated test scripts;
[0027] A first test module is used to perform automated testing on a vehicle subsystem that needs to be automated based on an automated testing script;
[0028] Verification module, used to observe and verify the test results at various vehicle safety levels;
[0029] The second test module is used to perform automated testing on various vehicle subsystems based on the verified vehicle safety level and automated test scripts.
[0030] According to the specific implementation of the present application, in a third aspect, the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described above.
[0031] According to the specific implementation of the present application, in a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method described above is implemented.
[0032] Compared with the prior art, the above solution of the embodiment of the present application has at least the following beneficial effects:
[0033] The present invention utilizes chaos theory to perform random fault injection in each subsystem, effectively utilizes chaos testing theory to discover potential problems of the system, reduces errors and omissions caused by manual operation, and improves the efficiency and accuracy of vehicle equipment fault simulation and automated testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of an automated testing method based on fault simulation provided by the first embodiment of the present application is shown;
[0035] Figure 2 A structural diagram of a fault injection automatic test system provided by a first embodiment of the present application is shown;
[0036] Figure 3 A flowchart of an automated testing method based on fault simulation provided by the second embodiment of the present application is shown;
[0037] Figure 4 A structural diagram of an automated testing device based on fault simulation provided in the third embodiment of the present application is shown;
[0038] Figure 5 A schematic diagram of the structure of a computer system of an electronic device provided in a fourth embodiment of the present application is shown. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0040] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0041] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0042] It should be understood that although the terms first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0043] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0044] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0045] It should be particularly noted that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.
[0046] First embodiment
[0047] Figure 1 The flowchart of the automatic testing method based on fault simulation provided by the first embodiment of the present application is shown as an example. Figure 1 ,The automated testing method based on fault simulation includes the following steps:
[0048] S11, define multiple different vehicle safety levels.
[0049] S12, define multiple vehicle subsystems that need to perform automated testing.
[0050] S13, based on the automated test script, random faults are injected into the vehicle subsystems that need to perform automated testing at different vehicle safety levels.
[0051] S14, based on the automated test script, performing automated testing on the vehicle subsystems that require automated testing.
[0052] S15, observe and verify the test results at each vehicle safety level.
[0053] S16, based on the verified vehicle safety level and automated test scripts, performs automated testing on each vehicle subsystem.
[0054] At the beginning of the execution of the method provided in this embodiment, several vehicle safety levels are first defined. Without loss of generality, the vehicle safety levels used in the test process are defined as: PA, PB, PC, PD...
[0055] PA is defined as a normal system; PB is defined as a higher rating in which the system functions are stuck, the system functions start up with a delay, and the system is normal; PC is defined as a medium security level, in which some system functions cannot be used, but the system can automatically restart normally; PD is defined as a lower security level, in which the system crashes, some system functions cannot be used and cannot be restarted; the security level decreases as the letter goes up.
[0056] Then, define the subsystems for running the test method provided in this embodiment. These subsystems may include: M1, M2, M3... For example, the M1 subsystem is the air conditioning subsystem of the vehicle, the M2 subsystem is the power subsystem of the vehicle, and the M3 subsystem is the electronic control subsystem of the vehicle.
[0057] It is understandable that a vehicle safety level may include one or more services. Since each service corresponds to a corresponding subsystem, different vehicle safety levels may be considered as a collection of different subsystems. For example:
[0058]
[0059] PB=PA+{P2}=PA+{M3,M4}
[0060] PC=PB+{P3,P4}=PB+{M5,M6,M7}
[0061] The rating system can be composed of a benchmark system and a target system. The lower the rating, the more central the current system is.
[0062] The perturbation system is a subsystem outside the rating system, such as:
[0063] TA=M-PA={M3,M4,M5,M6,M7}=TB+{M3,M4}
[0064]
[0065]
[0066] The disturbance system can be composed of a micro-disturbance system and a strong disturbance system. Simply put, a subsystem that has little impact on the normal operation of the current subsystem and causes little damage is a micro-disturbance system; a subsystem that has a great impact on the normal operation of the current subsystem and causes great damage is a strong disturbance system.
[0067] Once the vehicle safety levels and subsystems have been defined, random fault injection can begin.
[0068] It should be noted that in the embodiment of the present application, the injection of random faults is based on the fault injection of the automatic test script. The advantage of the fault injection based on the automatic test script is that the injection process is more automated and more efficient.
[0069] In addition, the random fault injection performed is corresponding to the current vehicle safety level. Above a specific vehicle safety level, only the random fault injection corresponding to it can be performed. For example, above the vehicle safety level PA, the random fault injection corresponding to the vehicle safety level PB cannot be performed.
[0070] Moreover, the random fault injection mentioned above is performed based on the disturbance system. For example, to perform random fault injection on the vehicle safety level PA, the disturbance system corresponding to the vehicle safety level PA should be obtained first, and then the corresponding random fault injection should be performed based on the obtained disturbance system. It can be seen that in the example given above, the disturbance systems corresponding to the vehicle safety level PA are: M3, M4, M5, M6, and M7.
[0071] After the injection of random faults is completed, automated testing is performed based on the automated testing script.
[0072] It should be noted that the execution of automated testing is also completed based on automated testing scripts.
[0073] After the automated test is completed, the test results are verified. Typically, if a subsystem can work normally under a certain vehicle safety level, it is considered that the subsystem has reached the vehicle safety level.
[0074] Analyze the possible failures of a single subsystem, there are the following situations:
[0075] 1. System shutdown;
[0076] 2. Issue electrical fault codes;
[0077] 3. Send out signal fault code;
[0078] 4. System data is damaged;
[0079] 5. The signal does not respond for a long time.
[0080] According to the frequency of failure, there are one-time, occasional, intermittent and continuous, and continuous. It can be judged whether the subsystem can work normally under the safety level of the vehicle.
[0081] After completing the verification of the test results, you can start automated testing. During the testing process, we only need to define the test objectives and processes once, and then the automated testing program will complete all the testing work.
[0082] Figure 2 The overall architecture of the fault injection automatic test system provided by this embodiment is shown. Figure 2 ,The fault injection automatic testing system is divided into several modules of subsystem management, service management, rating management, use case management and report management.
[0083] In the execution process of the automatic testing method based on fault simulation provided in this embodiment, each step is Figure 2 The various functional modules of the fault injection automatic test system shown actually correspond one to one.
[0084] The automated testing method based on fault simulation provided in this embodiment introduces chaos theory, and implements an automated testing system by defining a test target and process once, thereby reducing repetitive work and improving test efficiency and accuracy.
[0085] Second embodiment
[0086] Figure 3 The flowchart of the automatic testing method based on fault simulation provided by the second embodiment of the present application is shown as an example. Figure 3 ,The automated testing method based on fault simulation includes the following steps:
[0087] S31, the highest rated test case.
[0088] S32, obtaining a strong interference system.
[0089] S33, execute the strong disturbance system fault injection script.
[0090] S34, monitor whether the target system is normal. If the target system is normal, execute S35; if the target system is abnormal, execute S37.
[0091] S35, whether there is a next rating test case, if yes, execute S36, if not, the process ends.
[0092] S36, obtaining the next rating test case.
[0093] S37, monitor whether the target system returns to normal, if yes, execute S35, if not, execute S38.
[0094] S38, obtain the current rating.
[0095] In this embodiment, the test case with the current highest rating is first obtained.
[0096] Then, the strong disturbance system with the current highest evaluation is obtained. The disturbance system includes the perturbation system and the strong disturbance system. Selecting the strong disturbance system means that when executing the test of the relevant use case, the disturbance intensity of the injected fault is relatively large. The reason for this choice is mainly to consider the robustness of the test system.
[0097] After obtaining the interference system, execute the fault injection script of the interference system, and perform related tests according to the randomly injected faults.
[0098] After executing the above tests, check whether the target system is normal. If the target system is running normally, obtain the next test case with the same system rating. If the next test case cannot be obtained, the test process ends.
[0099] If it is detected that the target system is not running normally, wait for a certain period of time and then monitor whether the target system returns to normal. If the target system returns to normal within the specified time, the above test process is performed normally, otherwise, the test process ends.
[0100] This embodiment simulates various possible fault conditions by randomly injecting faults into vehicle equipment to improve the efficiency and accuracy of vehicle equipment fault simulation; performs fault injection and testing in an automated manner to reduce errors and omissions caused by manual operations and improve test efficiency and accuracy; uses chaos testing theory to conduct in-depth testing and analysis of the system to discover potential problems in the system and improve the safety and reliability of the system; defines the vehicle safety level and tests it in sequence from low to high until the system becomes unusable, thereby determining the safety level of the system; and defines a test goal and process once to implement an automated test system, reduce repetitive work, and improve test efficiency and accuracy.
[0101] Third embodiment
[0102] Figure 4 The structure diagram of the automatic testing device based on fault simulation provided by this embodiment is shown as an example. Figure 4 The automatic testing device based on fault simulation includes: a level definition module 41, a subsystem definition module 42, a random injection module 43, a first test module 44, a verification module 45, and a second test module 46.
[0103] The level definition module 41 is used to define a plurality of different vehicle safety levels.
[0104] The subsystem definition module 42 is used to define a plurality of vehicle subsystems that need to perform automated testing.
[0105] The random injection module 43 is used to inject random faults into vehicle subsystems that need to perform automated testing based on automated testing scripts at different vehicle safety levels.
[0106] The first test module 44 is used to perform automated testing on the vehicle subsystems that require automated testing based on automated testing scripts.
[0107] The verification module 45 is used to observe and verify the test results at various vehicle safety levels.
[0108] The second test module 46 is used to perform automated testing on each vehicle subsystem based on a verified vehicle safety level and automated test scripts.
[0109] Optionally, the rating system consists of a benchmark system and a target system.
[0110] Optionally, the perturbation system is a subsystem outside the rating system.
[0111] Optionally, the random injection module 43 is specifically used for:
[0112] Based on the disturbance system, random faults are injected into the vehicle subsystems respectively.
[0113] Optionally, the injected random faults include different fault types, including: random electrical signals, random non-target functional fault signals, and continuous non-target functional fault signals.
[0114] Optionally, based on the disturbance system, random faults are injected into the vehicle subsystems separately, including:
[0115] Based on the disturbance system, random faults matching the current vehicle safety level are injected into the vehicle subsystems.
[0116] Optionally, the verification module 45 is specifically used for:
[0117] If vehicle equipment can work normally under a certain security level, it is deemed that the vehicle equipment has reached that security level.
[0118] Fourth embodiment
[0119] Figure 5 is a schematic diagram of the structure of a computer system of an electronic device according to an exemplary embodiment of the present application. It should be noted that: Figure 5 The computer system 5 of the electronic device is only an example and does not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0120] like Figure 5 , the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, ROM 502 and RAM 503 are connected to each other through a bus. The input / output (I / O) interface 505 is also connected to the bus 504.
[0121] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0122] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the device of the present application are executed.
[0123] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0124] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] In the corresponding drawings of the above embodiments, connecting lines may indicate the connection relationship between the various components to indicate more constituent signal paths and / or one or more ends of some lines may have arrows to indicate the main information flow direction. Connecting lines, as a mark, are not a limitation to the scheme itself, but the use of these lines in combination with one or more exemplary embodiments helps to connect circuits or logic units more easily. Any represented signal (determined by design requirements or preferences) may actually include one or more signals that can be transmitted in either direction and implemented with any appropriate type of signal scheme.
[0126] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0127] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0128] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0129] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0130] It should be noted that the present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0131] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0132] Finally, it should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0133] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An automated testing method based on fault simulation, characterized in that: include: Define several different vehicle safety levels; Define the multiple vehicle subsystems that require automated testing; Based on the automated test scripts, random faults are injected into the vehicle subsystems that need to perform automated tests at different vehicle safety levels. Based on the automated test scripts, perform automated testing on vehicle subsystems that require automated testing; Observe and verify test results at each vehicle safety level; Based on the verified vehicle safety level and automated test scripts, each vehicle subsystem is automatically tested.
2. The method according to claim 1, characterized in that The rating system consists of a benchmark system and a target system.
3. The method according to claim 1, characterized in that: The perturbation system is a subsystem outside the rating system.
4. The method according to claim 3, characterized in that Based on the automated test scripts, random faults are injected into the vehicle subsystems that need to perform automated tests at different vehicle safety levels, including: Based on the disturbance system, random faults are injected into the vehicle subsystems respectively.
5. The method according to claim 4, characterized in that The injected random faults include different fault types, including: random electrical signals, random non-target functional fault signals, and continuous non-target functional fault signals.
6. The method according to claim 4, characterized in that Based on the disturbance system, random faults are injected into the vehicle subsystems, including: Based on the disturbance system, random faults matching the current vehicle safety level are injected into the vehicle subsystems.
7. The method according to claim 1, characterized in that Observe and verify test results at each vehicle safety level, including: If vehicle equipment can work normally under a certain security level, it is deemed that the vehicle equipment has reached that security level.
8. An automated testing device based on fault simulation, characterized in that: include: A level definition module, used to define multiple different vehicle safety levels; Subsystem definition module, used to define multiple vehicle subsystems that need to perform automated testing; A random injection module is used to inject random faults into vehicle subsystems that need to perform automated testing at different vehicle safety levels based on automated test scripts; The first test module is used to inject random faults into vehicle subsystems that need to perform automated testing at different vehicle safety levels based on automated test scripts; Verification module, used to observe and verify the test results at various vehicle safety levels; The second test module is used to perform automated testing on various vehicle subsystems based on the verified vehicle safety level and automated test scripts.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
