Serial test method, device and system, electronic equipment and storage medium
By automatically parsing and setting the test environment of the vehicle network controller through a serial testing method, the continuity and efficiency problems caused by manually changing the test environment are solved, and the continuous execution and efficient operation of automated testing are realized.
Patent Information
- Application Number
- CN202511721267.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-02-17
AI Technical Summary
In existing technologies, testing of vehicle network controllers requires manually changing the test environment, which affects the continuity of testing and reduces efficiency.
By using a serial testing method, the test configuration information is automatically parsed to determine the execution order of the test project, and the running environment is automatically set based on the industrial control computer's environment configuration file, thereby realizing the automated serial execution of the test project.
It improves the continuity and efficiency of testing, reduces human intervention, and enhances the automation level of continuous integration/continuous testing.
Smart Images

Figure CN121541623A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle network testing technology, and in particular to a serial testing method, apparatus, system, electronic device and storage medium. Background Technology
[0002] Currently, testing controllers in vehicle networks primarily involves manually changing the test environment. Testing is conducted by running test programs within the corresponding test environment. However, manual adjustments to the test environment and test programs are required between each test, which not only disrupts the overall testing continuity but also reduces testing efficiency. Summary of the Invention
[0003] In view of the above problems, this application provides a serial testing method, apparatus, system, electronic device, and storage medium to reduce human intervention and improve testing efficiency. The specific solution is as follows:
[0004] The first aspect of this application provides a serial testing method, comprising:
[0005] In response to the test task instruction, the obtained test configuration information is parsed to obtain the test projects to be executed and the execution order of each test project;
[0006] When testing each test project according to the execution order, the execution file and environment configuration file of the test project are determined from the industrial control computer based on the test project identifier that represents the test project;
[0007] The environment configuration project in the industrial control computer is invoked to set the operating environment of the test project according to the operating environment requirements indicated by the environment configuration file;
[0008] In response to the runtime environment configuration completion signal, the industrial control computer is started to execute the executable file.
[0009] In one possible implementation, the environment configuration file includes hardware configuration requirements, and the step of calling the environment configuration project in the industrial control computer to set the runtime environment of the test project according to the runtime environment requirements indicated in the environment configuration file includes:
[0010] According to the hardware configuration requirements, the environment configuration project is invoked to switch the state of the relay matrix of the industrial control computer to the state corresponding to the hardware configuration requirements.
[0011] In one possible implementation, the environment configuration file further includes software configuration requirements. The step of calling the environment configuration project in the industrial control computer to set the runtime environment of the test project according to the runtime environment requirements indicated by the environment configuration file also includes:
[0012] Based on the operating system instructions corresponding to the software configuration requirements, the software environment for running the test project is configured.
[0013] In one possible implementation, the process of generating the test task instructions includes:
[0014] In response to the user's selection of test project identifiers in the test task configuration interface, the execution order of the corresponding test projects is determined according to the selection order of the test project identifiers, and the execution order and the test project identifiers are integrated to obtain the test task instruction.
[0015] In one possible implementation, determining the executable file and environment configuration file of the test project from the industrial control computer based on the test project identifier that characterizes the test project includes:
[0016] Based on the test project identifier, the executable file and environment configuration file corresponding to the test project identifier are extracted from the target storage address through the file configuration path in the industrial control computer.
[0017] In one possible implementation, the serial testing method further includes:
[0018] After the operating environment of the test project is set up, the operation of the environment configuration project is terminated; and after the test project is completed, the operation of the industrial control computer is terminated.
[0019] A second aspect of this application provides a serial testing apparatus, comprising:
[0020] The test instruction parsing module is used to respond to test task instructions, parse the obtained test configuration information, and obtain the test projects to be executed and the execution order of each test project;
[0021] The test project determination module is used to determine the execution file and environment configuration file of each test project from the industrial control computer based on the test project identifier that represents the test project when testing each test project according to the execution order.
[0022] The test environment configuration module is used to call the environment configuration project in the industrial control computer to set the runtime environment of the test project according to the runtime environment requirements indicated by the environment configuration file; and,
[0023] The test project execution module is used to start the industrial control computer to execute the executable file in response to the runtime environment configuration completion signal.
[0024] A third aspect of this application provides a computer program product including computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the serial testing method of the first aspect or any implementation thereof.
[0025] A fourth aspect of this application provides an electronic device, including at least one processor and a memory connected to the processor, wherein:
[0026] The memory is used to store computer programs;
[0027] The processor is used to execute the computer program so that the electronic device can implement the serial testing method of the first aspect or any implementation thereof.
[0028] The fifth aspect of this application provides a computer storage medium carrying one or more computer programs, which, when executed by an electronic device, enable the electronic device to implement the serial testing method of the first aspect or any implementation thereof.
[0029] By employing the above technical solution, the serial testing method provided in this application parses the acquired test configuration information in response to test task instructions to obtain the test projects to be executed and the execution order of each test project. Based on this, each test project is tested according to the execution order. During each test, the executable file and environment configuration file of the test project are determined from the industrial control computer based on the test project identifier representing the test project. Then, the environment configuration project in the industrial control computer is invoked to set the runtime environment of the test project according to the runtime environment requirements indicated in the environment configuration file. Finally, in response to the runtime environment configuration completion signal, the industrial control computer is started to execute the executable file for project testing. This method enables continuous execution of tests according to the test queue, requiring no human intervention during the testing process and effectively improving testing efficiency. Attached Figure Description
[0030] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0031] Figure 1 A flowchart of a serial testing method provided in this application;
[0032] Figure 2An architecture diagram of a serial testing system provided in this application;
[0033] Figure 3 A process diagram of the serial testing method based on a serial testing system provided in this application;
[0034] Figure 4 A structural diagram of a serial testing device provided in this application;
[0035] Figure 5 This is a structural diagram of an electronic device provided in this application. Detailed Implementation
[0036] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.
[0037] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.
[0038] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0039] Currently, when testing various controllers in a vehicle network, it is necessary to manually change the test environment to run the corresponding test programs. For example, for three controllers designated A, B, and C, each controller needs to execute automated test programs designated X, Y, and Z. The number of test processes that need to be executed is shown in Table 1.
[0040] Table 1
[0041]
[0042] The typical testing method involves setting up test environment A, manually running automated test project X, adjusting the test environment after the test, and then running automated test project Y, and so on, requiring a total of 9 test environment adjustments and 9 automated test project runs. Each test interval requires manual intervention in environment adjustment and test project execution. As controller proficiency increases, more human intervention will be needed, affecting not only the overall test continuity but also reducing test efficiency.
[0043] To address the aforementioned problems, this application provides a serial testing method. The serial testing method of this application embodiment will be described in detail below with reference to the accompanying drawings.
[0044] Reference Figure 1 , Figure 1 This is a flowchart illustrating a serial testing method provided in an embodiment of this application, as shown below. Figure 1 As shown in the embodiment of this application, a serial testing method may include steps S101 to S104, which are described in detail below.
[0045] S101. In response to the test task instruction, the obtained test configuration information is parsed to obtain the test projects to be executed and the execution order of each test project.
[0046] Specifically, users can configure task flows via a terminal such as a computer or laptop, through a corresponding server, such as executing test projects in the order of AX, AY, and AZ. The server can be an OEM server, which is a server product manufactured by an Original Equipment Manufacturer (OEM). OEM servers typically have customized hardware configurations to meet customer requirements. This server does not handle the actual execution of the test projects; it provides the input for the test task sequence. Users input the execution order and the corresponding test projects through a terminal connected to the server, which then generates the appropriate test configuration file.
[0047] The OEM server can send the test configuration file to the local serial agent server for execution. When the serial agent server receives the corresponding test task instruction, it can parse the received test configuration information to obtain the test project file set by the user and the execution order of each test project.
[0048] S102. When testing each test project according to the execution order, the execution file and environment configuration file of the test project are determined from the industrial control computer based on the test project identifier that represents the test project.
[0049] Specifically, when the serial agent server performs test projects, it obtains the corresponding test projects and execution order by parsing the configuration file. Based on the test process determined by the execution order, it searches for the executable files to be run and the corresponding environment configuration files from the local industrial control computer.
[0050] S103. Call the environment configuration project in the industrial control computer to set the operating environment of the test project according to the operating environment requirements indicated in the environment configuration file.
[0051] The serial agent server builds the environment of the industrial control computer by calling the environment configuration project in the environment configuration file, according to the software environment requirements and hardware environment requirements in the environment configuration file.
[0052] S104. In response to the operating environment configuration completion signal, start the industrial control computer to execute the executable file.
[0053] After the environment is set up, the serial agent server can send a start command for the test project to the industrial control computer, which then runs the test project according to the executable file. After one test project is completed, the serial agent server automatically performs the next environment configuration and test project according to the execution order, and so on until all test projects are completed.
[0054] This serial testing method can sequentially execute different automated test projects into a test queue, eliminating the need for human intervention. This improves automation efficiency and enables the test system to execute continuously according to the test queue, further enhancing the automation level of the fully automated CI / CT (Continuous Integration / Continuous Testing) execution scheme.
[0055] In one embodiment, the environment configuration file includes hardware configuration requirements. The aforementioned call to the environment configuration project in the industrial control computer sets the runtime environment of the test project according to the runtime environment requirements indicated in the environment configuration file, which may specifically include:
[0056] The environment configuration project is invoked according to the hardware configuration requirements to switch the state of the relay matrix of the industrial control computer to the state corresponding to the hardware configuration requirements.
[0057] Specifically, a relay matrix can be designed based on the signal connection requirements of all test projects. This matrix has sufficient input and output ports to cover all possible signal connections. The relay matrix internally consists of multiple relays, each of which can be viewed as a controllable single-pole single-throw (SPST) or single-pole double-throw (SPDT) switch, or a more complex combination. For each test project, a connection mapping table can be created, defining which input ports should be connected to which output ports. This mapping table is essentially the switching state configuration of the relay matrix under that test project.
[0058] The relay matrix is controlled by software (such as LabVIEW, Python, etc.). Typically, the relay matrix connects to an industrial computer via a communication interface (such as GPIB, USB, Ethernet, etc.). The software sends corresponding commands (such as SCPI commands) to set the switching states of the relay matrix based on the current test procedure, thereby establishing the necessary connection with the controller under test.
[0059] The environment configuration file also includes software configuration requirements. The corresponding environment configuration project in the industrial control computer is called to set the runtime environment of the test project according to the runtime environment requirements indicated in the environment configuration file. This also includes:
[0060] Based on the operating system instructions corresponding to the software configuration requirements, the software environment for running the test project is configured.
[0061] Specifically, the serial proxy server parses the software configuration requirements to obtain the necessary channel environment, and then configures it using commands such as CMD. This software environment can be the communication channel between the test system and various instruments (e.g., VISA resource strings, analog input / output channels, digital I / O channels, etc.). The corresponding software channel protocol can be configured using CMD commands.
[0062] To facilitate user management of test projects and setup of test processes, the test task instruction generation process in the above embodiments may include:
[0063] In response to the user's selection of test project identifiers in the test task configuration interface, the execution order of the corresponding test projects is determined according to the selection order of the test project identifiers, and the execution order and test project identifiers are integrated to obtain the test task instructions.
[0064] Specifically, the operation terminal connected to the user and the serial agent server displays a test configuration file generation interface. This interface also includes a test project search interface, allowing users to find and select test projects using their identifiers. Selected test projects are displayed in the test project selection interface in the order they were chosen, and users can adjust the order of the test projects by dragging and dropping. After the user confirms their selection in the test project selection interface, the corresponding execution order and a set of corresponding test project identifiers are generated and ultimately integrated into the test task instructions.
[0065] The corresponding serial proxy server, based on the test project identifier representing the test project, determines the executable file and environment configuration file of the test project from the industrial control computer, which may specifically include:
[0066] Based on the test project identifier and the file configuration path in the industrial control computer, the executable file and environment configuration file corresponding to the test project identifier are extracted from the target storage address.
[0067] Specifically, the serial agent server parses the configuration file, reads the file location of the test project to be executed and the environment configuration file, and then searches for the corresponding file in the industrial control computer.
[0068] In other embodiments, to reduce resource consumption, the serial testing method further includes:
[0069] After setting up the operating environment for the test project, end the environment configuration process; and after the test project is completed, end the operation of the industrial control computer.
[0070] This application also provides a serial testing system, including: a proxy server and an industrial control computer connected to the proxy server. The industrial control computer is connected to the controller under test (DUT), and the proxy server is used to execute the various steps of the serial testing method described in the above embodiments. The proxy server here is the serial proxy server described in the above embodiments. For details, please refer to... Figure 2 As shown:
[0071] OEM Server (Optional): Configures the task flow, such as executing test projects according to the AX, AY, AZ sequence. It does not handle the actual execution; it only needs to provide input information for the test task sequence. This is not a mandatory component and depends primarily on whether the OEM needs to use its own local server for task management and integration with CI / CT systems. If the OEM does not need to handle this itself, a proxy server can be used to distribute the task flow.
[0072] Serial Agent Server: If an OEM server is available, it receives task instructions from the OEM server and parses out the specific execution order; if no OEM server is available, it provides the task flow and internally generates the specific execution order. The serial agent server needs to read the file location of the test project to be executed through its internal configuration file according to the task flow, and obtain the environment configuration required by the test project. Then, it calls the environment configuration project to configure the environment. After configuration, it calls the test project to execute the test. After the test is completed, it closes the test project and prepares to execute the next task's test project.
[0073] Environment configuration engineering: Configure the hardware environment required for each test project of each controller. It realizes automatic switching of the test environment through relay matrix and performs corresponding software configuration.
[0074] Run the serial test method in the above serial test system, referring to... Figure 3As shown, the specific processing steps may include the following:
[0075] Step S1: The OEM server issues test task instructions, informing the serial agent server in what order which automated test packages need to be executed through inter-server communication.
[0076] Step S2: The serial agent server breaks down the test task and begins testing the first test package. For example, the first test package is the X test project for controller A, abbreviated as the AX test project. The files in the AX test project are retrieved using the path configuration file in the serial agent server.
[0077] Step S3: The serial agent server retrieves the environment configuration requirements file needed for the AX test project by searching.
[0078] Step S4: After parsing the environment configuration requirement file of the AX test project, the serial agent server obtains two parts of the configuration requirements. The first part is the software layer configuration requirements, such as the software channel configuration required by the test project. These requirements are configured by the serial agent server using commands such as CMD. The second part is the hardware environment configuration requirements, such as the power supply channel required by the test project. These requirements are written by the serial agent server into the configuration file of the environment configuration project as input information for the environment configuration project to implement hardware operations.
[0079] Step S5: The serial agent server remotely invokes and runs the environment configuration project. The environment configuration project, using the configuration file from the previous step, sends commands to the relay matrix to operate it, switching the hardware configuration environment to the environment required by the AX test project. After the switch is complete, it stops running. The serial agent server detects that the environment configuration project has finished running and closes it to reduce resource consumption.
[0080] Step S6: After the serial agent server confirms the hardware and software configurations, it remotely calls and runs the AX test project, and waits for the AX test project to complete.
[0081] Step S7: The serial agent server detects that the AX test project has finished running and closes it. At this point, the first automated test project is complete. The serial agent server then proceeds to test the second automated test project according to the previous task order, continuing from S2 to S7, thus achieving serial automation of multiple automated test tasks.
[0082] The above describes a serial testing method provided by an embodiment of this application. The following describes the apparatus for performing the above serial testing method.
[0083] Please see Figure 4 , Figure 4This is a schematic diagram of a serial testing device provided in an embodiment of this application. Figure 4 As shown, the serial testing device includes:
[0084] The test instruction parsing module 401 is used to respond to test task instructions, parse the obtained test configuration information, and obtain the test projects to be executed and the execution order of each test project;
[0085] The test project determination module 402 is used to determine the executable file and environment configuration file of the test project from the industrial control computer based on the test project identifier that represents the test project when testing each test project in the execution order.
[0086] The test environment configuration module 403 is used to call the environment configuration project in the industrial control computer to set the runtime environment of the test project according to the runtime environment requirements indicated in the environment configuration file; and,
[0087] Test project execution module 404 is used to start the industrial control computer to execute the executable file in response to the runtime environment configuration completion signal.
[0088] In one possible implementation, the environment configuration file includes hardware configuration requirements. The process by which the test environment configuration module 403 calls the environment configuration project in the industrial control computer to set the runtime environment of the test project according to the runtime environment requirements indicated in the environment configuration file includes:
[0089] The environment configuration project is invoked according to the hardware configuration requirements to switch the state of the relay matrix of the industrial control computer to the state corresponding to the hardware configuration requirements.
[0090] In one possible implementation, the environment configuration file also includes software configuration requirements. The process by which the test environment configuration module 403 calls the environment configuration project in the industrial control computer to set the runtime environment of the test project according to the runtime environment requirements indicated in the environment configuration file also includes:
[0091] Based on the operating system instructions corresponding to the software configuration requirements, the software environment for running the test project is configured.
[0092] In one possible implementation, the process of generating test task instructions in the test instruction parsing module 401 includes:
[0093] In response to the user's selection of test project identifiers in the test task configuration interface, the execution order of the corresponding test projects is determined according to the selection order of the test project identifiers, and the execution order and test project identifiers are integrated to obtain the test task instructions.
[0094] In one possible implementation, the process by which the test instruction parsing module 401 determines the executable file and environment configuration file of the test project from the industrial control computer based on the test project identifier that characterizes the test project includes:
[0095] Based on the test project identifier and the file configuration path in the industrial control computer, the executable file and environment configuration file corresponding to the test project identifier are extracted from the target storage address.
[0096] In one possible implementation, it also includes: a test process control module, used to terminate the operation of the environment configuration project after the runtime environment of the test project is set up; and to terminate the operation of the industrial control computer after the test project is completed.
[0097] This application also provides an electronic device in its embodiments. (See reference...) Figure 5 The diagram illustrates a structural schematic suitable for implementing the electronic device in the embodiments of this application. The electronic device in the embodiments of this application may include, but is not limited to, fixed terminals such as laptops, tablets, desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0098] like Figure 5 As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. When the electronic device is powered on, the RAM 503 also stores various programs and data required for the operation of the electronic device. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0099] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, memory cards, hard drives, etc.; and communication devices 509. Communication device 509 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0100] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the serial testing methods provided in this application.
[0101] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the serial testing methods provided in this application.
[0102] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0103] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0104] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0105] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
Claims
1. A serial test method, characterized by, The method comprises the steps of: In response to a test task instruction, the obtained test configuration information is parsed to obtain a test project to be executed and an execution sequence of each test project; According to the execution sequence, when each test project is tested, based on a test project identifier representing the test project, an execution file and an environment configuration file of the test project are determined from an industrial computer; The environment configuration project in the industrial computer is called to set the running environment of the test project according to the running environment requirement indicated by the environment configuration file; In response to a running environment configuration completion signal, the industrial computer is started to execute the execution file.
2. The serial test method of claim 1, wherein, The environment configuration file includes a hardware configuration requirement, and the environment configuration project in the industrial computer is called to set the running environment of the test project according to the running environment requirement indicated by the environment configuration file, which comprises: According to the hardware configuration requirement, the environment configuration project is called to switch the state of the relay matrix of the industrial computer to the state corresponding to the hardware configuration requirement.
3. The serial test method of claim 2, wherein, The environment configuration file further includes a software configuration requirement, and the environment configuration project in the industrial computer is called to set the running environment of the test project according to the running environment requirement indicated by the environment configuration file, which further comprises: Based on the operating system instruction corresponding to the software configuration requirement, the software environment for running the test project is configured.
4. The serial test method of claim 1, wherein, The generation process of the test task instruction comprises: In response to the selection operation of the user on the test project identifier in the test task configuration interface, the execution sequence of the corresponding test project is determined according to the selection sequence of the test project identifier, and the execution sequence and the test project identifier are integrated to obtain the test task instruction.
5. The serial test method of claim 1, wherein, According to the test project identifier, the execution file and the environment configuration file corresponding to the test project identifier are extracted from the target storage address through the file configuration path in the industrial computer. Further comprising:
6. The serial test method according to any one of claims 1 to 5, characterized in that, After the running environment of the test project is set, the running of the environment configuration project is ended, and after the test of the test project is completed, the running of the industrial computer is ended. The method comprises the steps of:
7. A serial test device, characterized by A test instruction parsing module is configured to respond to a test task instruction and parse obtained test configuration information to obtain a test project to be executed and an execution sequence of each test project; A test project determination module is configured to, according to the execution sequence, when each test project is tested, based on a test project identifier representing the test project, determine an execution file and an environment configuration file of the test project from an industrial computer; A test environment configuration module is configured to call an environment configuration project in the industrial computer to set the running environment of the test project according to the running environment requirement indicated by the environment configuration file; and A test project execution module is configured to, in response to a running environment configuration completion signal, start the industrial computer to execute the execution file. The method comprises the steps of:
8. A serial test system, characterized by, The proxy server and an industrial computer connected with the proxy server, the industrial computer and a controller to be tested are connected, and the proxy server is used to execute the serial test method in any one of claims 1 to 6.
9. An electronic device, comprising: The electronic device comprises at least one processor and a memory connected with the processor, wherein: The memory is used to store a computer program; The processor is used to execute the computer program, so that the electronic device can implement the serial test method in any one of claims 1 to 6.
10. A computer storage medium, characterized in that, The storage medium carries one or more computer programs, and when the one or more computer programs are executed by the electronic device, the electronic device can implement the serial test method in any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system
CN104267715A
Hardware-in-the-loop test continuous integration system and test method
CN116820966A
Equipment testing method and device, electronic equipment and readable storage medium
CN117491780A
Generation method and device of automobile gateway test project, equipment and storage medium
CN120110971A
Method, apparatus and device for automatically configuring test machine, and storage medium
WO2019051937A1