Atomic energy testing method, storage medium and atomic energy testing system

By presetting configuration files on the client and automatically performing atomic capability tests, the problem of time-consuming and labor-consuming manual verification process in the existing technology is solved, and the automated testing of atomic capability is realized, reducing costs and improving convenience.

CN119645817APending Publication Date: 2025-03-18GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411680582.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The process of verifying atomic capabilities in the prior art requires manual table review, resulting in high labor and time costs and time consuming.

Method used

A method for testing atomic capability for clients is proposed, which automatically performs atomic capability test operations through preset configuration files, including determining the target atomic capability number, querying the configuration file to obtain script files and control instructions, sending them to the vehicle terminal and obtaining feedback parameters for verification.

Benefits of technology

Automatic testing of atomic capabilities is realized, reducing usage costs, improving convenience, and greatly reducing post-maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645817A_ABST
    Figure CN119645817A_ABST
Patent Text Reader

Abstract

The invention discloses an atomic energy testing method, a storage medium and an atomic energy testing system. The atomic force testing method is used for a client, and the testing method comprises the following steps: determining the number of target atomic force in response to an atomic force testing instruction; a preset configuration file is inquired according to the number, so that a script file used for executing the target atomic power and a target control instruction used for controlling and executing the target atomic power are obtained, and the target control instruction at least comprises a function execution instruction and a function test instruction; sending the script file and the target control instruction to the vehicle-mounted terminal, and obtaining feedback parameters of the vehicle-mounted terminal for executing the target atomic power; and determining a verification mode, and verifying the feedback parameter according to the verification mode. According to the method for testing the atomic power of the client, through the preset configuration file, the use cost can be reduced, and the method is more convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to an atomic capacity testing method, a storage medium, and an atomic capacity testing system. Background Art

[0002] The in-vehicle computer system is a complex system, encompassing dozens or even hundreds of functional modules. Each module supports numerous debugging commands, and each atomic capability corresponds to a specific function. Verifying atomic capabilities is a complex task. Current technologies typically require manual table lookup to obtain the relevant control instructions, which are then input and issued to the in-vehicle computer.

[0003] In the existing technology, the verification process of this atomic capability requires manual table lookup, which has high labor and time costs, and requires manual copying, which is time-consuming. Summary of the Invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, a first object of the present invention is to provide an atomic capability testing method for a client, which can automatically perform atomic capability testing operations through a preset configuration file, thereby reducing usage costs and increasing convenience.

[0005] The second object of the present invention is to provide an atomic capability testing method for a vehicle-mounted terminal.

[0006] A third object of the present invention is to provide a non-transitory computer-readable storage medium.

[0007] The fourth object of the present invention is to provide an atomic capability testing system.

[0008] In order to achieve the above-mentioned purpose, the first aspect of the present invention proposes an atomic capability testing method for a client, and the testing method includes: determining the number of the target atomic capability in response to an atomic capability test instruction; querying a preset configuration file according to the number to obtain a script file for executing the target atomic capability and a target control instruction for controlling the execution of the target atomic capability, wherein the target control instruction includes at least a function execution instruction and a function test instruction; sending the script file and the target control instruction to the vehicle-side, and obtaining feedback parameters for the vehicle-side to execute the target atomic capability; determining a verification method, and verifying the feedback parameters according to the verification method.

[0009] According to an embodiment of the present invention, a test method for the atomic capability of the client is proposed. By presetting a configuration file, when performing a target atomic capability test, it is only necessary to query the preset configuration file according to the number, that is, the script file for executing the target atomic capability and the target control instruction for controlling the execution of the target atomic capability can be directly obtained, thereby realizing the control of the vehicle terminal to automatically execute the target atomic capability and automatically test the target atomic capability. The configuration file integrates different types of command sets, and users do not need to go to different systems to check commands, which can reduce the cost of use and is more convenient. In addition, if test data needs to be updated and maintained later, the configuration file can be directly updated, which can greatly reduce the cost of subsequent maintenance.

[0010] In some embodiments of the present invention, the script file and the target control instruction are sent to the vehicle terminal, and feedback parameters of the vehicle terminal executing the target atomic capability are obtained, including: sending the script file and the function execution instruction to the vehicle terminal to control the vehicle terminal to execute the target atomic capability, and sending the function test instruction to the vehicle terminal to obtain the feedback parameters.

[0011] In some embodiments of the present invention, a verification method is determined, and the feedback parameters are verified according to the verification method, including: determining the verification method according to the type of the target atomic capability, and querying a preset configuration file according to the number to obtain verification data corresponding to the target atomic capability; according to the verification method, matching the verification data with the feedback parameters and obtaining a matching result.

[0012] In some embodiments of the present invention, the verification method includes at least one of system status verification, page display verification, and CAN bus command verification.

[0013] In some embodiments of the present invention, the verification method is determined according to the type of the target atomic capability, including: determining that the type of the target atomic capability is a system function type, and determining that the verification method is the system status verification and the page display verification; or, determining that the type of the target atomic capability is a display function type, and determining that the verification method is the page display verification; or, determining that the type of the target atomic capability is a vehicle control function type, and determining that the verification method is the page display verification and the CAN bus instruction verification.

[0014] In some embodiments of the present invention, the atomic capability testing method further includes: obtaining target atomic capability update data, and updating the data corresponding to the target atomic capability in the configuration file according to the target atomic capability update data; and / or obtaining target control instruction update data, and updating the target control instruction in the configuration file according to the target control instruction update data.

[0015] In order to achieve the above-mentioned purpose, the second embodiment of the present invention proposes a method for testing atomic capabilities, which is used on the vehicle side. The testing method includes: receiving a script file for executing the target atomic capability and a target control instruction for controlling the execution of the target atomic capability; responding to the target control instruction, controlling the entire vehicle to execute the target atomic capability according to the script file, and obtaining and sending feedback parameters for executing the target atomic capability.

[0016] According to the testing method for atomic capabilities of the vehicle-side proposed in an embodiment of the present invention, the relevant equipment in the vehicle is automatically controlled to execute the target atomic capabilities and send feedback parameters based on the script file and the target control instructions, thereby automatically testing the target atomic capabilities, which can improve the convenience of the entire testing process as a whole.

[0017] In some embodiments of the present invention, the target control instruction includes at least a function execution instruction and a function test instruction; in response to the target control instruction, the entire vehicle is controlled to execute the target atomic capability according to the script file, and feedback parameters for executing the target atomic capability are obtained and sent, including: in response to the function execution instruction, the entire vehicle is controlled to execute the target atomic capability according to the script file, and, in response to the function test instruction, feedback parameters for executing the target atomic capability are obtained and sent.

[0018] In order to achieve the third purpose, the third aspect of the present invention proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the atomic capability testing method described in any one of the first aspects above, or implements the atomic capability testing method described in any one of the second aspects above.

[0019] According to the non-temporary computer-readable storage medium proposed in an embodiment of the present invention, by presetting a configuration file that integrates different types of command sets on the client, the target atomic capability can be automatically tested, which can reduce the cost of use and is more convenient. In addition, if the test data needs to be updated and maintained later, the configuration file can be directly updated, which can greatly reduce the cost of subsequent maintenance. In addition, the vehicle terminal can automatically control the relevant equipment in the vehicle to execute the target atomic capability and send feedback parameters according to the script file and the target control instructions, thereby automatically testing the target atomic capability, which can improve the convenience of the entire test process as a whole.

[0020] In order to achieve the third purpose, the fourth aspect of the present invention proposes a system test of atomic capabilities, including: a client, which is used to execute the atomic capability testing method described in any one of the first aspects above; a vehicle, which is communicatively connected to the client, and is used to execute the atomic capability testing method described in any one of the second aspects above.

[0021] According to the system test of atomic capabilities proposed in an embodiment of the present invention, by presetting a configuration file that integrates different types of command sets, the client can automatically execute the operation of testing the target atomic capabilities, which can reduce the cost of use and is more convenient. In addition, if the test data needs to be updated and maintained later, the configuration file can be directly updated, which can greatly reduce the cost of subsequent maintenance. In addition, the vehicle side can automatically execute the operation of controlling the relevant equipment in the vehicle to execute the target atomic capability and send feedback parameters according to the script file and the target control instructions, thereby automatically testing the target atomic capability, which can improve the convenience of the entire test process as a whole.

[0022] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments with reference to the accompanying drawings, in which: Figure 1 A flowchart of a method for testing atomic capability according to one embodiment of the present invention; Figure 2 A flowchart of a method for testing atomic capability according to other embodiments of the present invention; Figure 3 is a flow chart of a method for testing atomic capability according to yet another embodiment of the present invention; Figure 4 is a flow chart of a method for testing atomic capability according to yet another embodiment of the present invention; Figure 5 FIG. 4 is a block diagram of an atomic capability testing system according to an embodiment of the present invention.

[0024] Reference numerals: Atomic capability test system 10; Client 1, Vehicle 2. DETAILED DESCRIPTION

[0025] The embodiments of the present invention will be described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. The embodiments of the present invention will be described in detail below.

[0026] The vehicle computer system is a very complex system, which contains dozens or even hundreds of functional modules. Each module supports a considerable number of debugging commands. Debugging commands are used in software development and system maintenance to help developers or system administrators locate and solve problems in the code or system. These commands can be used in different programming environments, operating systems or development tools, depending on the actual operating conditions of the system. In the prior art, verifying atomic capabilities is a very complicated matter. It is understandable that executing a single vehicle computer function is called an atomic capability, that is, each atomic capability corresponds to a function, and atomic capabilities include opening windows, turning on seat heating, playing songs, etc. In this regard, in some embodiments of the present invention, a method for testing atomic capabilities is proposed for use on the client.

[0027] The client can be a client computer that communicates with the vehicle-mounted system (VMS), or the vehicle-mounted terminal, to implement functions such as signal transmission and control. The full name of the VMS is the automotive VMS, also known as the in-vehicle infotainment system or in-vehicle multimedia system. It is an indispensable part of modern cars and integrates multiple functions designed to enhance the driving experience, entertainment, and safety.

[0028] The client computer has a visual interface that displays interaction information, control information, control instructions, and other data between the client and the vehicle computer. A visual interface typically refers to a GUI (Graphical User Interface), a display format for communication between humans and computers.

[0029] Both the client computer and the car terminal are equipped with the Android system. Android is an open source operating system led and developed by Google and the Open Handset Alliance. It is mainly used for mobile devices such as smartphones and tablets. It has the advantages of openness, rich application ecology and flexible customization.

[0030] Reference below Figure 1 and Figure 2A method for testing atomic capabilities of a client according to an embodiment of the present invention is described. Figure 1 4 is a flow chart of an atomic capability testing method according to an embodiment of the present invention, wherein the atomic capability testing method at least includes steps S1-S3, which are specifically as follows.

[0031] S1, in response to an atomic capability test instruction, determining the number of a target atomic capability.

[0032] Among them, a preset configuration file (Configuration File) can be stored in the client computer, and the configuration file stores all atomic capabilities that support verification. Specifically, a configuration file is a computer file used to configure parameters and initial settings for computer programs or systems. The configuration file usually contains various information required for the operation of the program, such as the configuration of hardware devices, the switching of software functions, the settings of the user interface, etc. This information is stored in the file in a specific format (such as INI, XML, JSON, etc.) for the program to read when it starts or during operation. A configuration file can be pre-made and written into the client computer in advance. The configuration file stores all atomic capabilities that support verification, which at least includes programs and related control instructions for controlling the execution of all atomic capabilities.

[0033] The user can view all atomic capabilities that support verification on the client computer and select verification. When the user tests the atomic capability, after the user selects one or more target atomic capabilities, the corresponding target atomic capability number will be matched.

[0034] S2, querying a preset configuration file according to the number to obtain a script file for executing the target atomic capability and a target control instruction for controlling the execution of the target atomic capability, wherein the target control instruction at least includes a function execution instruction and a function test instruction.

[0035] Specifically, the configuration file contains built-in programs and target control instructions for controlling the execution of all atomic capabilities. The client computer can generate a script file based on the program for executing the target atomic capability obtained from the configuration file, as well as generate target control instructions for controlling the execution of the target atomic capability. Among them, the target control instructions include at least function execution instructions and function test instructions. The function execution instructions are used in the function execution process of the target atomic capability. After the function execution instructions are sent to the vehicle-side, they are used to control the corresponding components or devices in the vehicle-side to execute the target atomic capability. The function test instructions are used in the function test process of the target atomic capability. After the function test instructions are sent to the vehicle-side, they are used to control the vehicle-side to execute the test process.

[0036] It is understandable that after the user selects a target atomic capability, the client computer will query the instruction configuration of the configuration file according to the target atomic capability number to find a series of instruction configurations corresponding to the atomic capability, that is, to query and obtain the function execution instructions and function test instructions for controlling the execution of the target atomic capability. Alternatively, the client computer can directly generate function execution instructions and function test instructions for controlling the execution of the target atomic capability based on the script about the target atomic capability obtained from the configuration file.

[0037] S3, sends the script file and target control instructions to the vehicle side, and obtains the feedback parameters of the vehicle side's ability to execute the target atomicity.

[0038] Among them, the atomic capability functional verification of the embodiment of the present invention is divided into two parts: function execution and function verification. For the function execution part, a script file and a function execution instruction are sent to control the vehicle-side to execute the target atomic capability. Specifically, the configuration file has a built-in program for executing the target atomic capability. When the preset configuration file is queried according to the number of the target atomic capability, a script is constructed to contain the target atomic capability to be executed. Among them, the script in this embodiment is a collection of target atomic capabilities, which are combined and generated into a script file, and the script file is pushed to the hard disk of the vehicle-side. The function execution instruction is used to control the vehicle-side to read the script file to execute the target atomic capability.

[0039] For example, when the target atomic capabilities to be executed include opening the sunroof, adjusting the seats, and turning on the audio system to play music, first determine the three corresponding numbers for the pre-set control of the sunroof, the control of the seats, and the control of the audio system. Then, search the configuration files for the corresponding control programs, function execution instructions, and function test instructions based on these three numbers. Integrate all the acquired control programs into a script, and generate a script file based on the script for sending to the hard disk of the vehicle computer. Send the script file and the function execution instruction to the hard disk of the vehicle computer. The function execution instruction is used to control the vehicle computer to perform the operations of opening the sunroof, adjusting the seats, and turning on the audio system to play music.

[0040] Specifically, the script file is pushed to the vehicle's hard drive. After the function execution instructions are sent to the vehicle, the vehicle sends an ADB (Android Debug Bridge) broadcast to the scenario engine to execute the script file. Upon receiving the broadcast, the scenario engine locates the script file and executes the function. ADB, or Android Debug Bridge, is a crucial tool in the Android system, serving as a bridge between Android devices and computers. ADB allows developers to debug, install apps, transfer files, and perform other operations on Android devices from a computer. Furthermore, Android Broadcast is a key communication mechanism in the Android operating system, allowing messages to be passed between applications or between different components within an application. This mechanism is based on the Observer pattern, in which an object (the Observed) actively notifies all interested objects (Observers) when its state changes. In Android, the broadcast mechanism primarily consists of three components: the Broadcast Sender, the Broadcast Receiver, and the System. The Scenario Engine is a low-code execution engine responsible for reading the script file, converting the target atomic capabilities into various functional items, and ultimately executing the specific functions.

[0041] And, for the function verification part, the client sends a function test instruction to the vehicle-side to obtain feedback parameters for executing the target atomic capability, thereby realizing the test of the target atomic capability executed by the vehicle-side. Taking the target atomic capability in the above embodiment including opening the sunroof, adjusting the seat, and turning on the audio to play music as an example, after the function test instruction is sent to the vehicle-side, it is used to obtain feedback parameters for the vehicle-side to execute the operations of opening the sunroof, adjusting the seat, and turning on the audio to play music. Specifically, the feedback parameters may include system status parameters such as the operating status and system status of each device, multimedia page display parameters and CAN bus command parameters such as the CAN command sent by the vehicle-side to the target device, etc., and the obtained feedback parameters are verified to realize the test of the target atomic capability executed by the vehicle-side.

[0042] S4: Determine a verification method and verify the feedback parameters according to the verification method.

[0043] When a user selects a target atomic capability, the client computer determines the type of the target atomic capability based on the target atomic capability number and determines a verification method based on the target atomic capability type. The client computer then verifies the acquired system status parameters and / or multimedia page display parameters and / or CAN bus command parameters based on the determined verification method.

[0044] According to the test method for the atomic capability of the client proposed in an embodiment of the present invention, by presetting a configuration file, when performing the target atomic capability test, it is only necessary to query the preset configuration file according to the number, that is, the script file for executing the target atomic capability and the target control instruction for controlling the execution of the target atomic capability can be directly obtained, thereby realizing the control of the vehicle end to automatically execute the target atomic capability and automatically test the target atomic capability. The configuration file integrates different types of command sets, and users do not need to go to different systems to check commands, which can reduce the cost of use and is more convenient. In addition, if test data needs to be updated and maintained later, the configuration file can be directly updated, which can greatly reduce the cost of subsequent maintenance.

[0045] In some embodiments of the present invention, Figure 2 As shown, it is a flow chart of the atomic capability testing method according to some other embodiments of the present invention, wherein the verification method is determined, and the feedback parameters are verified according to the verification method, that is, the above step S4 specifically includes step S41 and step S42, as follows.

[0046] S41, determining a verification method according to the type of the target atomic capability, and querying a preset configuration file according to the number to obtain verification data corresponding to the target atomic capability.

[0047] When the user selects a target atomic capability, the client computer will query the instruction configuration of the preset configuration file based on the target atomic capability number to find a series of instruction configurations corresponding to the atomic capability, that is, the target control instructions. After finding the corresponding target control instructions, the verification method is determined according to the type of target atomic capability.

[0048] In some embodiments, there are three different verification methods for the functional verification portion, including at least one of system status verification, page display verification, and CAN bus command verification. The system status verification method is used to verify the fed-back system status parameters, the page display verification method is used to verify the fed-back multimedia page display parameters, and the CAN bus command verification method is used to verify the fed-back CAN bus command parameters.

[0049] Furthermore, the verification data may include verification data of system status parameters, page display parameters, and CAN bus command parameters. These verification data may be pre-set expected feedback parameters, such as expected system status parameters, expected page display parameters, and expected CAN bus command parameters. Taking system status parameters as an example, system status parameters are actually indicators of some vehicle-mounted systems, such as CPU load, memory status, and other parameters.

[0050] S42: According to the verification method, the verification data is matched with the feedback parameter and a matching result is obtained.

[0051] Specifically, for system status verification, the client computer sends an ADB command, a type of functional test command, to the vehicle computer. The vehicle computer then begins collecting relevant parameters and writing them to the system status file. A delay occurs to allow these parameters, namely the system status parameters, to be acquired. The client computer then reads the system status file to obtain the system status parameters. By matching these system status parameters with the expected system status parameters, a match is determined. For page display verification, a delay is first applied before collecting the relevant page display parameters to ensure the target atomic capability is complete. A system command is then used to capture the current page, obtaining the page display parameters and transmitting them to the client computer. The client computer, which has a pre-configured model, then uses the model to perform image recognition and match the image with the expected target image. Based on the similarity, the client computer determines whether the target page has been successfully redirected. Furthermore, for CAN bus command verification, the client continuously monitors commands sent from the Android platform to the QNX platform using a CAN bus tool for 10 seconds, as this ensures that all commands have been fully delivered. Because many commands are actually issued, a command is considered successfully issued if it contains all target command sets. CAN bus tools include a series of tools for testing, analyzing, and debugging the CAN (Controller Area Network) communication protocol, such as the USBCAN-I-mini device and its accompanying drivers and host computer analysis software (such as cantest). These tools are widely used in industrial automation, automotive electronics, aerospace, and other fields, and are highly efficient and reliable.

[0052] Furthermore, in some embodiments, the verification method is determined according to the type of the target atomic capability, and different combinations of the above three verification methods can be selected according to different needs of the target atomic capability.

[0053] Specifically, the type of the target atomic capability is determined to be a system function type. Since the target atomic capability of the system function type involves page changes and system status changes, the verification method is determined to be system status verification and page display verification. Alternatively, the type of the target atomic capability is determined to be a display function type. Since the target atomic capability of the display function type only involves page changes, the verification method is determined to be page display verification. Alternatively, the type of the target atomic capability is determined to be a vehicle control function type. Since the target atomic capability of the vehicle control function type involves page changes and vehicle control status changes, the verification method is determined to be page display verification and CAN bus command verification.

[0054] Finally, all the final matching results are judged. If the final matching result is yes, the user is prompted that the atomic capability verification is successful, otherwise the user is prompted that the atomic capability verification fails.

[0055] In some embodiments of the present invention, the atomic capability testing method further includes: obtaining target atomic capability update data, and updating data corresponding to the target atomic capability in a preset configuration file according to the target atomic capability update data. And / or obtaining target control instruction update data, and updating the target control instruction in the preset configuration file according to the target control instruction update data.

[0056] It is understandable that since a preset configuration file is stored in the client computer, which contains all atomic capabilities that support verification, when adding new functions later, it is only necessary to modify the configuration file.

[0057] For example, when it is necessary to update the target atomic capability in the configuration file, the corresponding target atomic capability configuration in the configuration file can be directly updated according to the target atomic capability update data. For example, if it is necessary to update or rewrite the control program of a certain target atomic capability, the program part of the target atomic capability in the configuration file can be directly updated without updating all the control programs. Alternatively, when it is necessary to update the target control instruction in the configuration file, the corresponding target control instruction configuration in the configuration file can be directly updated according to the target control instruction update data. For example, if it is necessary to update the function execution instruction for controlling the atomic function of executing window opening, and / or the function test instruction for testing the execution of the window opening operation, then only the corresponding function execution instruction and / or function test instruction in the configuration file need to be updated, without updating all the control instructions.

[0058] In addition, the page of the client computer can display functions. The operator can directly understand the various parameters, configuration files, operation commands, etc. obtained during the atomic capability testing method by viewing the page, and can also display the atomic capability test results, i.e. matching results, etc. The page of the client computer is also configured through the configuration file and supports dynamic updates. When adding new functions later, it only needs to modify the configuration.

[0059] The atomic capability testing method for a client according to an embodiment of the present invention supports dynamic configuration, which can significantly reduce subsequent maintenance costs and greatly improve usage efficiency through a graphical interface.

[0060] In some embodiments of the present invention, a method for testing the atomic capability of the vehicle terminal is also proposed, such as Figure 3 FIG. 1 is a flow chart of a method for testing atomic capability according to another embodiment of the present invention, wherein the testing method at least includes step S10 and step S20, as detailed below.

[0061] S10, receiving a script file for executing a target atomic capability and a target control instruction for controlling the execution of the target atomic capability.

[0062] The target control instructions include at least function execution instructions and function test instructions.

[0063] Specifically, the script file is pushed to the hard disk of the vehicle computer, and the function execution instructions and function test instructions are sent to the vehicle computer. The function execution instructions are used to control the vehicle computer to read the script file to execute the target atomic capability, and the function test instructions are used to test the target atomic capability executed by the vehicle computer.

[0064] S20, in response to the target control instruction, controlling the entire vehicle to execute the target atomic capability according to the script file, and obtaining and sending feedback parameters for executing the target atomic capability.

[0065] In some embodiments, in response to a function execution instruction, the entire vehicle is controlled to execute the target atomic capability according to a script file, and, in response to a function test instruction, feedback parameters for executing the target atomic capability are obtained and sent.

[0066] Specifically, the script file is pushed to the hard disk of the vehicle side. After the function execution instruction is sent to the vehicle side, the vehicle side will send an ADB broadcast to notify the scene engine to execute the script file. After receiving the broadcast, the scene engine will find the script file and execute the function. In addition, after the function test instruction is sent to the vehicle side, it is used to obtain feedback parameters of the vehicle side's ability to execute the target atomic function. Among them, the feedback parameters may include system status parameters, multimedia page display parameters, and CAN bus command parameters. By verifying the obtained feedback parameters, the vehicle side's ability to execute the target atomic function can be tested.

[0067] According to the testing method for atomic capabilities of the vehicle-side proposed in an embodiment of the present invention, the relevant equipment in the vehicle is automatically controlled to execute the target atomic capabilities and send feedback parameters based on the script file and the target control instructions, thereby automatically testing the target atomic capabilities, which can improve the convenience of the entire testing process as a whole.

[0068] like Figure 4 FIG. 2 is a flow chart of an atomic capability testing method according to another embodiment of the present invention, wherein the atomic capability testing method includes steps S101 - S120 , which are specifically as follows.

[0069] The test begins.

[0070] S101: The client displays a list of supported atomic capabilities. When updating an atomic capability, the atomic capability configuration in the configuration file may be directly updated.

[0071] S102 , the user selects a target atomic capability and clicks it.

[0072] S103, searching for instructions according to the target atomic capability, wherein the number of the target atomic capability can be obtained, and the target control instruction can be searched from the configuration file according to the number. In addition, when the relevant control instructions are updated later, the instruction configuration in the configuration file can be directly updated.

[0073] S104, constructing a script file according to the target atomic capability.

[0074] S105, sending the script file to the vehicle hard disk.

[0075] S106, the vehicle computer sends an ADB broadcast command to notify the scene engine.

[0076] S107, the scenario engine executes the target atomic capability.

[0077] S108: Determine the type of the target atomic capability. The atomic capability type includes at least one of a system function type, a display function type, and a vehicle control function type.

[0078] S109: For the system function type, send an ADB command to notify the vehicle system.

[0079] S110, delaying a certain time to obtain system status parameters.

[0080] S111, matching system status parameters and obtaining matching results.

[0081] S112, delaying OCR recognition of the page for a certain period of time.

[0082] S113, matching page display parameters and obtaining matching results.

[0083] S114, the CAN bus tool continues to monitor and issue commands.

[0084] S115, matching CAN bus command parameters and obtaining matching results.

[0085] S116: Summarize all matching results and output them.

[0086] S117, prompting the user that the target atomic capability verification is successful.

[0087] S118, prompting the user that the target atomic capability verification has failed.

[0088] The process ends.

[0089] In some embodiments of the present invention, a non-temporary computer-readable storage medium is also proposed, on which a computer program is stored. When the computer program is executed by a processor, it implements the atomic capability testing method of any one of the above first aspect embodiments, or implements the atomic capability testing method of any one of the above second aspect embodiments.

[0090] According to the non-temporary computer-readable storage medium proposed in an embodiment of the present invention, by presetting a configuration file that integrates different types of command sets on the client, the target atomic capability can be automatically tested, which can reduce the cost of use and is more convenient. In addition, if the test data needs to be updated and maintained later, the configuration file can be directly updated, which can greatly reduce the cost of subsequent maintenance. In addition, the vehicle terminal can automatically control the relevant equipment in the vehicle to execute the target atomic capability and send feedback parameters according to the script file and the target control instructions, thereby automatically testing the target atomic capability, which can improve the convenience of the entire test process as a whole.

[0091] In some embodiments of the present invention, a system test of atomic capabilities is also proposed, such as Figure 5 , which is a block diagram of an atomic capability testing system according to an embodiment of the present invention, wherein the atomic capability testing system 10 includes a client 1 and a vehicle 2 .

[0092] The client 1 is used to execute the atomic capability testing method of any one of the first embodiment above. The vehicle 2 is connected to the client 1 in communication, and the vehicle 2 is used to execute the atomic capability testing method of any one of the second embodiment above.

[0093] Specifically, client 1 can be a client computer. Client 1 is connected to the vehicle computer system (i.e., the vehicle computer terminal) in vehicle 2 to implement functions such as signal transmission and control. The client computer has a visual interface for displaying data such as interaction information, control information, and control instructions between client 1 and vehicle 2. Both client 1 and vehicle 22 are equipped with the Android operating system.

[0094] According to the atomic capability testing system 10 proposed in an embodiment of the present invention, by presetting a configuration file that integrates different types of command sets, the client 1 can automatically execute the operation of testing the target atomic capability, which can reduce the cost of use and is more convenient. In addition, if the test data needs to be updated and maintained later, the configuration file can be directly updated, which can greatly reduce the cost of subsequent maintenance. In addition, the vehicle 2 can automatically execute the operation of controlling the relevant equipment in the vehicle to execute the target atomic capability and send feedback parameters according to the script file and the target control instructions, thereby automatically testing the target atomic capability, which can improve the convenience of the entire test process as a whole. Other structures and operations of the atomic capability testing system 10 according to the embodiment of the present invention are known to those skilled in the art and will not be described in detail here.

[0095] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include one or more of such features. Throughout this application, unless otherwise specified, "plurality" means two or more.

[0096] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "example," "specific example," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.

[0097] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.

Claims

1. A method for testing atomic power, characterized in that: For the client, the test method includes: In response to an atomic capability test instruction, determining a number of a target atomic capability; Querying a preset configuration file according to the number to obtain a script file for executing the target atomic capability and a target control instruction for controlling the execution of the target atomic capability, wherein the target control instruction at least includes a function execution instruction and a function test instruction; Sending the script file and the target control instruction to the vehicle machine end, and obtaining feedback parameters of the vehicle machine end executing the target atomic capability; A verification method is determined, and the feedback parameter is verified according to the verification method.

2. The atomic capacity testing method according to claim 1, characterized in that: Sending the script file and the target control instruction to the vehicle machine end, and obtaining the feedback parameter of the vehicle machine end executing the target atomic capability, including: The script file and the function execution instruction are sent to the vehicle terminal to control the vehicle terminal to execute the target atomic capability, and the function test instruction is sent to the vehicle terminal to obtain the feedback parameter.

3. The atomic power testing method according to claim 2, characterized in that: Determining a verification method, and verifying the feedback parameter according to the verification method, includes: Determining the verification method according to the type of the target atomic capability, and querying a preset configuration file according to the number to obtain verification data corresponding to the target atomic capability; According to the verification method, the verification data is matched with the feedback parameter and a matching result is obtained.

4. The atomic capacity testing method according to claim 3, characterized in that: The verification method includes at least one of system status verification, page display verification and CAN bus instruction verification.

5. The atomic capacity testing method according to any one of claims 1 to 4, characterized in that: The verification method is determined according to the type of the target atomic capability, including: Determining that the type of the target atomic capability is a system function type, and determining that the verification method is the system status verification and the page display verification; Alternatively, determining that the type of the target atomic capability is a display function type, and determining that the verification method is the page display verification; Alternatively, it is determined that the type of the target atomic capability is a vehicle control function type, and the verification method is determined to be the page display verification and the CAN bus command verification.

6. The atomic power testing method according to claim 5, characterized in that: Also includes: Acquire target atomic capability update data, and update data corresponding to the target atomic capability in the configuration file according to the target atomic capability update data; And / or, obtaining target control instruction update data, and updating the target control instruction in the configuration file according to the target control instruction update data.

7. A method for testing atomic power, characterized in that: For the vehicle terminal, the test method includes: receiving a script file for executing a target atomic capability and a target control instruction for controlling the execution of the target atomic capability; In response to the target control instruction, the entire vehicle is controlled to execute the target atomic capability according to the script file, and feedback parameters for executing the target atomic capability are obtained and sent.

8. The atomic power testing method according to claim 7, characterized in that: The target control instructions at least include function execution instructions and function test instructions; In response to the target control instruction, controlling the entire vehicle to execute the target atomic capability according to the script file, and obtaining and sending feedback parameters for executing the target atomic capability, including: In response to the function execution instruction, the entire vehicle is controlled to execute the target atomic capability according to the script file, and, in response to the function test instruction, feedback parameters for executing the target atomic capability are obtained and sent.

9. A non-transitory computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the atomic capacity testing method described in any one of claims 1-6 is implemented, or the atomic capacity testing method described in any one of claims 7-8 is implemented.

10. A system test of atomic capability, characterized in that: include: A client, the client being used to execute the atomic capability testing method according to any one of claims 1 to 6; A vehicle, the vehicle being communicatively connected to the client, and the vehicle being used to execute the atomic capability testing method described in any one of claims 7-8.