Vehicle-mounted remote communication box test method and device, electronic equipment and storage medium
By executing test cases and identifying the matching results of message values, the problems of inefficient and inaccurate testing of on-board remote communication box are solved, efficient and accurate test results are achieved, and testing costs are reduced.
Patent Information
- Application Number
- CN202510036080.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-01-09
AI Technical Summary
The test efficiency of the on-board remote communication box is inefficient and inaccurate.
By obtaining the test case, executing the test field identification based on the test steps, requesting the cloud server to send remote control instructions, and identifying the matching result of the current message value and the theoretical message value of the message to be detected through the signal simulation platform, and determining the test result of the test case.
Improves testing efficiency, reduces human errors, ensures the accuracy of test results, and reduces testing costs.
Smart Images

Figure CN119892683A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated testing technology, and in particular to a vehicle-mounted remote communication box testing method, device, electronic equipment and storage medium. Background Art
[0002] With the development of Internet of Vehicles technology, the on-board telematics box (TBOX) is a key component for vehicle-to-external communication. TBOX is not only responsible for data exchange between the vehicle and the cloud server, but also undertakes multiple functions such as remote diagnosis, vehicle status monitoring, emergency rescue, etc. The stability and reliability of TBOX are crucial to vehicle safety.
[0003] In the related art, the testing process of TBOX is inefficient and prone to errors. Summary of the invention
[0004] The present application provides a vehicle-mounted remote communication box testing method, device, electronic device and storage medium to solve the technical problems of low testing efficiency and inaccurate testing of the above-mentioned vehicle-mounted remote communication box.
[0005] In one embodiment of the present application, the present application provides a method for testing a vehicle-mounted remote communication box, comprising: obtaining a test case for the vehicle-mounted remote communication box, the test case comprising a plurality of readable test steps; executing each of the test steps based on a test field identifier of each of the test steps, the execution of the test steps comprising requesting a cloud server to send a remote control command to the vehicle-mounted remote communication box, and matching a current message value of a message to be detected with a theoretical message value to obtain a matching result, the current message value being based on the vehicle-mounted remote communication box's response to the remote control command and identified through a signal simulation platform; 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 the present 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, binding the message environment variable in the signal simulation platform with the corresponding message identity identifier according to the current step to modify the initial message value of the target configuration message in the vehicle-mounted 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 state setting field, setting the working state of the target functional module according to the current step; if the test field identifier of the current step is a check field, 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 an instruction sending field, requesting the cloud server to send a remote control instruction to the vehicle-mounted remote communication box according to the current step; if the test field identifier of the current step is a waiting field, waiting according to the time in the current step.
[0007] In one embodiment of the present application, the initial message value of the target configuration message is modified and the current message value of the message to be detected is identified, including: 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-mounted remote communication box according to the corresponding message environment variable through the signal simulation platform; 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 the present application, the test result of the 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 mark, and the matching results of the messages to be detected are all matches, the test result of the test case is determined to be a success; if the instruction execution result is a failure mark, and / or there is at least one message to be detected whose matching result is a mismatch, the test result of the test case is determined to be a failure; wherein the failure mark includes executing, invalid instruction or execution failed.
[0009] In one embodiment of the present 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 according to 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 as to send the remote control command to the vehicle-mounted remote communication box through the cloud server.
[0010] In one embodiment of the present application, the vehicle-mounted remote communication box responds to the remote control command and obtains the current message value through the signal simulation platform, including: the vehicle-mounted remote communication box receives the remote control command sent by the cloud server; the vehicle-mounted remote communication box responds to the remote control command to obtain the message to be detected; and the current message value of the message to be detected is identified through the signal simulation platform.
[0011] In one embodiment of the present application, the present application provides a vehicle-mounted remote communication box testing device, including: a use case acquisition module, used to obtain a test case of the vehicle-mounted remote communication box, the test case including a plurality of readable test steps; a step execution module, using a test field identifier based on each of the test steps to execute each of the test steps, the execution of the test steps including requesting a cloud server to send a remote control command to the vehicle-mounted remote communication box, and matching a current message value of a message to be detected with a theoretical message value to obtain a matching result, the current message value is based on the vehicle-mounted remote communication box responding to the remote control command and is identified by a signal simulation platform; a result determination module, used to determine the test result of the test case according to the matching result and the instruction execution result returned by the cloud server.
[0012] In one embodiment of the present application, the device also includes: a cloud server, used to transmit remote control instructions to the vehicle-mounted remote communication box, and transmit the instruction execution result to the result determination module; the vehicle-mounted remote communication box, used to respond to the remote control instructions to obtain the message to be detected and the instruction execution result, and send the instruction execution result to the cloud server; 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 the present application, the present application provides an electronic device, which includes: one or more processors; a storage device for storing one or more programs, 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 the present application, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer executes the vehicle-mounted remote communication box testing method described in any one of the above embodiments.
[0015] Beneficial effects of the embodiments of the present application: The present application provides a vehicle-mounted remote communication box testing method, device, electronic device and storage medium. The embodiments of the present application execute test cases through readable test steps and test field identifiers, and can monitor output results in real time through a signal simulation platform, thereby improving test efficiency. There is no need to generate different test scripts according to different test cases, and the testing cost is reduced through script-free testing.
[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0019] Figure 2 A schematic diagram showing a flow chart of a vehicle-mounted remote communication box testing method according to an embodiment of the present application is shown;
[0020] Figure 3 A schematic diagram of an implementation flow of a vehicle-mounted remote communication box testing method according to an embodiment of the present application is shown;
[0021] Figure 4 A block diagram of a vehicle-mounted remote communication box testing device according to an embodiment of the present application is shown;
[0022] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0024] The illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. Therefore, the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0025] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0026] See also Figure 1 , Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiment of the present application can be applied is shown. Figure 1 As shown, the system architecture may include a computer device 101, a cloud server 102, a vehicle-mounted remote communication box 103, and a signal simulation platform 104. The computer device 101 is used to execute a test step to request the cloud server 103 to send a remote control command to the vehicle-mounted remote communication box 103, and the vehicle-mounted remote communication box 103 generates a message to be detected in response to the remote control command, and the current message value of the message to be detected is identified by the signal simulation platform 104 and transmitted to the computer device 101 to obtain a test result.
[0027] Exemplarily, the computer device 101 obtains a test case for the vehicle-mounted remote communication box, and the test case includes multiple readable test steps; each test step is executed based on the test field identifier of each test step, and the execution of the 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 detected with the theoretical message value to obtain a matching result, and the current message value is based on the vehicle-mounted remote communication box responding to the remote control command and identified by the signal simulation platform; the test result of the test case is determined according to the matching result and the instruction execution result returned by the cloud server.
[0028] In the related art, there are technical problems of low testing efficiency and inaccurate testing of vehicle-mounted remote communication boxes.
[0029] In order to solve the above technical problems, the present application provides a vehicle-mounted remote communication box testing method, device, electronic device and storage medium. The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.
[0030] See also Figure 2 , Figure 2FIG. 1 is a flow chart showing a method for testing a vehicle-mounted remote communication box according to an embodiment of the present application. 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 as follows:
[0031] Step S210, obtaining a test case of the vehicle-mounted remote communication box.
[0032] Among them, the test case includes multiple readable test steps.
[0033] In some embodiments of the present application, before testing the vehicle-mounted telematics box (TBOX), a test case is written, wherein the test case can be stored in a spreadsheet, such as an EXCE1 table.
[0034] Step S220, executing 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 a remote control command 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.
[0035] The current message value is based on the vehicle-mounted remote communication box responding to the remote control command and is identified by the signal simulation platform.
[0036] In some embodiments of the present 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-mounted 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 state setting field, then according to the current step, the working state 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-mounted 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.
[0037] In some embodiments of the present application, the information of each test step of all test cases can be directly read and the test steps can be executed by only one execution program. For example, the "step" of each line of content in the test case is read, and the current step is determined according to the sequence number after the "step". The sequence number is used to indicate the step number of the test case. The execution program includes a Python script.
[0038] In some embodiments of the present application, the execution program includes a reading function and a setting function.
[0039] In some embodiments of the present application, the position of the test field identifier is indicated by a preset symbol, and the test field identifier represents the operation to be performed by a preset string. For example, the test field identifier after the "--" symbol is obtained; the environment variable is set by the "set_env_var" string; the current state is set by the "tbox_state" string, and the remote control command is sent by the "remote_control" string; the variable is checked by the "check" string; the waiting time is represented by the "sleep" string, and the unit can be set to seconds. The information following the operation to be performed is the specific value or variable name.
[0040] In some embodiments of the present application, the initial message value of the target configuration message is modified and the current message value of the message to be detected is identified, including: 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 on-board remote communication box according to the corresponding message environment variable through a signal simulation platform; 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 the present application, a test step such as "step1--set_env_var:BCM_PowerState=0x0" is used to represent step 1, setting the initial message value of the vehicle power state mode corresponding to the body control module (Body Control Module, BCM) to 0x0.
[0042] In some embodiments of the present application, the signal simulation platform is used to characterize a tool platform for simulating the sending of controller area network (CAN) messages, such as a CAN Open Environment (CANOE).
[0043] In some embodiments of the present application, CANOE is used to run the engineering simulation environment, and the data value of the CAN message is operated according to the message environment variable used in the test specification, so that the python end can directly operate the message environment variable to change the CAN message value. If the message identity (message ID) of the vehicle power state mode is 0x3C2, its message value can be set to 00 00 0000 00 00 00, by setting a message environment variable named BCM_0x3C2 in CANOE, this message environment variable is bound to the message ID 0x3C2, then when the variable value changes, the data value of the corresponding message ID will also change, such as python sets the value of BCM_0x3C2 to 2, then the corresponding message value becomes 02 00 00 00 000000 00.
[0044] In some embodiments of the present application, a CANOE simulation project is automatically opened, and all message environment variables in the CANOE project are read.
[0045] In some embodiments of the present application, the test step: "step2--tbox_state:sleep" is used to characterize step 2, which is to put the TBOX into a sleep state.
[0046] In some embodiments of the present application, requesting a cloud server to send a remote control command to a vehicle-mounted remote communication box includes: obtaining login authentication information of the cloud server; determining the remote control command according to 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 as to send the remote control command to the vehicle-mounted remote communication box through the cloud server.
[0047] In some embodiments of the present application, the cloud server includes a telematics service provider (TSP) server. The login authentication information includes a server interface, an authentication
[0048] In some embodiments of the present application, the execution 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, wherein the login authentication information includes identity authentication information and communication data verification information.
[0049] In some embodiments of the present application, when the execution program reads that the current step needs to send a remote control command, the execution 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, the test step: "step3--remote_control:commandtype:LOCK,command:ON", the command type is "LOCK" lock command, and the command parameter is "ON" to turn on the lock.
[0050] In some embodiments of the present application, the cloud server receives the remote control command sent by the execution program, and sends the remote control command to the TBOX via Message Queuing Telemetry Transport (MQTT). The TBOX will automatically perform the corresponding operation according to the remote control command and obtain the execution command result. The TBOX returns the command execution result to the cloud server for storage, so that the execution program can query and read it.
[0051] In some embodiments of the present application, after the execution program sends the remote control instruction, it will wait for a use case execution time according to the test specification manual. When the waiting time is over, the execution program will automatically read the message identity (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 represent the value expected to become after a test case is executed, and the current message value may be different from the theoretical message value.
[0052] In some embodiments of the present application, for example, "step4--check:BCM_PowerState=2", step 4, check whether the current message value of the vehicle power status mode in BCM is 2; "step5--check:vcu_hvOnMode=2", step 5, check 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, check whether the current message value of the power mode of the keyless entry and start system (Passive Entry and Passive Start, PEPS) commonly used in BCM is 2; "step7--sleep:3", step 7, wait for 3 seconds; "step8--check:psm_drSeatVentSts=3", step 8, check whether the current message value of the ventilation status of the passenger seat (Driver Side Seat Ventilation Status) is 3.
[0053] Step S230, determining the test result of the test case according to the matching result and the instruction execution result returned by the cloud server.
[0054] In some embodiments of the present application, the test result of the 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 tested is at least one; if the instruction execution result is a success mark, and the matching results of the messages to be tested are all matches, the test result of the test case is determined to be a success; if the instruction execution result is a failure mark, and / or there is at least one message to be tested whose matching result is a mismatch, the test result of the test case is determined to be a failure; wherein the failure mark includes executing, invalid instruction, or execution failed.
[0055] In some embodiments of the present application, the execution program reads the instruction execution result from the cloud server.
[0056] In some embodiments of the present application, the command execution result of the remote control command in the cloud server is queried through the request library, and whether the test case passes is comprehensively determined by the remote control result in the cloud server and the matching results of all the messages to be detected. If the test case passes, "Pass" is automatically marked in the test report, and if it fails, "Fail" is marked.
[0057] In some embodiments of the present application, by importing a test report tool, such as the allure library, the matching results, the test results of the test cases, and the execution process information of the 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 FIG. 1 is a schematic diagram showing an implementation flow of a vehicle-mounted remote communication box testing method according to an embodiment of the present application. Figure 3As shown, the CANOE project is started by executing the program; the test case is read by executing the program, and the operation to be performed in the current step is determined according to the order of the test steps and the test field identifier; if the variable setting field is detected, the message ID and the message environment variable can be bound, and the test environment configuration is performed by changing the environment variable value in CANOE; if the instruction sending field is detected, the remote control instruction is sent; if the waiting field is detected, the time in the current step is waited; if the check field is detected, the current message value of the message to be detected is matched with the theoretical message value to obtain a matching result; the instruction execution result of the remote control instruction is obtained from the cloud server by executing the program; the test result of the test case is determined by executing the program based on the instruction execution result and the matching result, thereby generating a test report. The present application can efficiently simulate input signals and monitor output results in real time, thereby improving the efficiency of TBOX testing; automated testing avoids human errors and improves test accuracy; in the subsequent maintenance process, the present application only needs to maintain a spreadsheet of test cases and CANOE message environment variables, without the need to generate different test scripts according to different test cases, thereby reducing testing costs. The test system is highly flexible, and only requires writing an executable and readable test case table according to the script specification to quickly adapt the execution program, which can be widely used in the testing field of vehicle-mounted TBOX equipment.
[0059] See also Figure 4 , Figure 4 A block diagram of a vehicle-mounted remote communication box testing device according to an embodiment of the present application is shown. The device can be applied to Figure 1 The implementation environment shown in the figure is specifically configured in the computer device 101. The 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 applied.
[0060] like Figure 4 As shown, a vehicle-mounted remote communication box testing device 400 according to an embodiment of the present application includes: a use case acquisition module 401 , a step execution module 402 and a result determination module 403 .
[0061] The test case acquisition module 401 is used to acquire a test case of the vehicle-mounted remote communication box, and the test case includes a plurality of readable test steps;
[0062] A step execution module 402 executes each test step using a test field identifier based on each test step, wherein the execution of the test step includes requesting the cloud server to send a remote control command to the vehicle-mounted remote communication box, and matching a 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 is identified by the signal simulation platform;
[0063] The result determination module 403 is used to determine the test result of the test case according to the matching result and the instruction execution result returned by the cloud server.
[0064] In some embodiments of the present 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 transmit command execution results to the result determination module;
[0066] 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 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 test device provided in the above embodiment and the vehicle-mounted remote communication box test method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the vehicle-mounted remote communication box test device provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0069] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the vehicle-mounted remote communication box testing method provided in the above-mentioned embodiments.
[0070] See also Figure 5 , Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present 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 according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the random access memory 503, various programs and data required for system operation are also stored. The central processing unit 501, the read-only memory 502 and the random access memory 503 are connected to each other through 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, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, 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, a 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 magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0073] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0074] The computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media can 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), a 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 application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A 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. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0075] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, 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 alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart 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.
[0076] The units involved in the embodiments described in the present application can be implemented by software or by hardware, and the units described can also be set in a processor. Among them, the names of these units do not constitute a limitation on the units themselves under certain circumstances. Therefore, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation mode of the present application.
[0077] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle-mounted remote communication box testing method provided in the above embodiments. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being assembled into the electronic device.
[0078] In the above embodiments, unless otherwise specified, describing common objects by using serial numbers such as "first" and "second" only indicates that they refer to different instances of the same object, rather than indicating that the objects being described must adopt a given order, whether in time, space, sorting or any other way.
[0079] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A vehicle-mounted remote communication box testing method, characterized in that: The method comprises: Obtaining a test case of the vehicle-mounted remote communication box, wherein the test case includes a plurality of readable test steps; Executing each of the test steps based on the test field identifier of each of the test steps, the execution of the test steps includes requesting the cloud server to send a remote control command to the vehicle-mounted remote communication box, and matching a 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 is identified by a signal simulation platform; The test result of the test case is determined according to the matching result and the instruction execution result returned by the cloud server.
2. The vehicle-mounted remote communication box testing method according to claim 1, characterized in that: Executing each of the test steps based on the test field identifier of each of the test steps includes: Determining the current step according to the sequence of each of the test steps; 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-mounted remote communication box and identify the current message value of the message to be detected; If the test field of the current step is identified as a state setting field, the working state of the target functional module is set according to the current step; If the test field of the current step is identified as 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 of the current step is identified as a command sending field, then requesting the cloud server to send a remote control command to the vehicle-mounted remote communication box according to the current step; If the test field of the current step is identified as a waiting field, then the time in the current step is waited.
3. The vehicle-mounted remote communication box testing method according to claim 2, characterized in that: Modify the initial message value of the target configuration message and the current message value of the message to be detected, including: Assigning an initial message value to a corresponding message environment variable according to the message identity of the target configuration message, and performing a test environment configuration on the vehicle-mounted remote communication box according to the corresponding message environment variable through the signal simulation platform; Based on the message identity of the message to be detected, the current message value is assigned to the corresponding message environment variable.
4. The vehicle-mounted remote communication box testing method according to any one of claims 1 to 3, characterized in that: Determining the test result of the test case according to the matching result and the instruction execution result returned by the cloud server includes: The number of the messages to be detected is at least one; If the instruction execution result is a success mark, and the matching results of the messages to be detected are all matches, the test result of the test case is determined to be successful; If the instruction execution result is a failure mark, and / or there is a matching result of at least one message to be detected that is not matched, the test result of the test case is determined to be a failure; The failure flag includes "in execution", "invalid instruction" or "execution failure".
5. The vehicle-mounted remote communication box testing method according to any one of claims 1 to 3, characterized in that: Requesting the cloud server to send a remote control command to the vehicle-mounted remote communication box includes: Get the login authentication information of the cloud server; Determine the remote control command according to the command type and command parameters in the test step; The remote control command is sent to a cloud server based on the login authentication information, so that the remote control command is sent to the vehicle-mounted remote communication box through the cloud server.
6. The vehicle-mounted remote communication box testing method according to claim 5, characterized in that: The vehicle-mounted remote communication box responds to the remote control command and obtains the current message value through the signal simulation platform, including: The vehicle-mounted remote communication box receives the remote control command sent by the cloud server; The vehicle-mounted remote communication box obtains a message to be detected in response to the remote control command; The current message value of the message to be detected is identified through a signal simulation platform.
7. A vehicle-mounted telecommunication box testing device, characterized in that: The device comprises: A test case acquisition module, used to acquire a test case of the vehicle-mounted remote communication box, wherein the test case includes a plurality of readable test steps; a step execution module, executing each of the test steps using a test field identifier based on each of the test steps, wherein the execution of the test steps includes requesting a cloud server to send a remote control command to the vehicle-mounted remote communication box, and matching a 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 is identified by a signal simulation platform; A result determination module is used to determine the test result of the test case according to the matching result and the instruction execution result returned by the cloud server.
8. The vehicle-mounted remote communication box testing device according to claim 7, further comprising: A cloud server, used for transmitting remote control commands to the vehicle-mounted remote communication box, and transmitting 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 send the command execution result to the cloud server; 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.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the vehicle-mounted remote communication box testing method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the vehicle-mounted remote communication box testing method according to any one of claims 1 to 6.
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
Vulnerability detection method for Web interface of IoT (Internet of Things) equipment
CN117439795A
Vehicle operation verification system and onboard gateway device
JP2010062883A