Automated smoking test method, device and storage medium for body controller

By combining Python programs and signal generators, a fully automated smoke test for the vehicle body controller was achieved, solving the problems of long testing time and high cost in existing technologies, and improving testing efficiency and compatibility.

CN119045459BActive Publication Date: 2025-11-04CHERY NEW ENERGY AUTOMOBILE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411163289.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2025-11-04
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

In existing technologies, smoke testing of vehicle body controllers is time-consuming and costly, and cannot be compatible with different platforms and projects, affecting project progress and efficiency.

Method used

The Python program parses the requirements input document and generates an automated test program. It performs fully automated testing in a simple benchtop environment using equipment such as a signal generator and a controllable power supply. It is compatible with different platforms and project requirement changes, requiring only an update to the controller requirements input.

Benefits of technology

It enables fully automated testing in a simple benchtop environment, improving testing efficiency, reducing costs, and adapting to different platforms and project changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045459B_ABST
    Figure CN119045459B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of automation testing, and particularly relates to a vehicle body controller automatic smoke test method, device and storage medium, the method comprising: importing requirements into a requirement input document according to a set format; generating test cases based on requirement input document analysis; obtaining input steps and expected output results based on test case analysis, converting the input steps into an automatic test program, converting the expected output results into network signals and electrical signals, and obtaining the values of the network signals and electrical signals as expected values; performing timing control and execution according to the automatic test steps obtained by analysis; after the execution of each step is completed, the main controller obtains the values of the network messages and electrical signals from the test equipment as test values, compares and analyzes the test values with the expected values, and stores the results in a result list; and executing the test steps and outputting a test report. The present application can effectively solve the compatibility problem of the test platform and improve the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated testing technology, and in particular to an automated smoke test method, apparatus and storage medium for vehicle body controllers. Background Technology

[0002] As users' demands for automotive comfort and intelligence continue to increase, the number and complexity of software functions in automotive body controllers are constantly growing, and their interactions with other automotive controllers are also increasing. For software testing of body control systems, the difficulty and workload are constantly rising. To avoid ineffective test execution, a smoke test is conducted before carrying out software testing of the body control system. This test checks the main functions of the software first, and only after the smoke test is passed will comprehensive testing proceed.

[0003] Smoke testing is a type of functional testing designed to quickly verify whether the basic functions of software are defective. If a smoke test case fails, no further testing is necessary, and the software is returned directly to the developers. Smoke testing is repeated multiple times throughout the project phase, and the testing time must be kept as short as possible.

[0004] In existing technologies, smoke tests are typically performed manually or using a vehicle body HIL (Hardware Injection System). Manually executing smoke test cases is time-consuming and impacts project schedules. While a vehicle body HIL system can automate smoke testing, a complete system is costly and incompatible with different platforms and projects. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides an automated smoke test method, apparatus, and storage medium for vehicle body controllers. It enables fully automated smoke testing of vehicle body controllers in a simple bench environment using relatively simple testing equipment. It is also compatible with different platforms and projects. When project requirements change, only the controller's input requirements need to be updated, without incurring new costs. This improves testing efficiency while ensuring test accuracy.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] The first aspect of this invention provides an automated smoke test method for a vehicle body controller, comprising the following steps:

[0008] Step S1: Import the requirements into the requirements input document according to the set format;

[0009] Step S2: Based on the requirements input document, the Python program parses the requirements input document into input steps and executes the input steps to obtain the expected output results, and converts the expected output results into test cases for network signals and electrical signals;

[0010] Step S3: The Python program parses the test cases, generates an automated test program, and obtains the values ​​of network signals and electrical signals as expected values.

[0011] Step S4: The Python program parses the automated test steps from the automated test program and performs timing control and execution of the steps in sequence.

[0012] Step S5: After each test step is completed, the Python main controller obtains the values ​​of network packets and electrical signals from the test device as test values, compares and analyzes the test values ​​with the expected values, and stores the results in the result list;

[0013] Step S6: Execute the test steps and output the test report.

[0014] Furthermore, in step S1, when the requirements change and the same project requirements are imported a second time, the Python program will identify and record the points of requirement change.

[0015] Furthermore, in step S3, the automated test program includes an automatic execution step and a test case step. The automatic execution step outputs according to the test case step so that it can be directly executed during subsequent smoke tests.

[0016] Furthermore, in step S4, the timing control and execution of the steps according to the step sequence also includes the following steps:

[0017] Step 401: Record error messages of test cases that are not properly parsed and executed by the subsequent program due to non-standard input requirements, and output the error message record document after the program execution is completed;

[0018] Step 402: If the program fails to execute, skip the current test case and proceed to the next test case to continue execution.

[0019] Furthermore, in step S6, the output test report includes:

[0020] For test cases that pass the test steps without errors, Python obtains the test results, and the test data is output according to the test report template to obtain the test report;

[0021] For test cases that fail to execute test steps, output all test data for this test case as the result;

[0022] For test cases that report errors, the execution results of the current test case are merged with the execution results of the previous test case to form a complete test report.

[0023] A second aspect of the present invention provides an automated smoke test device for a vehicle body controller, comprising a signal generator, a controllable power supply, a switching relay, a controllable resistor, a CAMOE tool, a vehicle body controller, a programmable multimeter, an oscilloscope, and a display screen.

[0024] The controllable power supply, switching relay, controllable resistor, CAMOE tool, and signal generator are communicatively connected to the body controller, and the programmable multimeter, oscilloscope, and display device are respectively network-connected to the body controller.

[0025] Furthermore, a switching relay is connected between the oscilloscope, the programmable multimeter, and the body controller, and the corresponding switching relay is closed when it is necessary to measure the output of a certain pin of the body controller.

[0026] Furthermore, the display device is used for inputting requirements, displaying test steps, and displaying feedback on test results.

[0027] The operation process of the automated smoke test device for the body controller includes:

[0028] (1) First, input the requirements through the display screen and import the requirements into the requirements input document according to the set format;

[0029] (2) Next, the body controller receives the requirement input document, parses the requirement input document into test input steps, executes the test input steps to obtain the expected output result, and converts the result into the values ​​of network signals and electrical signals as the expected value;

[0030] (3) Next, the input of network signals is simulated by the CAMOE tool, the input of electrical signals is simulated by the controllable power supply, the controllable resistor and the signal generator, the body controller receives the input signal, judges the signal type and parses it into an automated test program, the automated test program includes automatic execution steps and test case steps, and the automatic execution steps output according to the test case steps;

[0031] (4) Then, after the test is completed, the CAMOE tool is used to obtain network packets, the programmable multimeter is used to obtain the values ​​of current, voltage and resistance, the oscilloscope is used to obtain the waveform of the output signal, and the body controller collects the information obtained by the CAMOE tool, the programmable multimeter and the oscilloscope and converts it into network signals and electrical signals as test values;

[0032] (5) Finally, the vehicle body controller compares and analyzes the expected value with the test value, stores the results in the result list and outputs them to the display screen.

[0033] Furthermore, in (2), the result is converted into the values ​​of network signal and electrical signal as expected value. Specifically, the expected value refers to: the result of network message gives the message name and corresponding value in a fixed format, and the result of electrical signal gives the corresponding switch relay number and the output value of multimeter and oscilloscope.

[0034] Furthermore, in (3), the automatic execution steps are output according to the use case steps so that they can be directly executed during subsequent smoke tests.

[0035] Furthermore, in (3), the simulated electrical signal input via the controllable power supply, the controllable resistor, and the signal generator includes:

[0036] A controllable power supply is used as the input power supply and voltage signal input of the controller, a controllable resistor is used as the input resistance signal, and a signal generator is used as the input special waveform signal.

[0037] Furthermore, in (3), the vehicle body controller receives the input signal and determines the signal type. Specifically, it determines whether the received input signal is a simulated network signal or an electrical signal of the corresponding pin based on the keywords. The simulated network message gives the message name and corresponding value in a fixed format, while the electrical signal of the corresponding pin needs to give the corresponding switch relay number and on / off status, as well as the output values ​​of the power supply, resistor and signal generator in a fixed format.

[0038] Furthermore, the body controller includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of an automated smoke test method for a body controller as described above.

[0039] A third aspect of the present invention provides a storage medium for an automated smoke test of a vehicle body controller, wherein a computer program is stored thereon, and when the computer program is executed by a processor, it implements the steps of an automated smoke test method for a vehicle body controller as described above.

[0040] Furthermore, the computer program is a Python program.

[0041] Compared with the prior art, the present invention has the following advantages:

[0042] It can perform fully automated testing of vehicle body controller smoke emission test in a simple bench environment with relatively simple testing equipment. It is also compatible with different platforms and different projects. When project requirements change, only the controller requirement input needs to be updated, without investing new costs. It improves testing efficiency while ensuring test accuracy.

[0043] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 A schematic diagram of an automated smoke test method for a vehicle body controller is shown.

[0046] Figure 2 This diagram illustrates another process flow of an automated smoke test method for a vehicle body controller.

[0047] Figure 3 A schematic diagram of an automated smoke test device for a vehicle body controller is shown. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0049] In one embodiment, please refer to Figure 1 and Figure 2 An automated smoke test method for a vehicle body controller is provided, the method comprising the following steps:

[0050] Step S1: Import the requirements into the requirements input document according to the set format;

[0051] Furthermore, when the aforementioned requirements change, and the same project requirements are imported a second time, the Python program will identify and record the points of change in requirements.

[0052] Step S2: Based on the requirements input document, the Python program parses the requirements input document into input steps and executes the input steps to obtain the expected output results, and converts the expected output results into test cases for network signals and electrical signals;

[0053] Step S3: The Python program parses the test cases, generates an automated test program, and obtains the values ​​of network signals and electrical signals as expected values.

[0054] Furthermore, the automated test program includes automated execution steps and test case steps. The automated execution steps are output according to the test case steps so that they can be directly executed during subsequent smoke tests.

[0055] Step S4: The Python program parses the automated test steps from the automated test program and performs timing control and execution according to the order of the automated test steps;

[0056] Furthermore, in step S4, the timing control and execution according to the sequence of automated test steps also includes the following steps:

[0057] Step 401: Record error messages of test cases that are not properly parsed and executed by the subsequent program due to non-standard input requirements, and output the error message record document after the program execution is completed;

[0058] Step 402: If the program fails to execute, skip the current test case and proceed to the next test case to continue execution.

[0059] Step S5: After each test step is completed, the Python main controller obtains the values ​​of network packets and electrical signals from the test device as test values, compares and analyzes the test values ​​with the expected values, and stores the results in the result list;

[0060] Step S6: Execute the test steps and output the test report.

[0061] Furthermore, in step S6, the output test report includes:

[0062] For test cases that pass the test steps without errors, Python obtains the test results, and the test data is output according to the test report template to obtain the test report;

[0063] For test cases that fail to execute test steps, output all test data for this test case as the result;

[0064] For test cases that report errors, the execution results of the current test case are merged with the execution results of the previous test case to form a complete test report.

[0065] In one embodiment, please refer to Figure 3 An automated smoke test device for a vehicle body controller is provided. The device includes: a signal generator, a controllable power supply, a switching relay, a controllable resistor, a CAMOE tool, a vehicle body controller, a programmable multimeter, an oscilloscope, and a display screen.

[0066] The controllable power supply, switching relay, controllable resistor, CAMOE tool, and signal generator are communicatively connected to the body controller, and the programmable multimeter, oscilloscope, and display device are respectively network-connected to the body controller.

[0067] Furthermore, a switching relay is connected between the oscilloscope, the programmable multimeter, and the body controller, and the corresponding switching relay is closed when it is necessary to measure the output of a certain pin of the body controller.

[0068] Furthermore, the display device is used for inputting requirements, displaying test steps, and displaying feedback on test results.

[0069] In one embodiment, please refer to Figure 1 , Figure 2 and Figure 3 When the automated smoke test device for the vehicle body controller is performing the test, the test operation process includes:

[0070] (1) Input requirements through the display screen and import the requirements into the requirement input document according to the set format;

[0071] (2) The body controller receives the requirement input document, parses the requirement input document into test input steps, executes the test input steps to obtain the expected output result, and converts the result into the values ​​of network signals and electrical signals as the expected value;

[0072] Furthermore, in (2), the expected value specifically refers to: the network message result gives the message name and corresponding value in a fixed format, and the electrical signal result gives the corresponding switch relay number and the output value of the multimeter and oscilloscope;

[0073] (3) The input of network signals is simulated by the CAMOE tool, the input of electrical signals is simulated by the controllable power supply, the controllable resistor and the signal generator, the body controller receives the input signal, judges the signal type and parses it into an automated test program, the automated test program includes automatic execution steps and test case steps, the automatic execution steps are output according to the test case steps so that they can be directly executed during subsequent smoke tests;

[0074] Furthermore, in (3), the input of the controllable power supply, the controllable resistor, and the signal generator to simulate electrical signals includes:

[0075] A controllable power supply is used as the input power supply and voltage signal input of the controller, a controllable resistor is used as the input resistance signal, and a signal generator is used as the input of a special waveform signal.

[0076] Furthermore, in (3), the signal type is determined by keywords to determine whether the received input signal is a simulated network signal or an electrical signal of the corresponding pin. The simulated network message gives the message name and corresponding value in a fixed format, while the electrical signal of the corresponding pin needs to give the corresponding switch relay number and on / off status and the output values ​​of the power supply, resistor and signal generator in a fixed format.

[0077] (4) After the test is completed, the CAMOE tool is used to obtain network packets, the programmable multimeter is used to obtain the values ​​of current, voltage and resistance, the oscilloscope is used to obtain the waveform of the output signal, and the body controller collects the information obtained by the CAMOE tool, the programmable multimeter and the oscilloscope and converts it into network signals and electrical signals as test values.

[0078] (5) The body controller compares and analyzes the expected value with the test value, stores the results in the result list and outputs them to the display screen.

[0079] Furthermore, the body controller includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of an automated smoke test method for a body controller as described above.

[0080] In one embodiment, an automated smoke test storage medium for a vehicle body controller is provided, on which a computer program is stored. When executed by a processor, the computer program implements the steps of an automated smoke test method for a vehicle body controller as described above.

[0081] Furthermore, the computer program is a Python program.

[0082] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An automated smoke test method for a vehicle body controller, characterized in that, The method is applied to a testing device, and the method includes the following steps: Import the requirements into the requirements input document according to the set format; Based on the requirements input document, the Python program parses the requirements input document into input steps and executes the input steps to obtain the expected output results, and converts the expected output results into test cases for network signals and electrical signals. The Python program parses the test cases, generates automated test programs, and obtains the values ​​of network signals and electrical signals as expected values. The Python program parses the automated test steps from the automated test program and performs timing control and execution according to the order of the automated test steps. This includes recording error information of test cases that cannot be correctly parsed and executed by the subsequent program due to non-standard input requirements, and outputting error information log documents after the program execution is completed; if the program cannot be executed, it directly skips the current test case and moves to the next test case to continue execution. After each test step is completed, the Python main controller obtains the values ​​of network packets and electrical signals from the test device as test values, compares and analyzes the test values ​​with the expected values, and stores the results in the result list; The test procedure executes test steps and outputs test reports. For test cases that pass the test steps without errors, Python obtains the test results and outputs the test data according to the test report template to obtain the test report. For test cases that fail the test steps, all test data for this test case are output as the result. For test cases that report errors, the execution result of the current test case is merged with the execution result of the previous test case to form a complete test report.

2. The automated smoke test method for a vehicle body controller as described in claim 1, characterized in that: If the requirements change, the requirement input document needs to be imported again, and the Python program will find and record the change points.

3. The automated smoke test method for a vehicle body controller as described in claim 1, characterized in that: The automated test program includes automated execution steps and test case steps. The automated execution steps are output according to the test case steps so that they can be directly executed during subsequent smoke tests.

4. An automated smoke test device for a vehicle body controller, used to perform an automated smoke test method for a vehicle body controller as described in any one of claims 1 to 3, characterized in that, include: Signal generator, controllable power supply, switching relay, controllable resistor, CAMOE tool, body control unit, programmable multimeter, oscilloscope and display screen; The controllable power supply, switching relay, controllable resistor, CAMOE tool, and signal generator are communicatively connected to the body controller, and the programmable multimeter, oscilloscope, and display device are respectively network-connected to the body controller. A switching relay is connected between the oscilloscope, the programmable multimeter, and the body controller. When it is necessary to measure the output of a certain pin of the body controller, the corresponding switching relay is closed. The display device is used for inputting requirements, displaying test steps, and providing feedback on test results.

5. The automated smoke test device for a vehicle body controller as described in claim 4, characterized in that, The operation process of the device includes: Input your requirements via the display screen and import them into the requirements input document according to the set format; The body controller receives requirements, generates test cases, parses test input steps and expected output results, and converts the results into network signals and electrical signals as expected values. The CAMOE tool simulates the input of network signals, and the controllable power supply, controllable resistor and signal generator simulate the input of electrical signals. The body controller receives the input signals, judges the signal type and parses them into an automated test program. The automated test program includes automatic execution steps and test case steps. The automatic execution steps output according to the test case steps. After the test is completed, the CAMOE tool is used to obtain network packets, the programmable multimeter is used to obtain the values ​​of current, voltage and resistance, the oscilloscope is used to obtain the waveform of the output signal, and the body controller collects the information obtained by the CAMOE tool, the programmable multimeter and the oscilloscope and converts it into network signals and electrical signals as test values. The vehicle body controller compares and analyzes the expected value with the test value, stores the results in a result list, and outputs them to the display screen.

6. The automated smoke test device for a vehicle body controller as described in claim 5, characterized in that, The input of the simulated electrical signal through the controllable power supply, the controllable resistor, and the signal generator includes: A controllable power supply is used as the input power supply and voltage signal input of the controller, a controllable resistor is used as the input resistance signal, and a signal generator is used as the input waveform signal.

7. The automated smoke testing device for a vehicle body controller as described in claim 4, wherein the vehicle body controller includes a memory and a processor, characterized in that: The memory stores a computer program, which, when executed by the processor, causes the processor to perform an automated smoke test method for a vehicle body controller as described in any one of claims 1-3.

8. A storage medium for automated smoke testing of a vehicle body controller, wherein a computer program is stored thereon, characterized in that: The program is executed by the processor to implement an automated smoke test method for a body controller as described in any one of claims 1-3.

Citation Information

Patent Citations

  • A controller smoke emission test system and test method

    CN109002397A

  • Automatic testing device and method for vehicle-mounted equipment

    CN114878186A