Periodic task test method and device, electronic equipment, vehicle and storage medium

By determining adaptation information in a multi-chip domain controller and generating test scripts, the problems of inefficient and repetitive operations are solved, and the efficiency and accuracy of periodic task testing is improved.

CN119065903APending Publication Date: 2024-12-03CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411093644.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing periodic task testing methods have inefficient and repetitive operations in multi-chip domain controllers, making it difficult to efficiently test the periodic tasks of each chip.

Method used

By determining the adaptation information of each chip in the domain controller, a matching test script is generated, and the test script is executed to determine whether the periodic task is executed according to the preset cycle, reducing repetitive development work and manual testing errors.

Benefits of technology

It improves the efficiency and accuracy of periodic task testing, reduces test time and manual errors, and is suitable for the testing needs of multi-chip domain controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065903A_ABST
    Figure CN119065903A_ABST
Patent Text Reader

Abstract

The invention discloses a periodic task testing method and device, electronic equipment, a vehicle and a storage medium, and relates to the technical field of task testing.The method comprises the steps that adaptation information of all chips in a domain controller is determined; wherein each piece of adaptation information comprises a corresponding periodic task; generating a test script matched with the corresponding periodic task according to each piece of adaptation information; executing each test script to test a periodic task corresponding to each chip; and judging whether each periodic task is executed according to a preset period or not according to test data obtained by testing each periodic task. The adaptive information of each chip is determined, then the test script matched with the corresponding periodic task is generated according to the adaptive information, and each periodic task can be efficiently tested by executing each test script, so that repeated test development work can be reduced, errors and test time caused by manual test can be reduced, and the test efficiency is improved. And the efficiency and the accuracy of the test period task are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of task testing technology, and in particular to a periodic task testing method, device, electronic equipment, vehicle and storage medium. Background Art

[0002] As the foundation of vehicle electronic embedded software, the reliability and stability of the operating system have become important factors affecting vehicle electronic units. As the basic function of the operating system, the timing and cycle of the periodic task have become the most basic part of the basic software stability test. The existing periodic task testing method is to perform the test manually or automatically according to the task list of the periodic task. With the application of domain controllers, the controller has developed from a single chip to a multi-chip integration. The periodic task test of the domain controller has been adjusted from the test for one chip to the test for multiple chips. For the same type of test content, similar and independent tests are performed, which has problems such as inefficiency and repetitive operations. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose a periodic task testing method, device, electronic device, vehicle and storage medium to improve the efficiency of testing periodic tasks.

[0004] To achieve the above object, an embodiment of the present application provides a periodic task testing method, the method comprising the following steps:

[0005] Determine the adaptation information of each chip in the domain controller; wherein each of the adaptation information includes a corresponding periodic task;

[0006] Generate a test script matching the corresponding periodic task according to each of the adaptation information;

[0007] Execute each of the test scripts to test the periodic tasks corresponding to each of the chips;

[0008] Whether each of the periodic tasks is executed according to a preset period is determined based on the test data obtained from testing each of the periodic tasks.

[0009] In some embodiments, determining the adaptation information of each chip in the domain controller includes the following steps:

[0010] The chip configuration of each chip in the domain controller, the task list of the periodic task and the internal status file are obtained as the corresponding adaptation information.

[0011] In some embodiments, generating a test script matching the corresponding periodic task according to each adaptation information includes the following steps:

[0012] Each of the test scripts is generated according to the test condition description information of each of the periodic tasks, the test script template and the corresponding adaptation information.

[0013] In some embodiments, judging whether each of the periodic tasks is executed according to a preset period based on the test data obtained from testing each of the periodic tasks comprises the following steps:

[0014] Determine the cycle time and execution time of each of the periodic tasks according to the test data obtained by testing each of the periodic tasks;

[0015] If the difference between the cycle time and the preset cycle is within a set range, and the execution time is less than the corresponding cycle time, it is determined that the periodic task is executed according to the preset cycle.

[0016] In some embodiments, the method further comprises the following steps:

[0017] Generate a corresponding test report based on the test data obtained from testing each of the periodic tasks.

[0018] To achieve the above object, another aspect of an embodiment of the present application provides a periodic task testing device, the device comprising:

[0019] An adaptation information determination unit, used to determine the adaptation information of each chip in the domain controller; wherein each of the adaptation information includes a corresponding periodic task;

[0020] A test script generating unit, used to generate a test script matching the corresponding periodic task according to each adaptation information;

[0021] A periodic task testing unit, used for executing each of the test scripts to test the periodic tasks corresponding to each of the chips;

[0022] The periodic task judging unit is used to judge whether each of the periodic tasks is executed according to a preset period based on the test data obtained by testing each of the periodic tasks.

[0023] In some embodiments, the adaptation information determining unit includes:

[0024] The adaptation information determination subunit is used to obtain the chip configuration of each chip in the domain controller, the task list of the periodic task and the internal status file as the corresponding adaptation information.

[0025] In some embodiments, the test script generating unit includes:

[0026] The test script generation subunit is used to generate each of the test scripts according to the test condition description information of each of the periodic tasks, the test script template and the corresponding adaptation information.

[0027] In some embodiments, the periodic task determination unit includes:

[0028] A time determination unit, used to determine the cycle time and execution time of each of the periodic tasks according to the test data obtained by testing each of the periodic tasks;

[0029] The periodic task judgment subunit is used to judge that the periodic task is executed according to the preset period if the difference between the periodic time and the preset period is within a set range and the execution time is less than the corresponding periodic time.

[0030] In some embodiments, the apparatus further comprises:

[0031] The test report generating unit is used to generate a corresponding test report according to the test data obtained by testing each of the periodic tasks.

[0032] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned periodic task testing method when executing the computer program.

[0033] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides a vehicle, which includes a periodic task testing device as described above, or an electronic device as described above.

[0034] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned periodic task testing method is implemented.

[0035] The embodiments of the present application include at least the following beneficial effects:

[0036] The present application can determine the adaptation information of each chip in the domain controller; wherein each adaptation information includes a corresponding periodic task; a test script matching the corresponding periodic task is generated according to each adaptation information; each test script is executed to test the periodic task corresponding to each chip; and each periodic task is judged according to the test data obtained from testing each periodic task whether it is executed according to the preset period. By determining the adaptation information of each chip, and then generating a test script matching the corresponding periodic task according to the adaptation information, each periodic task can be efficiently tested by executing each test script, which can reduce repetitive test development work, and can also reduce errors and test time caused by manual testing, thereby improving the efficiency and accuracy of testing periodic tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 A flowchart of a periodic task testing method provided in an embodiment of the present application;

[0039] Figure 2 An example architecture diagram of a domain controller provided in an embodiment of the present application;

[0040] Figure 3 An example flow chart of a periodic task testing method provided in an embodiment of the present application;

[0041] Figure 4 An example flow chart of another periodic task testing method provided in an embodiment of the present application;

[0042] Figure 5 Provided in the embodiments of this application Figure 1 The step flow chart of S130;

[0043] Figure 6 A schematic diagram of the structure of a periodic task testing device provided in an embodiment of the present application;

[0044] Figure 7 An example structural diagram of a periodic task testing device provided in an embodiment of the present application;

[0045] Figure 8 An exemplary structural diagram of another periodic task testing device provided in an embodiment of the present application;

[0046] Fig. 9 A schematic diagram of the structure of a periodic task determination unit provided in an embodiment of the present application;

[0047] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0049] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0050] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0052] Before describing the embodiments of the present application in detail, some of the terms involved in the embodiments of the present application are first described as follows:

[0053] Domain controller: To solve the problem of distributed EEA (Electrical / Electronic Architecture), the functions of ECU (Electronic Control Unit) with similar and separate functions are integrated into a processor hardware platform with stronger performance than ECU, that is, the vehicle's "Domain Control Unit (DCU)". The emergence of domain controllers is an important sign that the vehicle's electronic and electrical architecture has evolved from ECU distributed electronic and electrical architecture to domain centralized electronic and electrical architecture. The domain controller can include domain master processors, operating systems, application software and algorithms. Platformization, high integration, high performance and good compatibility are the main core design ideas of domain controllers. Relying on high-performance domain master processors, rich hardware interface resources and powerful software functional characteristics, the domain controller can integrate the core functions that originally required multiple ECUs to implement, greatly improving the functional integration of the control system. Coupled with the standardized interface for data interaction, it can greatly reduce some development and manufacturing costs.

[0054] In order to solve at least one problem existing in the related technology, the embodiments of the present application provide a periodic task testing method, device, electronic device, vehicle and storage medium. The technical solution of the present application includes: determining the adaptation information of each chip in the domain controller; wherein each adaptation information includes a corresponding periodic task; generating a test script matching the corresponding periodic task according to each adaptation information; executing each test script to test the periodic task corresponding to each chip; judging whether each periodic task is executed according to the preset cycle based on the test data obtained from testing each periodic task. By determining the adaptation information of each chip, and then generating a test script matching the corresponding periodic task according to the adaptation information, executing each test script can efficiently test each periodic task, which can reduce repetitive test development work, and can also reduce errors and test time caused by manual testing, thereby improving the efficiency and accuracy of testing periodic tasks.

[0055] The embodiment of the present application provides a periodic task testing method, which relates to the field of task testing technology. The periodic task testing method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms and other basic cloud computing services. The cloud server, the server can also be a node server in the blockchain network; the software can be an application that implements the periodic task testing method, etc., but is not limited to the above forms.

[0056] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0057] Exemplarily, the periodic task testing method provided in the embodiment of the present application can be applied to a domain controller of a vehicle, and is described below using the application to a domain controller of a vehicle as an example.

[0058] Reference Figure 1 The present application embodiment provides a periodic task test method, which may include but is not limited to S100 to S130, as follows:

[0059] S100: Determine the adaptation information of each chip in the domain controller; wherein each of the adaptation information includes a corresponding periodic task.

[0060] Specifically, the domain controller may include multiple chips, that is, multiple cores, and the configurations of each chip may be different. Therefore, this embodiment can determine the adaptation information of each chip to provide basic data for subsequent testing of periodic tasks of each chip.

[0061] It should be noted that a periodic task is a task that is executed cyclically in a chip according to a preset period. For example, if the preset period of a periodic task is 10ms, then under normal circumstances, the chip will execute the periodic task once every 10ms. However, since the chip is a complex electronic device, it may be unable to execute the periodic task normally due to some interference factors or failures. Therefore, the embodiment of the present application can test the periodic tasks of each chip in the domain controller to promptly discover abnormal periodic tasks, thereby improving the normal working rate of each chip. Figure 2 , this embodiment provides an example architecture diagram of a domain controller, in which Task is each periodic task.

[0062] Reference Figure 3 , S100 may further include:

[0063] S101: Obtain chip configuration of each chip in the domain controller, a task list of the periodic task, and an internal status file as the corresponding adaptation information.

[0064] It is understandable that the structures of various chips are different. In order to test the periodic tasks of each chip in a targeted manner, this embodiment can obtain the chip configuration of each chip, a task list including multiple periodic tasks, and the internal status file of the chip as the adaptation information corresponding to each chip.

[0065] S110: Generate a test script matching the corresponding periodic task according to each adaptation information.

[0066] It is understandable that this embodiment can generate matching test scripts for different adaptation information to specifically test each periodic task.

[0067] Reference Figure 4 , S110 may further include:

[0068] S111: Generate each of the test scripts according to the test condition description information of each of the periodic tasks, the test script template and the corresponding adaptation information.

[0069] Specifically, this embodiment can pre-set corresponding test conditions for each periodic task and generate test condition description information. This embodiment can also preset a test script template and use adaptation information to set the test script template to obtain a corresponding test script when the test conditions are met.

[0070] The test conditions may include the execution environment of the test script, the execution time point, the execution sequence, and other conditions.

[0071] S120: Execute each of the test scripts to test the periodic tasks corresponding to each of the chips.

[0072] As an optional implementation, this embodiment can build a corresponding execution environment for each test script, and then execute each test script in the execution environment to test the periodic tasks of each chip.

[0073] S130: judging whether each of the periodic tasks is executed according to a preset period based on the test data obtained from testing each of the periodic tasks.

[0074] It is understandable that in this embodiment, data obtained during the test periodic task process can be obtained as test data, or test results can be obtained as test data, and then whether each periodic task is executed according to the preset period can be determined based on the test data.

[0075] Reference Figure 5 , S130 may further include S131-S132:

[0076] S131: Determine the cycle time and execution time of each of the periodic tasks according to the test data obtained by testing each of the periodic tasks.

[0077] It is understandable that the cycle time is the time period between the actual execution of each periodic task. For example, the preset cycle of a periodic task is 10ms, and the time period between the actual execution of the periodic task may be 9ms, 10ms, or 11ms.

[0078] The execution time is the time interval from the start to the end of the execution of the periodic task. Under normal circumstances, the execution time should be less than the cycle time.

[0079] S132: If the difference between the cycle time and the preset cycle is within a set range, and the execution time is less than the corresponding cycle time, it is determined that the periodic task is executed according to the preset cycle.

[0080] It can be understood that when the difference between the time period of the actual execution of a periodic task and the preset period is within the set range, and the execution time is less than the corresponding cycle time, each periodic task works normally and no overlapping execution occurs. At this time, it can be judged that the periodic task is executed according to the preset cycle.

[0081] Furthermore, the embodiment of the present application may also include the following steps:

[0082] S140: Generate a corresponding test report according to the test data obtained by testing each of the periodic tasks.

[0083] Specifically, a corresponding test report is generated based on the test data, recording the corresponding abnormal conditions and determining where the problem lies, providing basic data for subsequent repair of the abnormalities.

[0084] The beneficial effects of the embodiments of the present application include:

[0085] 1. Using test scripts can significantly shorten the time of test cycle tasks and reduce testing costs.

[0086] 2. The test results obtained by using test scripts are more accurate and reliable, which can improve the safety and stability of vehicle electronic systems.

[0087] 3. The test script can be set flexibly and has high versatility to meet the testing needs of more models of domain controllers.

[0088] Next, the solution of the embodiment of the present application will be introduced and explained in conjunction with specific application examples:

[0089] This embodiment can utilize the domain controller adaptation layer to be tested, the test adaptation layer and the automated test execution layer to test the periodic tasks, specifically including:

[0090] The domain controller adaptation layer to be tested, as an adaptation layer for interactive data of the domain controller to be tested, can be used to identify and parse the chip configuration of the domain controller to be tested, the task list of periodic tasks and the internal state file, and provide a unified interactive interface, according to which this embodiment can communicate and exchange data with different types of domain controllers. At the same time, this embodiment can obtain the real-time operating status and test results of the domain controller to be tested through the domain controller adaptation layer to be tested.

[0091] The test adaptation layer can be used to generate corresponding test cases and test scripts according to the chip configuration of the domain controller to be tested, the task list of periodic tasks, the internal state file, the test case template (i.e. the template of the test condition description information of the periodic task) and the test script template.

[0092] The automated test execution layer can be used for the overall scheduling of test scripts, scheduling test resources, executing test scripts and recording test data during the test process. It can also be used to generate test reports and analyze and evaluate test results based on preset judgment criteria.

[0093] The specific steps of testing the periodic task in this embodiment include:

[0094] 1. Design the domain controller adaptation layer to be tested:

[0095] According to the chip quantity, configuration, task list of periodic tasks and internal status files of the domain controller to be tested, the adaptation information is determined to achieve decoupling of the test periodic tasks from the domain controller to be tested.

[0096] 2. Design test adaptation layer:

[0097] Design the test adaptation layer according to the test case template, test script template and adaptation information, use the test adaptation layer to generate test cases and test scripts, and check and confirm them.

[0098] 3. Build the test environment:

[0099] Build a test environment based on the hardware information of the domain controller to be tested and the test cases of the test adaptation layer.

[0100] 4. The automated test execution layer executes the test script:

[0101] Start the automated test execution layer, select the domain controller to be tested, and execute the corresponding test script to test the periodic tasks in each chip of the domain controller to be tested.

[0102] 5. Problem location:

[0103] Record the test data obtained from the automated test execution layer test, and generate a test report based on the test data to determine where the problem lies and provide basic data for subsequent problem repair.

[0104] The beneficial effects of this embodiment are as follows:

[0105] 1. Improve test efficiency: Execute test scripts through the automated test execution layer, reduce manual intervention, reduce test costs, and shorten test cycles.

[0106] 2. Improve test accuracy: reduce interference from human factors and improve the reliability and accuracy of test results.

[0107] 3. Improve the versatility and reusability of test cases: Automatically generate and flexibly configure test cases by designing a test adaptation layer to adapt to domain controllers of different models.

[0108] Reference Figure 6 The embodiment of the present application further provides a periodic task testing device, which can implement the above-mentioned periodic task testing method, and the device includes:

[0109] An adaptation information determination unit, used to determine the adaptation information of each chip in the domain controller; wherein each of the adaptation information includes a corresponding periodic task;

[0110] A test script generating unit, used to generate a test script matching the corresponding periodic task according to each adaptation information;

[0111] A periodic task testing unit, used for executing each of the test scripts to test the periodic tasks corresponding to each of the chips;

[0112] The periodic task judging unit is used to judge whether each of the periodic tasks is executed according to a preset period based on the test data obtained by testing each of the periodic tasks.

[0113] Reference Figure 7 In some embodiments, the adaptation information determining unit comprises:

[0114] The adaptation information determination subunit is used to obtain the chip configuration of each chip in the domain controller, the task list of the periodic task and the internal status file as the corresponding adaptation information.

[0115] Reference Figure 8 In some embodiments, the test script generating unit includes:

[0116] The test script generation subunit is used to generate each of the test scripts according to the test condition description information of each of the periodic tasks, the test script template and the corresponding adaptation information.

[0117] Reference Fig. 9 In some embodiments, the periodic task determination unit includes:

[0118] A time determination unit, used to determine the cycle time and execution time of each of the periodic tasks according to the test data obtained by testing each of the periodic tasks;

[0119] The periodic task judgment subunit is used to judge that the periodic task is executed according to the preset period if the difference between the periodic time and the preset period is within a set range and the execution time is less than the corresponding periodic time.

[0120] In some embodiments, the apparatus further comprises:

[0121] The test report generating unit is used to generate a corresponding test report according to the test data obtained by testing each of the periodic tasks.

[0122] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0123] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned periodic task test method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0124] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0125] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0126] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0127] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the periodic task test method of the embodiment of this application;

[0128] Input / output interface 1003, used to implement information input and output;

[0129] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0130] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0131] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0132] The embodiment of the present application also provides a vehicle, which includes a periodic task test device as described above, or an electronic device as described above. Specifically, the vehicle can be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle can also be an operating vehicle, such as a van, bus, small truck or large trailer. The vehicle can be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it can be a hybrid vehicle or a pure electric vehicle.

[0133] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned periodic task testing method is implemented.

[0134] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0135] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0136] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0137] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0138] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0139] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0140] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0141] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0142] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0143] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0144] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0145] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0146] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A periodic task testing method, characterized in that: The method comprises the following steps: Determine the adaptation information of each chip in the domain controller; wherein each of the adaptation information includes a corresponding periodic task; Generate a test script matching the corresponding periodic task according to each of the adaptation information; Execute each of the test scripts to test the periodic tasks corresponding to each of the chips; Whether each of the periodic tasks is executed according to a preset period is determined based on the test data obtained from testing each of the periodic tasks.

2. A periodic task testing method according to claim 1, characterized in that: Determining the adaptation information of each chip in the domain controller includes the following steps: The chip configuration of each chip in the domain controller, the task list of the periodic task and the internal status file are obtained as the corresponding adaptation information.

3. A periodic task testing method according to claim 1, characterized in that: Generating a test script matching the corresponding periodic task according to each of the adaptation information comprises the following steps: Each of the test scripts is generated according to the test condition description information of each of the periodic tasks, the test script template and the corresponding adaptation information.

4. A periodic task testing method according to claim 1, characterized in that: The step of judging whether each of the periodic tasks is executed according to a preset period based on the test data obtained from testing each of the periodic tasks comprises the following steps: Determine the cycle time and execution time of each of the periodic tasks according to the test data obtained by testing each of the periodic tasks; If the difference between the cycle time and the preset cycle is within a set range, and the execution time is less than the corresponding cycle time, it is determined that the periodic task is executed according to the preset cycle.

5. A periodic task testing method according to any one of claims 1 to 4, characterized in that: The method further comprises the following steps: Generate a corresponding test report based on the test data obtained from testing each of the periodic tasks.

6. A periodic task testing device, characterized in that: The device comprises: An adaptation information determination unit, used to determine the adaptation information of each chip in the domain controller; wherein each of the adaptation information includes a corresponding periodic task; A test script generating unit, used to generate a test script matching the corresponding periodic task according to each adaptation information; A periodic task testing unit, used for executing each of the test scripts to test the periodic tasks corresponding to each of the chips; The periodic task judging unit is used to judge whether each of the periodic tasks is executed according to a preset period based on the test data obtained by testing each of the periodic tasks.

7. A periodic task testing device according to claim 6, characterized in that: The adaptation information determining unit comprises: The adaptation information determination subunit is used to obtain the chip configuration of each chip in the domain controller, the task list of the periodic task and the internal status file as the corresponding adaptation information.

8. A periodic task testing device according to claim 6, characterized in that: The test script generating unit comprises: The test script generation subunit is used to generate each of the test scripts according to the test condition description information of each of the periodic tasks, the test script template and the corresponding adaptation information.

9. A periodic task testing device according to claim 6, characterized in that: The periodic task determination unit comprises: A time determination unit, used to determine the cycle time and execution time of each of the periodic tasks according to the test data obtained by testing each of the periodic tasks; The periodic task judgment subunit is used to judge that the periodic task is executed according to the preset period if the difference between the periodic time and the preset period is within a set range and the execution time is less than the corresponding periodic time.

10. A periodic task testing device according to any one of claims 6 to 9, characterized in that: The device also includes: The test report generating unit is used to generate a corresponding test report according to the test data obtained by testing each of the periodic tasks.

11. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements a periodic task testing method as claimed in any one of claims 1 to 5 when executing the computer program.

12. A vehicle, characterized in that: The vehicle comprises a periodic task testing device as claimed in claim 6, or an electronic device as claimed in claim 11.

13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, a periodic task testing method according to any one of claims 1 to 5 is implemented.