CN-122001798-A - Vehicle-mounted network management testing method and device and electronic equipment
Abstract
The invention provides a vehicle-mounted network management testing method, a device and electronic equipment, relates to the technical field of vehicle testing, and aims to accurately position and comprehensively cover core risk points of a wake-up/sleep scene by determining test items corresponding to the test through a preset standardized configuration table so as to avoid the subjectivity and item leakage problems of manual selection. And generating a test script based on the test case template, wherein the template grammar is unified and standardized, so that the core execution logic multiplexing can be realized, the repeated coding redundancy of different test points is eliminated, the target ECU and the test tool with different types are adapted, and the grammar errors and the screening errors of manual writing are avoided. Compared with the prior art, the invention can radically solve the problems of low manual testing efficiency, large influence of personnel on quality, complicated data arrangement, solidification of the traditional automatic testing script, high adapting cost, low efficiency of problem positioning and incapability of forming closed loop pain points, and greatly improves the standardization, high efficiency and reliability of the vehicle-mounted network management test.
Inventors
- ZHENG CHENLONG
- TIAN FEIXIONG
- ZHANG SHENGFENG
- HUANG JIANFENG
Assignees
- 奇瑞汽车股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260127
Claims (10)
- 1. A vehicle-mounted network management testing method, characterized in that the method comprises the following steps: responding to a network management test instruction aiming at a target electronic control unit; Determining a target test item aiming at the target electronic control unit from a standardized configuration table constructed in advance based on the network management test requirement indicated by the network management test instruction; Generating a test script aiming at the target test item based on a preset test case template; And executing network management test on the target electronic control unit based on the test script, and determining a network management test result of the target electronic control unit.
- 2. The method of claim 1, wherein determining a target test item for the target electronic control unit from a pre-built standardized configuration table based on network management test requirements indicated by the network management test instructions comprises: Determining a network management state jump flow to be tested of the target electronic control unit according to the function verification requirement indicated by the network management test instruction; Matching a corresponding target test item group from the standardized configuration table based on the network management state jump flow, wherein the standardized configuration table comprises a plurality of test item groups, and each test item group is preset and determined based on the network management state jump flow of the electronic control unit; Determining a target activation action type from a plurality of activation action types associated with the target test item group according to the network management core characteristic information of the target electronic control unit; and determining the test item corresponding to the target activation action type as a target test item aiming at the target electronic control unit.
- 3. The method of claim 2, wherein determining a target activation action type from a plurality of activation action types associated with the target test item group based on network management core characteristic information of the target electronic control unit, comprises: acquiring a pre-recorded sample adaptation mark of an activation action type associated with the target test item group in the standardized configuration table; And if the sample fitting mark indicates that the current activation action type is matched with the target electronic control unit, determining the current activation action type as the target activation action type of the target electronic control unit.
- 4. The method of claim 1, wherein the step of generating a test script for the target test item based on a preset test case template comprises: acquiring test adaptation parameters corresponding to the target test items; Substituting the test adaptation parameters into a preset test case template to generate a test script aiming at the target test item.
- 5. The method of claim 1, wherein the step of determining the network management test result of the target electronic control unit based on the test script performing a network management test on the target electronic control unit comprises: According to the preset logic of the test script, executing network management test on the target electronic control unit, and synchronously collecting test data of the network management test; according to the test item grouping rule of the standardized configuration table, grouping identification is carried out on test failure items in the test data, and a plurality of groups of failure data corresponding to the network management test are determined; And determining a network management test result corresponding to the target electronic control unit according to the multiple groups of failure data.
- 6. The method of claim 5, wherein the step of determining the network management test result corresponding to the target ecu according to the plurality of sets of failure data comprises: determining a problem list corresponding to the failure data by utilizing a pre-constructed problem template; and determining a network management test result corresponding to the target electronic control unit based on the problem list.
- 7. The method according to claim 1, wherein the method further comprises: Determining a plurality of network management state types included by an electronic control unit and jump triggering conditions among each network management state type according to network management core characteristics of the preset electronic control unit; Generating a plurality of test item packets for the network management state jump procedure of the electronic control unit based on the network management state type and the jump trigger condition; Configuring a corresponding activating action type set for each test item group, and generating a sample fitting mark corresponding to each activating action type according to the fitting condition of each activating action type in the activating action type set and the electronic control unit; Generating a grouping table based on the test item grouping, inputting corresponding activation action types and sample adaptation marks to preset positions of the grouping table, and generating a standardized configuration table for the electronic control unit.
- 8. An in-vehicle network management test apparatus, the apparatus comprising: the response module is used for responding to the network management test instruction aiming at the target electronic control unit; The execution module is used for determining target test items aiming at the target electronic control unit from a standardized configuration table constructed in advance based on the network management test requirements indicated by the network management test instructions; The script generation module is used for generating a test script aiming at the target test item based on a preset test case template; And the test module is used for executing network management test on the target electronic control unit based on the test script and determining a network management test result of the target electronic control unit.
- 9. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the in-vehicle network management test method of any one of claims 1 to 7.
- 10. A machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the in-vehicle network management test method of any one of claims 1 to 7.
Description
Vehicle-mounted network management testing method and device and electronic equipment Technical Field The present invention relates to the field of vehicle testing technologies, and in particular, to a vehicle network management testing method and apparatus, and an electronic device. Background In the development of automotive electronics, it is important to ensure that each Electronic Control Unit (ECU) can properly perform network management operations such as Sleep (Sleep), wake-up, and the like. At present, the test for ECU network management in the industry mainly adopts a manual test mode and an automatic test mode, the manual test mode relies on manual execution, analysis and problem list creation, the repeated labor is more, the efficiency is low, the test quality is greatly influenced by personnel capability, the problem description has no unified standard, the test data arrangement is time-consuming, and omission and misjudgment are easy to occur. The existing automatic test is partially realized in automatic execution, but the test script is manually developed and cured, all related use cases need to be modified for optimizing and adjusting test items, the adaptation cost is high, trigger codes need to be repeatedly executed by different test points, the test is time-consuming, the script needs to be manually screened each time of the test, the efficiency is low and the test is easy to make mistakes, the batch error reporting needs to be analyzed one by one after the test is failed, the problem positioning is low, the problem list creation and the data arrangement still depend on manual work, and a standardized closed loop cannot be formed. In summary, the existing scheme has the problems of low efficiency, poor standardization degree, high manual dependence, weak adaptation and problem positioning capability and the like, restricts the development progress and quality of automobile electronics, and needs a targeted solution. Disclosure of Invention The invention aims to provide a vehicle-mounted network management testing method, a device and electronic equipment, which can radically solve the problems of low manual testing efficiency, large influence of personnel on quality, complicated data arrangement, solidification of traditional automatic testing scripts, high adapting cost, low efficiency of problem positioning and incapability of forming closed loop pain points, and greatly improve the standardization, high efficiency and reliability of vehicle-mounted network management testing. The invention provides a vehicle-mounted network management testing method, which comprises the steps of responding to a network management testing instruction aiming at a target electronic control unit, determining a target testing item aiming at the target electronic control unit from a standardized configuration table constructed in advance based on a network management testing requirement indicated by the network management testing instruction, generating a testing script aiming at the target testing item based on a preset testing case template, and executing a network management test on the target electronic control unit based on the testing script to determine a network management testing result of the target electronic control unit. With reference to the first aspect, the embodiment of the invention further provides a first implementation manner of the first aspect, wherein the step of determining the target test item for the target electronic control unit from a pre-built standardized configuration table based on the network management test requirement indicated by the network management test instruction includes determining a network management state jump procedure to be tested by the target electronic control unit according to the function verification requirement indicated by the network management test instruction, matching a corresponding target test item group from the standardized configuration table based on the network management state jump procedure, wherein the standardized configuration table includes a plurality of test item groups, each test item group is preset based on the network management state jump procedure of the electronic control unit, determining a target activation action type from a plurality of activation action types associated with the target test item group according to network management core characteristic information of the target electronic control unit, and determining the test item corresponding to the target activation action type as the target test item for the target electronic control unit. With reference to the first aspect, the embodiment of the present invention further provides a second implementation manner of the first aspect, where the step of determining, according to the network management core characteristic information of the target electronic control unit, the target activation action type from the plurality of activation action types associated with t