Method, device and equipment for constructing automated test sequence of auxiliary driving system and medium

By dividing the logical test cases of the advanced assisted driving system into functional modules and building a modular library, an automated test sequence is quickly built, and the problem of inefficient automation testing in the existing technology is solved, and efficient test case generation and construction is achieved.

CN119311589APending Publication Date: 2025-01-14SINO TRUK JINAN POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411424606.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The lack of effective and fast automated simulation test user construction methods in the prior art has led to inefficient testing of advanced assisted driving systems.

Method used

By obtaining the logical test cases of the assisted driving system, dividing them into several functional modules, building a modular library, and using these modules to build an automated test sequence, selecting a generalization method to generate specific test cases, and achieving rapid construction of the automated test sequence.

Benefits of technology

Through modular testing steps and generalization to generate specific test cases, the time to build automated test sequences is significantly saved and the testing efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311589A_ABST
    Figure CN119311589A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device, equipment and a medium for constructing an automatic test sequence of an auxiliary driving system, and belongs to the technical field of automatic testing of the auxiliary driving system.The method comprises the following steps that a logic test case of the auxiliary driving system is obtained and divided into a plurality of function modules; building a modular library required by testing for each functional module; building an automatic test sequence of the logic test case by using the modular library of each functional module; and running and debugging the automatic test sequence, selecting a generalization mode of the logic test case, and generating a specific test case. According to the method, the test steps are decomposed into a series of modules, the modular library is established, and the logic test cases are modularly listed, so that the method is rapid and convenient; according to the method, the automatic test sequence of the logic case is established, and the time is saved and the establishment efficiency of the automatic test sequence is improved through one-key generalization of the logic case into the specific test case.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Simulation testing refers to testing that simulates the actual usage environment of software or systems and configures the software or system to the actual usage state. Hardware-in-the-loop testing is a simulation technology that connects a real controller to a simulated controlled object and system operating environment.

[0003] At present, advanced driver assistance systems are increasingly widely used in commercial vehicles. Automatic emergency braking, adaptive cruise control, lane keeping assist, lane departure warning, throttle prevention, and front vehicle start warning functions are increasingly common on various types of trucks. In order to improve the added value and R&D level of their own vehicles, commercial vehicle manufacturers usually independently develop advanced driver assistance systems, and after the R&D is completed, a large amount of testing is required. In the testing of advanced driver assistance systems, simulation testing is essential, especially hardware-in-the-loop testing.

[0004] Due to the heavy testing tasks, short testing time and frequent regression testing of vehicle advanced driver assistance systems, traditional manual testing methods can no longer meet the needs, so automated testing has emerged. However, there are large differences between advanced driver assistance systems of different manufacturers, and building and debugging automated test scripts requires a lot of time and resources. At present, the industry lacks an effective and fast method for building automated simulation test users, resulting in low testing efficiency of advanced driver assistance systems.

[0005] This is a shortcoming of the prior art. Therefore, in view of the above-mentioned defects in the prior art, it is very necessary to provide a method, device, equipment and medium for building an automated test sequence for an assisted driving system. Summary of the invention

[0006] In view of the lack of effective and fast automated simulation test user construction method in the current industry, which leads to low testing efficiency of advanced driver assistance systems, the present invention provides a method, device, equipment and medium for building an automated test sequence for an assisted driving system to solve the above technical problems.

[0007] In a first aspect, the present invention provides a method for building an automated test sequence for an assisted driving system, comprising the following steps: S1. Obtain the logic test cases of the assisted driving system and divide the logic test cases into several functional modules; S2. Build a modular library required for testing for each functional module; S3. Use the modular library of each functional module to build an automated test sequence of logical test cases; S4. Run and debug the automated test sequence, select the generalization method of the logical test case, and generate specific test cases. Furthermore, the specific steps of step S1 are as follows: S11. Conduct demand analysis based on the functional requirements and performance requirements of the advanced driver assistance system and determine the test objectives and test scope; S12. Design test scenarios and test conditions according to test objectives and test scope, determine test objectives and expected results, and obtain logical test cases; S13. Divide the logic test user into several functional modules according to functional requirements.

[0008] Furthermore, the functional modules include a power module, a scene module, a vehicle initialization module, a target vehicle creation module, an automatic emergency braking module, an adaptive cruise module, a lane keeping assist module, a lane departure warning module, a front vehicle warning module and a signal acquisition module.

[0009] Furthermore, the specific steps of step S2 are as follows: S21. Determine the functions required for each functional module in the test; S22. Build a modular library required for testing for each functional module based on the functions required in the test.

[0010] Furthermore, the specific steps of step S3 are as follows: S31. Determine the execution order of each functional module and complete the initialization of the automated test sequence; S32. Determine the test steps for each functional module, perform signal acquisition, turn on the function switch, check the functional module, set the functional module, trigger the functional module, end signal acquisition, select the signal; S33. Determine the reset order of each functional module in the reverse order of execution of the automated test sequence initialization; S34. Integrate the initialization of each functional module, the execution of the test steps of each functional module, and the reset of each functional module to obtain an automated test sequence of the logic test case.

[0011] Furthermore, the specific steps of step S4 are as follows: S41. Execute automated test sequences of logical test cases; S42. Generalize the parameters in the logic test case and determine the specific values ​​of the parameters; S43. Generalize the test scenarios in the logic test cases and determine the specific test scenarios; S44. According to the initialization of each functional module, in a specific test scenario, use the specific value of the parameter and execute the test steps of each functional module, and then reset each functional module to obtain a specific test case.

[0012] Furthermore, the parameters in the test case in step S42 include the speed, distance and position data of the host vehicle and the target vehicle.

[0013] In a second aspect, the present invention provides a device for building an automated test sequence for an assisted driving system, comprising: A logic test case division unit, used to obtain logic test cases of the assisted driving system and divide the logic test cases into several functional modules; Modular library building unit, used to build the modular library required for testing for each functional module; An automated test case building unit, used to build an automated test sequence of logic test cases using the modular library of each functional module; The specific test case generation unit is used to run and debug the automated test sequence, select the generalization method of the logic test case, and generate specific test cases.

[0014] In a third aspect, the present invention provides an electronic device, including a processor and a memory; The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes the method described in the first aspect above.

[0015] In a fourth aspect, the present invention provides a storage medium, The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.

[0016] The beneficial effects of the present invention are: The method, device, equipment and medium for building an automated test sequence for an assisted driving system provided by the present invention establish a modular library by decomposing the test steps into a series of modules, and modularly list the logical test cases, which is quick and convenient; an automated test sequence for logical cases is built, and the automated test sequence is generalized into specific test cases with one click, which saves time and improves the efficiency of building an automated test sequence.

[0017] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 It is a flow chart of an embodiment of a method for building an automated test sequence for an assisted driving system of the present invention.

[0020] Figure 2 It is a flow chart of another embodiment of the method for building an automated test sequence for an assisted driving system of the present invention.

[0021] Figure 3 It is a schematic diagram of a device for building an automated test sequence for an assisted driving system according to the present invention. DETAILED DESCRIPTION

[0022] The method for building an automated test sequence for an assisted driving system can be applied to one or more electronic devices, wherein the electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a programmable gate array (FPGA), a digital processor (DSP), an embedded device, etc.

[0023] An electronic device may be any electronic product that can interact with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), an interactive network television (IPTV), etc. The network in which the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] See also Figure 1 The figure shows a method for building an automated test sequence for an assisted driving system in a specific implementation, which includes the following steps: S1. Obtain the logic test cases of the assisted driving system and divide the logic test cases into several functional modules; S2. Build a modular library required for testing for each functional module; S3. Use the modular library of each functional module to build an automated test sequence of logical test cases; S4. Run and debug the automated test sequence, select the generalization method of the logical test case, and generate specific test cases.

[0026] In this embodiment, Figure 2 As shown, the specific steps of step S1 are as follows: S11. Conduct demand analysis based on the functional requirements and performance requirements of the advanced driver assistance system and determine the test objectives and test scope; S12. Design test scenarios and test conditions according to test objectives and test scope, determine test objectives and expected results, and obtain logical test cases; S13. Divide the logic test user into several functional modules according to functional requirements; The functional modules include a power module, a scene module, a vehicle initialization module, a target vehicle creation module, an automatic emergency braking module, an adaptive cruise module, a lane keeping assist module, a lane departure warning module, a front vehicle warning module and a signal acquisition module; The specific steps of step S2 are as follows: S21. Determine the functions required for each functional module in the test; S22. Build a modular library required for testing for each functional module according to the functions required in the test; The modular library of the power module includes normal power, signal conditioning power, 30 power, and 15 power, which are packaged into one power module. The four parameters represent four power variables. Setting it to 1 means power on, and setting it to 0 means power off. The modular library of scene modules includes loading scenes, unloading scenes, rain scenes, snow scenes, fog scenes, etc. The vehicle initialization module includes a reset module, a vehicle initial position setting module, and a vehicle speed setting module; The modular library for creating target vehicle modules includes creating target vehicle, target vehicle initial position setting module, target vehicle speed setting module, distance trigger module, speed change module, lane change module, etc. The modular library of the automatic emergency braking module includes AEB switch, AEB status check module, collision warning level check module, TTC check module, and distance check module between the vehicle and the vehicle in front. The modular library of the adaptive cruise module includes CC switch, CC cruise speed setting, ACC switch, distance following mode setting module, ACC status check module, vehicle speed check module, vehicle distance check module, distance alarm check module, etc. The modular library of the lane keeping assist module includes LKA switch, LKA status check module, hands-off alarm check module, takeover request check module, hands-off probability setting module, hands-off torque setting module, etc. The modular library of the lane departure warning module includes LDW switch, check LDW status module, check left warning module, check right warning module, steering wheel left deviation module, steering wheel right deviation module, etc. The modular library of the signal acquisition module includes a signal acquisition start module, a signal acquisition end module, and a signal selection module; The specific steps of step S3 are as follows: S31. Determine the execution order of each functional module and complete the initialization of the automated test sequence; Initialization is performed in the order of power-on, scene loading, reset, own vehicle initial position setting, target vehicle creation, target vehicle initial position setting, target vehicle speed setting, own vehicle speed setting; For example, initialization can also be performed in the following nine steps: The test bench is powered on, the system is reset, the traffic scene is loaded, the initial position of the vehicle is set, the target vehicle is created, the initial position of the target vehicle is set, the initial speed of the target vehicle is set, the initial speed of the vehicle is set, and the system is reset; S32. Determine the test steps for each functional module, perform signal acquisition, turn on the function switch, check the functional module, set the functional module, trigger the functional module, end signal acquisition, select the signal; The test steps can also be performed in the following five steps: signal acquisition starts, AEB switch is turned on, AEB switch status is detected, signal acquisition ends, and signal acquisition selects display signals; S33. Determine the reset order of each functional module in the reverse order of execution of the automated test sequence initialization; The execution order of reset is system reset, turning off the AEB switch, setting the vehicle speed to two, setting the target vehicle speed to zero, returning the target vehicle to the initial position, setting the initial position of the vehicle, uninstalling the scene by uninstalling the traffic scene software, and powering off the test bench; S34. Integrate the initialization of each functional module, the test step execution of each functional module, and the reset of each functional module to obtain an automated test sequence of logical test cases; The specific steps of step S4 are as follows: S41. Execute automated test sequences of logical test cases; S42. Generalize the parameters in the logic test case and determine the specific values ​​of the parameters; the parameters in the test case include the speed, distance and position data of the vehicle and the target vehicle; For example, a logical test case that ACC cuts into: It is a straight road with six lanes in both directions. The vehicle is cruising at a speed of a km / h. In the left lane, a target car is driving at a constant speed of b km / h. When the distance between the two cars is c meters, the target car on the left cuts into the lane at a speed of d seconds.

[0027] Expected goal: The vehicle can slow down and keep a certain distance from the target vehicle. Parameters a, b, c, and d can all be generalized into a series of specific parameters; It should be noted that parameter generalization is generalized into specific test cases based on objective laws and related mathematical algorithms; S43. Generalize the test scenarios in the logic test cases and determine the specific test scenarios; For example, the LKA function has a logic test case: Straight road, two-way two-lane, solid yellow line on the left, white dashed line on the left, the vehicle is traveling at 65 km / h, CC switch, ACC switch, LKA switch are turned on; Expected goal: LKA function is activated and driving is maintained at the center line of the lane; Straight road, two-way two-lane, solid yellow line on the left, and dashed white line on the left are specific test cases, which can be generalized into other LKA test scenarios; for example, straight road, two-way two-lane, dashed yellow line on the left, dashed white line on the right; straight road, two-way two-lane, double dashed yellow line on the left, dashed white line on the right; straight road, two-way two-lane, double dashed yellow line on the left, solid white line on the right, etc. S44. According to the initialization of each functional module, in a specific test scenario, use the specific value of the parameter and execute the test steps of each functional module, and then reset each functional module to obtain a specific test case; After the logical automated test sequence is built, it is generalized into specific test cases. Select the generalization method, scenario generalization or parameter generalization, select the generalization algorithm, and generate specific test cases with one click.

[0028] It should be understood that the order of execution of the steps in the above embodiment does not mean that the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0029] The following is an embodiment of the device for building an automated test sequence for an assisted driving system provided in an embodiment of the present disclosure. The device and the method for building an automated test sequence for an assisted driving system in the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the device for building an automated test sequence for an assisted driving system, please refer to the embodiment of the method for building an automated test sequence for an assisted driving system described above.

[0030] like Figure 3 As shown, the device comprises: A logic test case division unit, used to obtain logic test cases of the assisted driving system and divide the logic test cases into several functional modules; Modular library building unit, used to build the modular library required for testing for each functional module; An automated test case building unit, used to build an automated test sequence of logic test cases using the modular library of each functional module; The specific test case generation unit is used to run and debug the automated test sequence, select the generalization method of the logic test case, and generate specific test cases.

[0031] The method for building an automated test sequence for an assisted driving system provided by the present invention is a combination of the modules and algorithm steps of each example described in the embodiments disclosed herein, and can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0032] Those skilled in the art will appreciate that the various aspects of the method for building an automated test sequence for an assisted driving system provided by the present invention can be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, which can be collectively referred to as a "circuit", "module" or "system" here.

[0033] In the non-transitory computer-readable storage medium storing the method for building an automated test sequence for an assisted driving system, it may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or 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 thereof.

[0034] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.

Claims

1. A method for building an automated test sequence for an assisted driving system, characterized in that: The steps include: S1. Obtain the logic test cases of the assisted driving system and divide the logic test cases into several functional modules; S2. Build a modular library required for testing for each functional module; S3. Use the modular library of each functional module to build an automated test sequence of logical test cases; S4. Run and debug the automated test sequence, select the generalization method of the logical test case, and generate specific test cases.

2. The method for building an automated test sequence for an assisted driving system according to claim 1, wherein: The specific steps of step S1 are as follows: S11. Conduct demand analysis based on the functional requirements and performance requirements of the advanced driver assistance system and determine the test objectives and test scope; S12. Design test scenarios and test conditions according to test objectives and test scope, determine test objectives and expected results, and obtain logical test cases; S13. Divide the logic test user into several functional modules according to functional requirements.

3. The method for building an automated test sequence for an assisted driving system according to claim 2, wherein: The functional modules include a power module, a scene module, a vehicle initialization module, a target vehicle creation module, an automatic emergency braking module, an adaptive cruise module, a lane keeping assist module, a lane departure warning module, a front vehicle warning module and a signal acquisition module.

4. The method for building an automated test sequence for an assisted driving system according to claim 2, wherein: The specific steps of step S2 are as follows: S21. Determine the functions required for each functional module in the test; S22. Build a modular library required for testing for each functional module based on the functions required in the test.

5. The method for building an automated test sequence for an assisted driving system according to claim 4, characterized in that: The specific steps of step S3 are as follows: S31. Determine the execution order of each functional module and complete the initialization of the automated test sequence; S32. Determine the test steps for each functional module, perform signal acquisition, turn on the function switch, check the functional module, set the functional module, trigger the functional module, end signal acquisition, select the signal; S33. Determine the reset order of each functional module in the reverse order of execution of the automated test sequence initialization; S34. Integrate the initialization of each functional module, the execution of the test steps of each functional module, and the reset of each functional module to obtain an automated test sequence of the logic test case.

6. The method for building an automated test sequence for an assisted driving system according to claim 5, characterized in that: The specific steps of step S4 are as follows: S41. Execute automated test sequences of logical test cases; S42. Generalize the parameters in the logic test case and determine the specific values ​​of the parameters; S43. Generalize the test scenarios in the logic test cases and determine the specific test scenarios; S44. According to the initialization of each functional module, in a specific test scenario, use the specific value of the parameter and execute the test steps of each functional module, and then reset each functional module to obtain a specific test case.

7. The method for building an automated test sequence for an assisted driving system according to claim 6, wherein: The parameters in the test case in step S42 include the speed, distance and position data of the host vehicle and the target vehicle.

8. A device for building an automated test sequence for an assisted driving system, characterized in that: include: A logic test case division unit, used to obtain logic test cases of the assisted driving system and divide the logic test cases into several functional modules; Modular library building unit, used to build the modular library required for testing for each functional module; An automated test case building unit, used to build an automated test sequence of logic test cases using the modular library of each functional module; The specific test case generation unit is used to run and debug the automated test sequence, select the generalization method of the logic test case, and generate specific test cases.

9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes the method described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in any one of claims 1 to 7.