Controller test method, device and equipment, storage medium and vehicle

By obtaining and running the image file corresponding to the target test information of the controller, the problem of single function and low test efficiency of the vehicle controller test bench in the existing technology is solved, and the effect of quickly switching test types and improving test efficiency is achieved.

CN119335987APending Publication Date: 2025-01-21BEIJING CO WHEELS TECH CO LTD
0 Cites 2 Cited by

Patent Information

Application Number
CN202310898982.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-20
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The hardware peripherals of the existing vehicle-mounted controller test bench are complex to deploy and have single functions, resulting in low testing efficiency, and the transformation or building of new test benches takes a long time, high workload and high labor costs.

Method used

By obtaining the target test information of the controller, including identification and test information, obtain the corresponding image file, which contains the image information of the virtual machine, and run the image file on the test bench to perform target testing on the controller.

Benefits of technology

It realizes rapid switching of test types during full-scale testing, solves the problem of single function of the existing bench, improves the testing efficiency of the controller, and reduces workload and labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119335987A_ABST
    Figure CN119335987A_ABST
Patent Text Reader

Abstract

The invention relates to a controller test method, device and equipment, a storage medium and a vehicle, and the method comprises the steps: obtaining the target test information of a controller, and the target test information comprises the identification and test information of the controller; obtaining a mirror image file corresponding to the identifier and the test information, wherein the mirror image file comprises mirror image information of a virtual machine for testing the controller; and running the mirror image file through a test bench of the controller, and carrying out target test on the controller. According to the method and the device, the target test is performed on the controller by running the mirror image file, and the test type can be quickly switched in the full test, so that the problem of single function of the existing rack is solved, and the test efficiency of the controller is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a controller testing method, device, equipment, storage medium and vehicle. Background Art

[0002] In the prior art, the hardware peripherals of the vehicle controller test bench are complex to deploy and the test bench has a single function. For example, the functional test bench of the platform domain controller can only perform functional tests on the platform domain controller, and cannot perform other tests on the platform domain controller. Building a new controller test bench or modifying an existing controller test bench takes a long time, requires a large workload, and has high labor costs, resulting in low controller testing efficiency. Summary of the invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a controller testing method, device, equipment, storage medium and vehicle to improve the testing efficiency of the controller.

[0004] In a first aspect, an embodiment of the present disclosure provides a method for testing a controller, comprising:

[0005] Acquire target test information of a controller, wherein the target test information includes an identifier and test information of the controller;

[0006] Acquire an image file corresponding to the identifier and the test information, wherein the image file includes image information of a virtual machine for testing the controller;

[0007] The image file is run through the test bench of the controller to perform a target test on the controller.

[0008] In a second aspect, an embodiment of the present disclosure provides a device for building a test bench, comprising:

[0009] A first acquisition module, used to acquire target test information of the controller, wherein the target test information includes an identifier and test information of the controller;

[0010] A second acquisition module, used to acquire an image file corresponding to the identifier and the test information, wherein the image file includes image information of a virtual machine for testing the controller;

[0011] The running module is used to run the image file through the test bench of the controller to perform a target test on the controller.

[0012] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0013] Memory;

[0014] Processor; and

[0015] Computer programs;

[0016] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.

[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method described in the first aspect.

[0018] In a fifth aspect, an embodiment of the present disclosure further provides a vehicle, comprising: a test device for a controller as described in the second aspect; or, an electronic device as described in the third aspect; or, a computer-readable storage medium as described in the fourth aspect.

[0019] The test method, apparatus, device, storage medium and vehicle for the controller provided by the embodiments of the present disclosure obtain target test information of the controller, wherein the target test information includes an identification and test information of the controller; obtain an image file corresponding to the identification and the test information, wherein the image file includes image information of a virtual machine for testing the controller; and run the image file through a test bench of the controller to perform a target test on the controller. By running the image file to perform a target test on the controller, the test type can be quickly switched during a full test, which not only solves the problem of single function of existing benches, but also improves the test efficiency of the controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

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

[0022] Figure 1 A flow chart of a method for testing a controller provided in an embodiment of the present disclosure;

[0023] Figure 2 It is a structural schematic diagram of a test bench in the prior art;

[0024] Figure 3 A schematic diagram of the structure of a test bench provided in an embodiment of the present disclosure;

[0025] Figure 4A schematic diagram of the structure of a test device for a controller provided in an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0029] The present disclosure provides a method for testing a controller, which is described below in conjunction with a specific embodiment.

[0030] Figure 1 A flow chart of a controller testing method provided in an embodiment of the present disclosure. The method can be executed by a controller testing device, which can be implemented in software and / or hardware, and can be configured in an electronic device, such as a server or a terminal, wherein the terminal specifically includes a test bench, etc. In addition, the method can be applied to application scenarios of controller testing, and it can be understood that the controller testing method provided in an embodiment of the present disclosure can also be applied in other scenarios.

[0031] Figure 1 The following is a flow chart of a test method for a controller provided in an embodiment of the present disclosure. Figure 1 The test method of the controller shown in the figure is introduced, and the specific steps of the method are as follows:

[0032] S101. Obtain target test information of a controller, where the target test information includes an identifier and test information of the controller.

[0033] The target test information of the controller is obtained, where the target test information includes the identification of the controller and the test information, wherein the identification of the controller includes the model and style of the controller, and the test information includes function test, performance test, and stability test.

[0034] Specifically, the controller models include body control module (BCM), electronic power steering system (Electric Power Steering, EPS), steering angle sensor (Steering Angle Sensor, SAS), electronic parking brake system (Electronic Parking Brake System, EPB), electronic stability program (Electronic Stability Program, ESP), etc.

[0035] Specifically, the controller styles include platform domain controllers and platform intelligent domain controllers. For example, the platform domain controller may be an ideal X platform domain controller, i.e., an XCU controller; the platform intelligent domain controller may be an ideal X platform intelligent domain controller, i.e., an ADNOA controller. The controller model may be selected from multiple models of XCU controllers and ADNOA controllers.

[0036] Specifically, functional testing, also known as behavioral testing, tests the characteristics and operational behaviors of a product based on product features, operation descriptions, and user scenarios to determine whether it meets design requirements.

[0037] Specifically, performance testing is to test various performance indicators of the system by simulating a variety of normal, peak and abnormal load conditions through automated testing tools.

[0038] Specifically, stability testing evaluates stability issues and tests the efficiency and ability of the controller to operate continuously over a long period of time.

[0039] S102: Obtain an image file corresponding to the identifier and the test information, where the image file includes image information of a virtual machine that tests the controller.

[0040] An image file corresponding to the identification and test information of the controller is obtained, where the image file includes image information of a virtual machine for testing the controller.

[0041] Exemplarily, when the controller is an XCU body controller (i.e., the controller style is XCU controller and the model is body controller) and the test information is a functional test, an image file corresponding to the identification of the controller and the test information is obtained. The image file is the image information of the virtual machine for performing functional testing on the XCU body controller.

[0042] Optionally, obtaining the image file corresponding to the identifier and the test information includes: determining the image file corresponding to the target test information; determining the identifier based on the image file; downloading the image file from the server, and saving the image file to the virtual machine client.

[0043] Specifically, determine the image file corresponding to the target test information, which image file includes at least hardware equipment, virtual machine operating system and test software; based on the image file, check whether the identifier of the controller in the image file is consistent with the identifier of the controller in the target test information; when the identifier of the controller in the image file is consistent with the identifier of the controller in the target test information, determine the identifier of the controller, download the image file from the server, and save the image file to the virtual machine client.

[0044] Optionally, the process of making the image file includes: obtaining a basic image file, the basic image file including a virtual machine operating system; running the basic image file on the virtual machine operating system, importing the test software corresponding to the target test, installing the test driver corresponding to the target test, and running the test script corresponding to the target test, thereby executing the target test of the controller; when the target test result of the controller is a successful test, making an image snapshot of the target test and saving the image file corresponding to the target test to the server.

[0045] Specifically, a basic image file is obtained, which includes a virtual machine operating system; on the virtual machine operating system, the basic image file is run, the test software corresponding to the target test is imported, the test driver corresponding to the target test is installed, and the test script corresponding to the target test is run, thereby executing the target test of the controller; when the target test result of the controller is a successful test, an image snapshot of the target test is made, and the image file corresponding to the target test is saved to the server.

[0046] Optionally, according to the virtualization technology of the private cloud, a virtual machine client is set on a personal computer, and the virtual machine client is used to start the image file stored on the server.

[0047] The virtualization technologies of private clouds include platform virtualization, resource virtualization and application virtualization. Platform virtualization is aimed at the virtualization of computers and operating systems; resource virtualization is aimed at the virtualization of specific system resources, such as memory, storage, network resources, etc.; application virtualization includes simulation, emulation, interpretation technology, etc.

[0048] Specifically, a virtual machine client is set on a personal computer (PC), and the virtual machine client can start the image file stored in the server. The server and the virtualization terminal can communicate through the network. After the image file is started, the operating system packaged in the image file is entered. The operating system has preset test cases, test equipment drivers, and test scripts. The target test is executed. On the test bench corresponding to the controller, the virtual machine client software is opened from the host PC, and the image file corresponding to the target test is selected from the server. The image file is run. After the image is started, the test script in the image file is executed. After the test is completed, the image is closed.

[0049] S103: Run the image file through the test bench of the controller to perform a target test on the controller.

[0050] The image file is run through the test bench of the controller to perform target testing on the controller.

[0051] Optionally, the image file is run through the test bench of the controller to perform a target test on the controller, including: on the virtual machine operating system, controlling the hardware device of the test bench to execute the test software to perform a target test on the controller.

[0052] Specifically, the image file is run by the constructed test bench of the controller, that is, on the virtual machine operating system, the hardware equipment of the test bench is controlled to execute the test software, thereby achieving the target test of the controller.

[0053] The disclosed embodiment obtains target test information of a controller, wherein the target test information includes an identifier and test information of the controller; obtains an image file corresponding to the identifier and the test information, wherein the image file includes image information of a virtual machine for testing the controller; and runs the image file through a test bench of the controller to perform a target test on the controller. By running the image file to perform the target test on the controller, the test type can be quickly switched during a full test, which not only solves the problem of single function of existing benches, but also improves the test efficiency of the controller.

[0054] In some embodiments, before obtaining the image file corresponding to the identifier and the test information, it includes: deploying hardware equipment for full testing of the controller, configuring a virtual machine operating system and test software information for full testing of the controller; and storing the image file used by the virtual machine.

[0055] According to the hardware equipment deployment for full-scale testing of the controller, configure the virtual machine operating system and test software information for full-scale testing of the controller; and store the image file used by the virtual machine.

[0056] Optionally, the hardware equipment deployment for full testing of the controller and the configuration of information of the virtual machine operating system and test software for full testing of the controller include: obtaining the identification of the controller; determining the test bench corresponding to the identification of the controller; based on the controller and the test bench, deploying the hardware equipment for full testing of the controller; configuring the virtual machine operating system and test software information for full testing of the controller; respectively connecting the controller, the hardware peripherals and the virtual machine operating system, and installing the test software into the operating system to complete the construction of the test bench.

[0057] Obtain the identification of the controller, which includes the model and style of the controller, determine the test bench corresponding to the identification of the controller, bind the controller to the test bench, and deploy the hardware equipment for full testing of the controller according to the controller and the test bench, wherein the full testing includes functional testing, performance testing, stability testing, etc., and the hardware equipment includes: communication equipment, simulation equipment, acquisition equipment, programmable equipment, etc.; configure the virtual machine operating system and test software information for the full testing of the controller; respectively connect the controller, hardware peripherals and virtual machine operating system, illustratively, connect the controller, hardware peripherals and operating system through communication links and complex drive links; install the test software into the virtual machine operating system to complete the construction of the test bench.

[0058] The controller, hardware peripherals and operating system are connected through communication links and complex driver links. Specifically, all hardware peripherals are connected, including controller area network (CAN) bus communication equipment, Ethernet communication equipment, serial bus communication equipment, signal simulation equipment, signal acquisition equipment, board power supply programmable equipment, programmable power supply, programmable relay, etc. The connection through the communication link can be connected through a hardware interface or wirelessly through a personal computer.

[0059] Optionally, the test software information includes at least: preset test cases, test drivers, and test scripts.

[0060] Specifically, a test case contains test steps, test data, preconditions, postconditions developed for a specific test scenario to verify any requirements. A test case includes specific variables or conditions that test engineers can use to compare expected results with actual results to determine whether the software product performs as per the customer's requirements.

[0061] Specifically, a test driver is a software module dedicated to testing, which takes the software to be tested and the test requirements as input, and can control the progress of the test and report the test results.

[0062] Specifically, a test script refers to a series of instructions for a specific test that can be executed by an automated testing tool. In order to improve the maintainability and reusability of test scripts, they must be constructed before executing them. Test scripts are computer-readable instructions that automatically execute the test process (or part of the test process). Test scripts can be created (recorded) or automatically generated using a test automation tool, or programmed in a programming language.

[0063] Optionally, the hardware device includes at least: a communication device, a simulation device, a collection device, and a programmable device.

[0064] Specifically, the communication equipment includes Controller Area Network (CAN) bus communication equipment, Ethernet communication equipment, and serial bus communication equipment. The communication equipment includes a hardware interface, a PC, and a host computer software (software stored in a virtual machine image file).

[0065] Specifically, the programmable device includes a board power supply programmable device, a programmable power supply, a programmable relay, and a host computer control software (control software stored in a virtual machine image file).

[0066] Specifically, the simulation device includes a signal simulation device.

[0067] Specifically, the acquisition device includes a signal acquisition device.

[0068] For example, Figure 2 As shown, in the prior art, the function of the test bench is single, for example, the six test benches are function test bench 1, performance test bench 1, stability test bench 1, function test bench 2, performance test bench 2, and stability test bench 2, wherein function test bench 1 can only test the function of the XCU controller, performance test bench 1 can only test the performance of the XCU controller, and stability test bench 1 can only test the stability of the XCU controller. Similarly, function test bench 2 can only test the function of the ADNOA controller, performance test bench 2 can only test the performance of the ADNOA controller, and stability test bench 2 can only test the stability of the ADNOA controller. The test bench provided in this embodiment is bound to the style of the controller and the corresponding test bench, such as Figure 3As shown, test bench 1, test bench 2, and test bench 3 can all perform full testing on the XCU controller, that is, test bench 1, test bench 2, and test bench 3 can all perform functional testing, performance testing, and stability testing on the XCU controller; test bench 4, test bench 5, and test bench 6 can all perform full testing on the ADNOA controller, that is, test bench 4, test bench 5, and test bench 6 can all perform functional testing, performance testing, and stability testing on the ADNOA controller.

[0069] The disclosed embodiment configures the virtual machine operating system and test software information for the full test of the controller by deploying the hardware equipment for the full test of the controller; and stores the image files used by the virtual machine, which not only completes the construction of the test bench, but also quickly switches the test type in the full test by running the image files corresponding to different tests, thereby solving the problem of the single function of the existing bench, shortening the test time, reducing the workload, reducing the labor cost, and improving the test efficiency of the controller.

[0070] In some embodiments, a basic image file is run; a target test is selected from the full test; the test software corresponding to the target test is imported, a test driver corresponding to the target test is installed, and a test script corresponding to the target test is run; when the target test is successfully executed, an image snapshot of the target test is made, and the image file corresponding to the target test is saved; and the image file corresponding to the target test is distributedly stored on the server.

[0071] Specifically, a basic image file is run, which only contains the Windows operating system; a target test is selected from the full test, such as a performance test; the test software corresponding to the performance test is imported, a test driver corresponding to the performance test is installed, and a test script corresponding to the performance test is run; when the performance test is successfully executed, a mirror snapshot of the performance test is made, and the mirror file corresponding to the performance test is saved; and the mirror file corresponding to the performance test is distributedly stored on the server.

[0072] Correspondingly, for each target test in the full test, select the image file corresponding to the target test, and perform target test on the controller, including: for each target test in the full test, select the image file corresponding to the target test from the storage location, run the image file, and execute the test driver in the image file; perform target test on the controller.

[0073] Specifically, for each target test in the full test, such as a performance test, select the image file corresponding to the performance test from the above storage location (i.e., the server), run the image file, and execute the test driver in the image file; and perform a performance test on the controller. It is understandable that the image file corresponding to the performance test can be deployed on multiple test benches, and each test bench tests a part of the content and summarizes it, that is, multiple test benches perform distributed performance tests on the controller.

[0074] In some embodiments, when a new test bench is added, the controller is bound to the new test bench; the full test corresponding to the controller is determined, and the hardware equipment for the controller to perform the full test is deployed; the virtual machine operating system and test software information for the controller to perform the full test are configured, so that the new bench can achieve the target test of the controller, thereby completing the steps of adding the test bench and realizing the rapid construction of the new test bench.

[0075] In some embodiments, when the test bench is blocked from testing due to a test environment problem, the image file can be reloaded to quickly resolve the blocking problem, thereby improving the maintainability of the test bench.

[0076] The embodiment of the present disclosure introduces the concept of distribution by specifically describing the generation of the image file, thereby improving the flexibility of the test bench, making full use of the test resources, and improving the test efficiency of the controller.

[0077] Figure 4 The schematic diagram of the structure of the controller test device provided in the embodiment of the present disclosure. The controller test device may be a terminal as described in the above embodiment, or the controller test device may be a component or assembly in the terminal. The controller test device provided in the embodiment of the present disclosure may execute the processing flow provided in the controller test method embodiment, such as Figure 4 As shown, the controller testing device 40 includes: a first acquisition module 41, a second acquisition module 42, and an operation module 43; wherein the first acquisition module 41 is used to obtain target test information of the controller, and the target test information includes an identifier and test information of the controller; the second acquisition module 42 is used to obtain an image file corresponding to the identifier and the test information, and the image file includes image information of a virtual machine for testing the controller; the operation module 43 is used to run the image file through the test bench of the controller to perform a target test on the controller.

[0078] Optionally, the controller testing device 40 also includes: a configuration module 44 and a storage module 45, wherein the configuration module 44 is used to deploy hardware equipment for full testing of the controller, and configure the virtual machine operating system and test software information for full testing of the controller; the storage module 45 is used to store image files used by the virtual machine.

[0079] Optionally, the configuration module 44 is also used to obtain the identifier of the controller; determine the test bench corresponding to the identifier of the controller; deploy the hardware equipment for full testing of the controller based on the controller and the test bench; configure the virtual machine operating system and test software information for full testing of the controller; respectively connect the controller, the hardware peripherals and the virtual machine operating system, and install the test software into the operating system to complete the construction of the test bench.

[0080] Optionally, the test information includes one of the following items: functional test, performance test, stability test;

[0081] The test software information includes at least: preset test cases, test drivers, and test scripts;

[0082] The hardware equipment at least includes: communication equipment, simulation equipment, acquisition equipment, and programmable equipment.

[0083] Optionally, the controller testing device 40 also includes: a production module 46, which is used to produce an image file, and the image file production process includes: obtaining a basic image file, the basic image file includes a virtual machine operating system; on the virtual machine operating system, running the basic image file, importing the test software corresponding to the target test, installing the test driver corresponding to the target test, and running the test script corresponding to the target test, thereby executing the target test of the controller; when the target test result of the controller is a successful test, making an image snapshot of the target test, and saving the image file corresponding to the target test to the server.

[0084] Optionally, the image file includes at least hardware equipment, a virtual machine operating system and test software; the running module 43 is also used to control the hardware equipment of the test bench to execute the test software on the virtual machine operating system to perform target testing on the controller.

[0085] Optionally, the second acquisition module 42 is further used to determine the image file corresponding to the target test information; determine the identifier according to the image file; download the image file from the server, and save the image file to the virtual machine client.

[0086] Figure 4The controller testing device of the illustrated embodiment can be used to execute the technical solution of the controller testing method embodiment described above, and its implementation principle and technical effects are similar and will not be described in detail here.

[0087] Figure 5 Schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. The electronic device may be a terminal as described in the above embodiment. The electronic device provided in an embodiment of the present disclosure may execute the processing flow provided in the controller test method embodiment, such as Figure 5 As shown, the electronic device 50 includes: a memory 51, a processor 52, a computer program and a communication interface 53; wherein the computer program is stored in the memory 51 and is configured so that the processor 52 executes the controller testing method as described above.

[0088] In addition, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the controller testing method described in the above embodiment.

[0089] In addition, an embodiment of the present disclosure further provides a vehicle, which includes a test device for the controller as described in the above embodiment; or an electronic device as described in the above embodiment; or a computer-readable storage medium as described in the above embodiment.

[0090] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0091] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0092] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0093] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0094] Acquire target test information of a controller, wherein the target test information includes an identifier and test information of the controller;

[0095] Acquire an image file corresponding to the identifier and the test information, wherein the image file includes image information of a virtual machine for testing the controller;

[0096] The image file is run through the test bench of the controller to perform a target test on the controller.

[0097] In addition, the electronic device can also execute other steps in the controller testing method described above.

[0098] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0099] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0100] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.

[0101] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0102] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0103] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0104] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A controller testing method, characterized in that: The method comprises: Acquire target test information of a controller, wherein the target test information includes an identifier and test information of the controller; Acquire an image file corresponding to the identifier and the test information, wherein the image file includes image information of a virtual machine for testing the controller; The image file is run through the test bench of the controller to perform a target test on the controller.

2. The method according to claim 1, characterized in that Before obtaining the image file corresponding to the identifier and the test information, the method includes: Based on the hardware equipment deployment for the full test of the controller, configure the virtual machine operating system and test software information for the full test of the controller; Stores image files used by virtual machines.

3. The method according to claim 2, characterized in that The hardware device deployment for full-scale testing of the controller configures the virtual machine operating system and test software information for full-scale testing of the controller, including: Obtaining an identifier of the controller; determining a test bench corresponding to the identification of the controller; Based on the controller and the test bench, deploy hardware equipment for performing full-scale testing of the controller; Configure the virtual machine operating system and test software information for the controller to perform full testing; The controller, the hardware peripherals and the virtual machine operating system are connected respectively, and the test software is installed into the operating system to complete the construction of the test bench.

4. The method according to claim 2, characterized in that: The test information includes one of the following: functional test, performance test, stability test; The test software information includes at least: preset test cases, test drivers, and test scripts; The hardware equipment at least includes: communication equipment, simulation equipment, acquisition equipment, and programmable equipment.

5. The method according to claim 4, characterized in that The process of making the image file includes: Obtain a basic image file, wherein the basic image file includes a virtual machine operating system; On the virtual machine operating system, run the basic image file, import the test software corresponding to the target test, install the test driver corresponding to the target test, and run the test script corresponding to the target test, so as to perform the target test of the controller; When the target test result of the controller is a test success, a mirror snapshot of the target test is made, and a mirror file corresponding to the target test is saved to a server.

6. The method according to claim 1, characterized in that The image file includes at least hardware equipment, virtual machine operating system and test software; The step of running the image file through the test bench of the controller to perform a target test on the controller includes: On the virtual machine operating system, the hardware device of the test bench is controlled to execute the test software to perform a target test on the controller.

7. The method according to claim 1, characterized in that Obtaining the image file corresponding to the identifier and the test information includes: Determine the image file corresponding to the target test information; Determine the identifier according to the image file; The image file is downloaded from the server and saved to the virtual machine client.

8. A controller testing device, characterized in that: The device comprises: A first acquisition module, used to acquire target test information of the controller, wherein the target test information includes an identifier and test information of the controller; A second acquisition module, used to acquire an image file corresponding to the identifier and the test information, wherein the image file includes image information of a virtual machine for testing the controller; The running module is used to run the image file through the test bench of the controller to perform a target test on the controller.

9. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A vehicle, characterized in that: include: The test device of the controller as claimed in claim 8; Or, the electronic device as claimed in claim 9; Or, the computer readable storage medium of claim 10.

Citation Information

Cited By

  • Test method, electronic equipment and storage medium

    CN120523742A

  • Test method, electronic device, and storage medium

    CN120523742B