Vehicle-mounted remote communication box test method and device, electronic equipment and storage medium
By leveraging the synergy of a signal simulation platform and a cloud server, the testing procedures for vehicle-mounted remote communication boxes are automated, solving the problems of low testing efficiency and insufficient accuracy, and achieving a high-efficiency, low-cost testing solution.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2026-03-24
AI Technical Summary
Testing of vehicle-mounted remote communication boxes is inefficient and inaccurate, making it difficult to meet the requirements for efficient and reliable testing.
This paper provides a testing method for vehicle-mounted remote communication boxes. By acquiring test cases, using a signal simulation platform and cloud server, test steps are executed and message values are matched to automatically determine test results, reducing human error and the need for script generation.
It improves testing efficiency, reduces testing costs, ensures the accuracy and consistency of test results, and reduces the occurrence of human error.
Smart Images

Figure CN119892683B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automated testing technology, and in particular to a testing method, apparatus, electronic device and storage medium for a vehicle-mounted remote communication box. Background Technology
[0002] With the development of vehicle-to-everything (V2X) technology, the Telematics Box (TBOX) is a key component for vehicle-to-external communication. The TBOX is responsible not only for data exchange between the vehicle and the cloud server, but also for remote diagnostics, vehicle status monitoring, emergency assistance, and other functions. The stability and reliability of the TBOX are crucial to vehicle safety.
[0003] In related technologies, the testing process of TBOX is inefficient and prone to errors. Summary of the Invention
[0004] This application provides a testing method, apparatus, electronic device, and storage medium for vehicle-mounted remote communication boxes to solve the technical problems of low testing efficiency and inaccurate testing of the aforementioned vehicle-mounted remote communication boxes.
[0005] In one embodiment of this application, a testing method for an in-vehicle remote communication box is provided, comprising: acquiring test cases of the in-vehicle remote communication box, the test cases including multiple readable test steps; executing each test step based on a test field identifier of each test step, the execution of the test step including requesting a cloud server to send a remote control command to the in-vehicle remote communication box, and matching the current message value of the message to be detected with a theoretical message value to obtain a matching result, the current message value being based on the response of the in-vehicle remote communication box to the remote control command and identified by a signal simulation platform; and determining the test result of the test case based on the matching result and the command execution result returned by the cloud server.
[0006] In one embodiment of this application, each test step is executed based on the test field identifier of each test step, including: determining the current step according to the order of each test step; if the test field identifier of the current step is a setting variable field, then according to the current step, the message environment variable in the signal simulation platform is bound to the corresponding message identity identifier to modify the initial message value of the target configuration message in the vehicle remote communication box and identify the current message value of the message to be detected; if the test field identifier of the current step is a status setting field, then according to the current step, the working status of the target functional module is set; if the test field identifier of the current step is a check field, then according to the current step, the current message value of the message to be detected is matched with the theoretical message value to obtain a matching result; if the test field identifier of the current step is an instruction sending field, then according to the current step, the cloud server is requested to send a remote control instruction to the vehicle remote communication box; if the test field identifier of the current step is a waiting field, then according to the waiting time in the current step.
[0007] In one embodiment of this application, modifying the initial message value of the target configuration message and the current message value of the message to be detected includes: assigning the initial message value to the corresponding message environment variable according to the message identity identifier of the target configuration message, and configuring the test environment of the vehicle remote communication box according to the corresponding message environment variable through the signal simulation platform; and assigning the current message value to the corresponding message environment variable based on the message identity identifier of the message to be detected.
[0008] In one embodiment of this application, determining the test result of the test case based on the matching result and the instruction execution result returned by the cloud server includes: the number of packets to be detected is at least one; if the instruction execution result is a success identifier and the matching results of the packets to be detected are all matches, then the test result of the test case is determined to be successful; if the instruction execution result is a failure identifier, and / or, there is at least one packet to be detected whose matching result is not a match, then the test result of the test case is determined to be failed; wherein, the failure identifier includes execution in progress, invalid instruction, or execution failure.
[0009] In one embodiment of this application, requesting a cloud server to send a remote control command to the vehicle-mounted remote communication box includes: obtaining login authentication information of the cloud server; determining the remote control command based on the command type and command parameters in the test step; and sending the remote control command to the cloud server based on the login authentication information, so that the remote control command can be sent to the vehicle-mounted remote communication box through the cloud server.
[0010] In one embodiment of this application, the vehicle-mounted remote communication box responds to the remote control command and identifies the current message value through a signal simulation platform, including: the vehicle-mounted remote communication box receiving the remote control command sent by the cloud server; the vehicle-mounted remote communication box responding to the remote control command to obtain the message to be detected; and identifying the current message value of the message to be detected through a signal simulation platform.
[0011] In one embodiment of this application, a vehicle-mounted remote communication box testing device is provided, comprising: a test case acquisition module for acquiring test cases of the vehicle-mounted remote communication box, wherein the test cases include multiple readable test steps; a step execution module for executing each test step using a test field identifier based on each test step, wherein the execution of the test step includes requesting a cloud server to send a remote control command to the vehicle-mounted remote communication box, and matching the current message value of the message to be detected with a theoretical message value to obtain a matching result, wherein the current message value is based on the vehicle-mounted remote communication box responding to the remote control command and identified by a signal simulation platform; and a result determination module for determining the test result of the test case based on the matching result and the command execution result returned by the cloud server.
[0012] In one embodiment of this application, the device further includes: a cloud server, used to transmit remote control commands to an in-vehicle remote communication box and transmit command execution results to the result determination module; an in-vehicle remote communication box, used to respond to the remote control commands to obtain the message to be detected and the command execution results, and send the command execution results to the cloud server; and a signal simulation platform, used to identify the current message value of the message to be detected and transmit it to the result determination module.
[0013] In one embodiment of this application, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the vehicle-mounted remote communication box testing method as described in any of the above embodiments.
[0014] In one embodiment of this application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor of a computer, the computer performs the vehicle-mounted remote communication box testing method described in any of the above embodiments.
[0015] The beneficial effects of the embodiments of this application are as follows: This application provides a test method, device, electronic device and storage medium for vehicle-mounted remote communication boxes. The embodiments of this application execute test cases through readable test steps and test field identifiers. The output results can be monitored in real time through a signal simulation platform, which improves test efficiency. Furthermore, it eliminates the need to generate different test scripts for different test cases, thereby reducing test costs through script-free testing.
[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0018] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of this application can be applied is shown;
[0019] Figure 2 A flowchart illustrating a testing method for an in-vehicle remote communication box according to an embodiment of this application is shown;
[0020] Figure 3 A schematic diagram illustrating the implementation flow of a vehicle-mounted remote communication box testing method according to an embodiment of this application is shown;
[0021] Figure 4 A block diagram of a vehicle-mounted remote communication box testing apparatus according to an embodiment of this application is shown;
[0022] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0023] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.
[0024] The illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the drawings only show the components related to this application and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0025] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the present application. However, it will be apparent to those skilled in the art that embodiments of the present application may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the present application.
[0026] Please see Figure 1 , Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of this application can be applied is shown. For example... Figure 1 As shown, the system architecture may include a computer device 101, a cloud server 102, an in-vehicle remote communication box 103, and a signal simulation platform 104. The computer device 101 executes test steps, requesting the cloud server 103 to send remote control commands to the in-vehicle remote communication box 103. The in-vehicle remote communication box 103 responds to the remote control commands, generates a message to be tested, identifies the current message value of the message to be tested through the signal simulation platform 104, and transmits it to the computer device 101 to obtain the test results.
[0027] For example, computer device 101 acquires test cases of the vehicle-mounted remote communication box. The test cases include multiple readable test steps. Each test step is executed based on the test field identifier of each test step. The execution of the test steps includes requesting the cloud server to send remote control commands to the vehicle-mounted remote communication box, and matching the current message value of the message to be detected with the theoretical message value to obtain a matching result. The current message value is based on the vehicle-mounted remote communication box's response to the remote control command and is identified through a signal simulation platform. The test result of the test case is determined based on the matching result and the command execution result returned by the cloud server.
[0028] In related technologies, there are technical problems such as low testing efficiency and inaccurate testing of vehicle-mounted remote communication boxes.
[0029] To address the aforementioned technical problems, this application provides a method, apparatus, electronic device, and storage medium for testing vehicle-mounted remote communication boxes. The implementation details of the technical solutions in the embodiments of this application are described in detail below.
[0030] Please see Figure 2 , Figure 2A flowchart illustrating a testing method for an in-vehicle remote communication box according to an embodiment of this application is shown. Figure 2 As shown, in an exemplary embodiment, the vehicle-mounted remote communication box testing method includes at least steps S210 to S230, which are described in detail below:
[0031] Step S210: Obtain test cases for the vehicle-mounted remote communication box.
[0032] The test cases include multiple readable test steps.
[0033] In some embodiments of this application, test cases are written before testing the vehicle-mounted telematics box (TBOX). These test cases can be stored in a spreadsheet, such as an Excel spreadsheet.
[0034] Step S220: Execute each test step based on the test field identifier of each test step. The execution of the test step includes requesting the cloud server to send remote control commands to the vehicle remote communication box, and matching the current message value of the message to be tested with the theoretical message value to obtain the matching result.
[0035] The current message value is based on the vehicle-mounted remote communication box responding to remote control commands and is identified through a signal simulation platform.
[0036] In some embodiments of this application, each test step is executed based on the test field identifier of each test step, including: determining the current step according to the order of each test step; if the test field identifier of the current step is a setting variable field, then binding the message environment variable in the signal simulation platform with the corresponding message identity identifier according to the current step, so as to modify the initial message value of the target configuration message in the vehicle remote communication box and identify the current message value of the message to be detected; if the test field identifier of the current step is a status setting field, then setting the working status of the target functional module according to the current step; if the test field identifier of the current step is a check field, then matching the current message value of the message to be detected with the theoretical message value according to the current step to obtain a matching result; if the test field identifier of the current step is a command sending field, then requesting the cloud server to send a remote control command to the vehicle remote communication box according to the current step; if the test field identifier of the current step is a waiting field, then waiting for the time in the current step.
[0037] In some embodiments of this application, information for each test step of all test cases can be read directly using only one executable program, and the test steps can be executed. For example, the "step" field in each line of a test case can be read, and the current step can be determined based on the sequence number following "step". This sequence number indicates which step the test case has reached. The executable program includes a Python script.
[0038] In some embodiments of this application, the executable program includes a read function and a set function.
[0039] In some embodiments of this application, the location of a test field identifier is indicated by a preset symbol. This test field identifier represents the operation to be performed through a preset string. For example, the following test field identifier is obtained through the "--" symbol; the string "set_env_var" represents setting an environment variable; the string "tbox_state" represents setting the current state; the string "remote_control" represents sending a remote control command; the string "check" represents checking a variable; and the string "sleep" represents the waiting time, which can be set to seconds. The information following the operation to be performed is the specific numerical value or variable name.
[0040] In some embodiments of this application, modifying the initial message value of the target configuration message and the current message value of the message to be detected includes: assigning the initial message value to the corresponding message environment variable according to the message identity of the target configuration message, and configuring the test environment of the vehicle remote communication box according to the corresponding message environment variable through a signal simulation platform; and assigning the current message value to the corresponding message environment variable based on the message identity of the message to be detected.
[0041] In some embodiments of this application, the test step “step1--set_env_var:BCM_PowerState=0x0” is used to characterize step 1, setting the initial message value of the vehicle power state mode corresponding to the Body Control Module (BCM) to 0x0.
[0042] In some embodiments of this application, the signal simulation platform is used to characterize a tool platform for simulating the transmission of Controller Area Network (CAN) messages, such as the CAN Open Environment (CANOE).
[0043] In some embodiments of this application, CANOE is used to run an engineering simulation environment and manipulate the data values of CAN messages according to message environment variables used in the test specifications, so that the Python side can directly manipulate the message environment variables to change the CAN message values. For example, the message identity identifier (message ID) of the vehicle power status mode is 0x3C2, and its message value can be set to 00 00 0000 00 00 00 00. By setting a message environment variable named BCM_0x3C2 in CANOE and binding this message environment variable to the message ID 0x3C2, the data value of the corresponding message ID will also change when the variable value changes. For example, if Python sets the value of BCM_0x3C2 to 2, the corresponding message value will become 02 00 00 00 000000 00.
[0044] In some embodiments of this application, the CANOE simulation project is automatically opened, and all message environment variables in the CANOE project are read.
[0045] In some embodiments of this application, the test step “step2--tbox_state:sleep” is used to characterize step 2, which puts the TBOX into a sleep state.
[0046] In some embodiments of this application, requesting a cloud server to send a remote control command to the vehicle remote communication box includes: obtaining login authentication information from the cloud server; determining the remote control command based on the command type and command parameters in the test steps; and sending the remote control command to the cloud server based on the login authentication information, so that the remote control command can be sent to the vehicle remote communication box through the cloud server.
[0047] In some embodiments of this application, the cloud server includes a Telematics Service Provider (TSP) server. Login authentication information includes the server interface and authentication details.
[0048] In some embodiments of this application, the executable program obtains the server interface of the cloud server and logs in to the cloud server through the requests library to obtain login authentication information. This login authentication information includes identity verification information and communication data verification information.
[0049] In some embodiments of this application, when the executable program reads that the current step requires sending a remote control command, the executable program sends a remote control request to the TSP server. The parameters of the remote control request are passed as remote control commands. For example, in the test step: "step3--remote_control:commandtype:LOCK,command:ON", the command type is "LOCK" (locking command), and the command parameter is "ON" (enable locking).
[0050] In some embodiments of this application, the cloud server receives remote control commands sent by the executable program and sends the remote control commands to the TBOX via Message Queuing Telemetry Transport (MQTT). The TBOX automatically executes the corresponding operation according to the remote control commands, obtains the execution command result, and returns the command execution result to the cloud server for storage, so that the executable program can query and read it.
[0051] In some embodiments of this application, after the execution program sends the remote control command, it will wait for a test case execution time according to the test specification manual. After the waiting time ends, the execution program will automatically read the message identity identifier (message ID) of the message to be tested in CANOE, and read whether the current message value in the message ID is equal to the theoretical message value. The theoretical message value is used to characterize the value expected to become after a test case is executed, while the current message value may be different from the theoretical message value.
[0052] In some embodiments of this application, for example, "step4--check:BCM_PowerState=2", step 4, checks whether the current message value of the vehicle power state mode in the BCM is 2; "step5--check:vcu_hvOnMode=2", step 5, checks whether the current message value of the high-voltage system status of the Vehicle Control Unit (VCU) is 2; "step6--check:bcm_pepsPowerMode=2", step 6, checks whether the current message value of the power mode commonly used in the Passive Entry and Passive Start (PEPS) system in the BCM is 2; "step7--sleep:3", step 7, waits for 3 seconds; "step8--check:psm_drSeatVentSts=3", step 8, checks whether the current message value of the ventilation status of the driver side seat (Driver Side Seat Ventilation Status) is 3.
[0053] Step S230: Determine the test results of the test cases based on the matching results and the instruction execution results returned by the cloud server.
[0054] In some embodiments of this application, the test result of a test case is determined based on the matching result and the instruction execution result returned by the cloud server, including: the number of messages to be detected is at least one; if the instruction execution result is a success indicator and the matching result of all messages to be detected is a match, then the test result of the test case is determined to be successful; if the instruction execution result is a failure indicator, and / or, there is at least one message to be detected whose matching result is not a match, then the test result of the test case is determined to be failed; wherein, the failure indicator includes execution in progress, invalid instruction, or execution failure.
[0055] In some embodiments of this application, the executor reads the instruction execution results from a cloud server.
[0056] In some embodiments of this application, the execution results of remote control commands in the cloud server are queried through the request library. The test case is judged as passing by combining the remote control results in the cloud server with the matching results of all messages to be detected. If the test case passes, "Pass" is automatically marked in the test report, and "Fail" is marked if it fails.
[0057] In some embodiments of this application, by importing a test report tool, such as the Allure library, the matching results, test results of test cases, and execution process information of test steps are written into the test report and the test report is output.
[0058] In some embodiments of this application, please refer to Figure 3 , Figure 3 A schematic diagram illustrating the implementation flow of a vehicle-mounted remote communication box testing method according to an embodiment of this application is shown. Figure 3As shown, the CANOE project is started by executing the program; the program reads test cases and determines the operation to be performed in the current step based on the order of test steps and test field identifiers; if a setting variable field is detected, the message ID and message environment variable can be bound, and the test environment can be configured by changing the environment variable values in CANOE; if a command sending field is detected, a remote control command is sent; if a wait field is detected, the time in the current step is waited for; if a check field is detected, the current message value of the message to be checked is matched with the theoretical message value to obtain the matching result; the program obtains the command execution result of the remote control command from the cloud server; the program combines the command execution result and the matching result to determine the test result of the test case, thereby generating a test report. This application can efficiently simulate input signals and monitor output results in real time, improving the efficiency of TBOX testing; automated testing avoids human error and improves test accuracy; in subsequent maintenance, this application only needs to maintain the spreadsheet of test cases and the CANOE message environment variables, without the need to generate different test scripts for different test cases, reducing testing costs. The testing system is highly flexible; it can be quickly adapted to the execution program by simply writing an executable test case table according to the script specification, and can be widely used in the testing field of vehicle-mounted TBOX devices.
[0059] Please see Figure 4 , Figure 4 A block diagram of a vehicle-mounted remote communication box testing apparatus according to an embodiment of this application is shown. This apparatus can be applied to... Figure 1 The implementation environment shown is specifically configured in computer device 101. This device can also be applied to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the device is applicable.
[0060] like Figure 4 As shown, an in-vehicle remote communication box testing device 400 according to an embodiment of this application includes: a test case acquisition module 401, a step execution module 402, and a result determination module 403.
[0061] Among them, the test case acquisition module 401 is used to acquire test cases of the vehicle remote communication box. The test cases include multiple readable test steps.
[0062] The step execution module 402 executes each test step using the test field identifier based on each test step. The execution of the test step includes requesting the cloud server to send a remote control command to the vehicle remote communication box, and matching the current message value of the message to be tested with the theoretical message value to obtain the matching result. The current message value is based on the vehicle remote communication box responding to the remote control command and is identified by the signal simulation platform.
[0063] The result determination module 403 is used to determine the test results of the test cases based on the matching results and the instruction execution results returned by the cloud server.
[0064] In some embodiments of this application, the vehicle-mounted remote communication box testing device further includes:
[0065] The cloud server is used to transmit remote control commands to the vehicle-mounted remote communication box, and to transmit the command execution results to the result determination module;
[0066] The vehicle-mounted remote communication box is used to respond to remote control commands, obtain the message to be detected and the command execution result, and send the command execution result to the cloud server;
[0067] The signal simulation platform is used to identify the current message value of the message to be detected and transmit it to the result determination module.
[0068] The vehicle-mounted remote communication box testing device and the vehicle-mounted remote communication box testing method provided in the above embodiments belong to the same concept. The specific operation methods of each module and unit have been described in detail in the method embodiments and will not be repeated here. In practical applications, the vehicle-mounted remote communication box testing device provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation.
[0069] Embodiments of this application also provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by one or more processors, cause the electronic device to implement the vehicle-mounted remote communication box testing method provided in the above embodiments.
[0070] Please see Figure 5 , Figure 5 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Figure 5 The computer system 500 of 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.
[0071] like Figure 5As shown, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in Read-Only Memory (ROM) 502 or programs loaded from storage portion 508 into Random Access Memory (RAM) 503. The RAM 503 also stores various programs and data required for system operation. The CPU 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.
[0072] The following components are connected to the input / output interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 510 as needed so that computer programs read from it can be installed into the storage section 508 as needed.
[0073] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs various functions defined in the system of this application.
[0074] The computer-readable medium shown in the embodiments of this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0075] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0076] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the methods according to the embodiments of this application.
[0077] Another aspect of this application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer's processor, causes the computer to perform the vehicle-mounted remote communication box testing method provided in the various embodiments described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not assembled into the electronic device.
[0078] In the above embodiments, unless otherwise specified, the use of ordinal numbers such as "first" and "second" to describe common objects only indicates that they refer to different instances of the same object, rather than indicating that the objects being described must be in a given order, whether temporally, spatially, sequentially, or in any other way.
[0079] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.
Claims
1. A testing method for a vehicle-mounted remote communication box, characterized in that, The method includes: Obtain test cases for the vehicle-mounted remote communication box, wherein the test cases include multiple readable test steps; Each test step is executed based on the test field identifier of each test step. The execution of each test step includes requesting the cloud server to send a remote control command to the vehicle remote communication box, and matching the current message value of the message to be detected with the theoretical message value to obtain a matching result. The current message value is based on the vehicle remote communication box responding to the remote control command and is identified by the signal simulation platform. The test results of the test cases are determined based on the matching results and the instruction execution results returned by the cloud server. The execution of each test step based on the test field identifier of each test step includes: The current step is determined according to the order of the various test steps described; If the test field in the current step is identified as a setting variable field, then the message environment variable in the signal simulation platform is bound to the corresponding message identity according to the current step, so as to modify the initial message value of the target configuration message in the vehicle remote communication box and the current message value of the message to be detected. If the test field of the current step is identified as a status setting field, then the working status of the target functional module is set according to the current step; If the test field in the current step is identified as an inspection field, then the current message value of the message to be detected is matched with the theoretical message value according to the current step to obtain the matching result; If the test field of the current step is identified as an instruction sending field, then the cloud server is requested to send a remote control instruction to the vehicle remote communication box according to the current step. If the test field of the current step is identified as a waiting field, then wait for the time specified in the current step.
2. The testing method for the vehicle-mounted remote communication box according to claim 1, characterized in that, Modify the initial message value of the target configuration message and the current message value for identifying the message to be detected, including: The initial message value is assigned to the corresponding message environment variable according to the message identity identifier of the target configuration message, and the test environment is configured for the vehicle remote communication box by the signal simulation platform according to the corresponding message environment variable. The current message value is assigned to the corresponding message environment variable based on the message identity identifier of the message to be detected.
3. The testing method for the vehicle-mounted remote communication box according to any one of claims 1-2, characterized in that, The test results of the test cases are determined based on the matching results and the instruction execution results returned by the cloud server, including: The number of messages to be detected is at least one; If the execution result of the instruction is a success flag, and the matching results of the messages to be detected are all matches, then the test result of the test case is determined to be successful. If the execution result of the instruction is a failure flag, and / or, there is at least one unmatched result for the message to be detected, then the test result of the test case will be determined as a failure. The failure indicators include execution in progress, invalid instruction, or execution failure.
4. The testing method for the vehicle-mounted remote communication box according to any one of claims 1-2, characterized in that, Requesting the cloud server to send remote control commands to the vehicle-mounted remote communication box, including: Obtain login authentication information from the cloud server; Determine the remote control command based on the command type and command parameters in the test steps; Based on the login authentication information, the remote control command is sent to the cloud server, and then the remote control command is sent to the vehicle remote communication box through the cloud server.
5. The testing method for the vehicle-mounted remote communication box according to claim 4, characterized in that, The vehicle-mounted remote communication box responds to the remote control command and obtains the current message value through a signal simulation platform, including: The vehicle-mounted remote communication box receives remote control commands sent by the cloud server; The vehicle-mounted remote communication box responds to the remote control command and receives the message to be detected; The current message value of the message to be detected is identified using a signal simulation platform.
6. A vehicle-mounted remote communication box testing device, characterized in that, The device includes: The test case acquisition module is used to acquire test cases for the vehicle-mounted remote communication box. The test cases include multiple readable test steps. The step execution module executes each test step based on the test field identifier of each test step. The execution of each test step includes requesting the cloud server to send a remote control command to the vehicle-mounted remote communication box, and matching the current message value of the message to be tested with the theoretical message value to obtain a matching result. The current message value is based on the vehicle-mounted remote communication box's response to the remote control command and is identified through a signal simulation platform. Executing each test step based on the test field identifier of each test step includes: determining the current step according to the order of the test steps; if the test field identifier of the current step is a variable setting field, then matching the message environment variable in the signal simulation platform with the corresponding message value according to the current step. The system binds the identity identifier to modify the initial message value of the target configuration message in the vehicle remote communication box and identify the current message value of the message to be detected; if the test field identifier of the current step is a status setting field, the working status of the target functional module is set according to the current step; if the test field identifier of the current step is a check field, the current message value of the message to be detected is matched with the theoretical message value according to the current step to obtain a matching result; if the test field identifier of the current step is a command sending field, the system requests the cloud server to send a remote control command to the vehicle remote communication box according to the current step; if the test field identifier of the current step is a waiting field, the system waits for the time specified in the current step. The result determination module is used to determine the test result of the test case based on the matching result and the instruction execution result returned by the cloud server.
7. The vehicle-mounted remote communication box testing device according to claim 6, the device further comprising: A cloud server is used to transmit remote control commands to the vehicle-mounted remote communication box, and to transmit the command execution results to the result determination module; The vehicle-mounted remote communication box is used to respond to the remote control command to obtain the message to be detected and the command execution result, and to send the command execution result to the cloud server; A signal simulation platform is used to identify the current message value of the message to be detected and transmit it to the result determination module.
8. An electronic device, characterized in that, The electronic device includes: One or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the vehicle-mounted remote communication box test method as described in any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by the computer's processor, causes the computer to perform the vehicle-mounted remote communication box testing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Automatic testing method, device and equipment based on remote control vehicle and medium
CN115963810A
Vehicle-mounted Ethernet testing method and device
CN116684302A
Remote vehicle control function rack test method and device, electronic equipment and medium
CN117193263A