Vehicle machine test method, device, equipment, storage medium and program product
By communicating and interacting with the vehicle and machine in a vehicle service simulation environment, obtaining and comparing test data, it solves the problem that existing technology cannot verify the response performance of the car and machine, and achieves efficient and accurate vehicle and machine performance in an environment without a complete vehicle. test.
Patent Information
- Application Number
- CN202410772367.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-08
AI Technical Summary
The existing technology cannot effectively verify the response performance of the vehicle machine to vehicle services, especially in the absence of a complete vehicle environment, resulting in high test resource consumption and high threshold.
By using test equipment to communicate and interact with the vehicle under test in a vehicle service simulation environment, test service data and response service data are obtained, and compared, to achieve effective verification of vehicle and computer performance.
Without the need for a complete vehicle environment, the response of the vehicle to vehicle services can be accurately verified, which improves testing efficiency and accuracy and reduces resource consumption.
Smart Images

Figure CN118747138A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing technology, and in particular to a vehicle computer testing method, device, equipment, storage medium and program product. Background Art
[0002] Under the service-oriented architecture of the vehicle SOA (Service-Oriented Architecture), the current testing method tends to be manual testing and verification based on the vehicle functional scenarios, which involves more resources and has a high threshold. It is also impossible to test the vehicle computer without a complete vehicle environment, resulting in the inability to effectively verify the response performance of the vehicle computer to vehicle services. Summary of the invention
[0003] The main purpose of the present invention is to provide a vehicle computer testing method, device, equipment, storage medium and program product, aiming to solve the technical problem that the prior art cannot effectively verify the response performance of the vehicle computer to vehicle services.
[0004] To achieve the above object, the present invention provides a vehicle computer testing method, which is applied to a test device running a vehicle service simulation environment, the test device is communicatively connected with the vehicle computer to be tested, and the vehicle computer testing method comprises:
[0005] Acquire the test service data of the vehicle machine to be tested;
[0006] Communicate and interact with the vehicle computer to be tested based on the test service data to obtain response service data of the vehicle computer to be tested;
[0007] The test service data is compared with the response service data to obtain the test result of the vehicle computer to be tested.
[0008] Optionally, the communication interaction includes an uplink channel interaction; when the communication interaction is the uplink channel interaction, the communication interaction with the vehicle machine to be tested based on the test service data to obtain response service data of the vehicle machine to be tested includes:
[0009] Generate a test message based on the test service data, wherein the test message carries service interface information and event status information;
[0010] Sending the test message to the vehicle computer to be tested;
[0011] Monitor the response result of the vehicle computer under test to the service interface information and the event status information, and obtain the response service data of the vehicle computer under test.
[0012] Optionally, the generating a test message based on the test service data includes:
[0013] Determine a service to be tested and a simulation event of the service to be tested based on the test service data;
[0014] Simulating a simulation event of the service to be tested by using the vehicle service simulation environment;
[0015] Obtain service interface information and event status information based on event simulation results;
[0016] A test message is generated based on the service interface information and the event status information.
[0017] Optionally, the communication interaction further includes downlink channel interaction; when the communication interaction is the downlink channel interaction, the communication interaction with the vehicle machine to be tested based on the test service data to obtain response service data of the vehicle machine to be tested includes:
[0018] Acquire calling instruction information based on the test service data;
[0019] Sending the calling instruction information to the vehicle computer to be tested;
[0020] Monitoring a command response message, wherein the command response message is generated by the vehicle computer to be tested based on the calling command information;
[0021] The response service data of the vehicle computer to be tested is obtained based on the command response message.
[0022] Optionally, the acquiring the response service data of the vehicle computer to be tested based on the command response message includes:
[0023] Parsing the command response message to obtain message data;
[0024] Determine a target invocation service and a target event of the target invocation service based on the message data;
[0025] Simulating a target event of the target calling service through the vehicle service simulation environment;
[0026] The response service data of the vehicle computer to be tested is obtained according to the event simulation result.
[0027] Optionally, before the communicating and interacting with the vehicle computer to be tested based on the test service data and acquiring response service data of the vehicle computer to be tested, the method further includes:
[0028] Acquire an interface identification data set of a vehicle service and an event identification data set of each of the vehicle services;
[0029] Determine environmental simulation parameters according to the interface identification data set and the event identification data set;
[0030] A vehicle service simulation environment is constructed based on the environment simulation parameters.
[0031] In addition, to achieve the above-mentioned purpose, the present invention further provides a vehicle computer testing device, the vehicle computer testing device comprising:
[0032] A data acquisition module, used to acquire the test service data of the vehicle machine to be tested;
[0033] A communication interaction module, used to communicate and interact with the vehicle computer to be tested based on the test service data, and obtain response service data of the vehicle computer to be tested;
[0034] The vehicle computer test module is used to compare the test service data with the response service data to obtain the test result of the vehicle computer to be tested.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle computer testing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle computer testing method described above.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer-readable storage medium, which is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, the steps of the vehicle computer testing method described above are implemented.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle computer testing method described above are implemented.
[0038] The vehicle computer testing method described in the present invention is applied to a test device running a vehicle service simulation environment, the test device is communicatively connected with the vehicle computer to be tested, the test service data of the vehicle computer to be tested is obtained, the communication interaction is performed with the vehicle computer to be tested based on the test service data, the response service data of the vehicle computer to be tested is obtained, the test service data is compared with the response service data, and the test result of the vehicle computer to be tested is obtained; since the present application is applied to a test device running a vehicle service simulation environment, the test device is communicatively connected with the vehicle computer to be tested, the communication interaction is performed with the vehicle computer to be tested through the vehicle service simulation environment, the response service data of the vehicle computer to be tested is obtained, and the test service data is compared with the response service data, thereby effectively verifying the response of the vehicle computer to be tested to the vehicle service, and realizing accurate performance testing of the vehicle computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 It is a structural schematic diagram of a vehicle machine test device in a hardware operating environment involved in an embodiment of the present invention;
[0042] Figure 2 It is a flowchart of the first embodiment of the vehicle computer testing method of the present invention;
[0043] Figure 3 It is a flow chart of the second embodiment of the vehicle computer testing method of the present invention;
[0044] Figure 4 It is a test flow diagram of the vehicle computer test method of the present invention;
[0045] Figure 5 A schematic diagram of a flow chart of a third embodiment of a vehicle computer testing method of the present invention;
[0046] Figure 6 This is a structural block diagram of the first embodiment of the vehicle computer testing device of the present invention.
[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0049] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of the vehicle computer test equipment in the hardware operating environment involved in the embodiment of the present invention.
[0050] like Figure 1As shown, the vehicle machine test equipment may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0051] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the vehicle test equipment, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0052] like Figure 1 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a vehicle computer test program.
[0053] exist Figure 1 In the vehicle test device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the vehicle test device of the present invention can be set in the vehicle test device, and the vehicle test device calls the vehicle test program stored in the memory 1005 through the processor 1001, and executes the vehicle test method provided by the embodiment of the present invention.
[0054] The embodiment of the present invention provides a vehicle computer testing method, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a vehicle computer testing method according to the present invention.
[0055] In this embodiment, the vehicle computer testing method is applied to a test device running a vehicle service simulation environment, the test device is communicatively connected with the vehicle computer to be tested, and the vehicle computer testing method includes the following steps:
[0056] Step S10: Acquire the test service data of the vehicle computer to be tested.
[0057] It can be understood that this embodiment can be applied when there is no whole vehicle environment at present, by pre-building a whole vehicle virtual service environment, to achieve communication interaction and testing with the vehicle machine to be tested.
[0058] It should be understood that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the vehicle computer test equipment (referred to as the test equipment) as an example to illustrate this embodiment and the following embodiments.
[0059] It should be noted that the test service data may be the vehicle service data to be tested and the event data corresponding to the vehicle service. For example, the vehicle service may be air conditioning, seats, windows and other vehicle services, and the event may be a control event and status event of the vehicle service, such as controlling the air conditioning to turn on / off, controlling the air conditioning to adjust to 26 degrees, etc.
[0060] It should be noted that the vehicle computer to be tested and the test equipment can be connected to the same local area network using an on-board Ethernet converter, thereby achieving communication connection between the test equipment and the vehicle computer to be tested.
[0061] Step S20: communicating and interacting with the vehicle computer to be tested based on the test service data to obtain response service data of the vehicle computer to be tested.
[0062] It should be noted that the response service data may be response data of the vehicle under test to the test service data obtained after communicating and interacting with the vehicle under test. For example, the service to be tested is air conditioning, and the event to be tested is turning on the air conditioner. The test service data is obtained based on the service to be tested and the event to be tested, and communication and interaction are performed with the vehicle under test based on the test service data to obtain the response service data of the vehicle under test to the service to be tested and the event to be tested.
[0063] It is understandable that the test equipment can use the reflection mechanism on the vehicle to be tested to call the specified interface and monitor the data.
[0064] In some embodiments, communication interaction can be achieved between the vehicle machine to be tested and the test equipment through ADC communication.
[0065] Furthermore, in order to accurately construct a vehicle service simulation environment and improve test accuracy, before the above step S20, the following steps may be included:
[0066] Acquire an interface identification data set of a vehicle service and an event identification data set of each of the vehicle services;
[0067] Determine environmental simulation parameters according to the interface identification data set and the event identification data set;
[0068] A vehicle service simulation environment is constructed based on the environment simulation parameters.
[0069] It should be noted that this embodiment can be applied to the communication test of the vehicle-mounted SOA (Service-Oriented Architecture). The design of SOA services and service interfaces is carried on the SOME / IP protocol. These services are designed according to the SOA standard and are applied to the data communication of the vehicle-mounted ECU.
[0070] It can be understood that the test equipment can obtain the ID information of the vehicle services and vehicle service events of the vehicle under test based on the VSOME / IP database, thereby realizing the simulation of the whole vehicle SOA service, including service subscription / publishing, message data parsing and construction, and message reception and sending.
[0071] Step S30: Compare the test service data with the response service data to obtain the test result of the vehicle computer to be tested.
[0072] It should be noted that, in this embodiment, the test service data is compared with the response service data to determine whether the response result of the vehicle computer to be tested is consistent with expectations, thereby obtaining the test result of the vehicle computer to be tested.
[0073] It should be understood that the test service data may include the service ID of the service to be tested and the event ID of the event to be tested, and the response service data may include the response event ID and the response service ID of the response of the vehicle computer to be tested. The test equipment obtains the response service data of the vehicle computer to be tested, compares the response service ID with the service ID of the service to be tested, and compares the response event ID with the event ID of the event to be tested, thereby obtaining the test result of the vehicle computer to be tested.
[0074] For example, the service to be tested is air conditioning, and the event to be tested is adjusting the air conditioning temperature to 28 degrees. Based on the test service data, the service ID to be tested is determined to be a, and the event ID of the event to be tested is b. Based on the response service data of the vehicle computer to be tested, the response service ID and response event ID of the vehicle computer to be tested are determined. It is judged whether the response service ID is consistent with the service ID to be tested, and whether the response event ID is consistent with the event ID to be tested. Based on the judgment result, it is determined whether the vehicle computer to be tested responds normally to adjust the air conditioning temperature to 28 degrees, thereby obtaining the test result.
[0075] This embodiment is applied to a test device running a vehicle service simulation environment. The test device is communicatively connected with the vehicle computer to be tested, communicates and interacts with the vehicle computer to be tested through the vehicle service simulation environment, obtains response service data of the vehicle computer to be tested, and compares the test service data with the response service data, thereby effectively verifying the response of the vehicle computer to the vehicle service and achieving accurate performance testing of the vehicle computer.
[0076] refer to Figure 3 , Figure 3 FIG. 2 is a flow chart of a second embodiment of a vehicle computer testing method according to the present invention.
[0077] Based on the above first embodiment, in this embodiment, the communication interaction includes an uplink channel interaction; when the communication interaction is the uplink channel interaction, the step S20 further includes:
[0078] Step S201: Generate a test message based on the test service data.
[0079] It should be noted that the test message carries service interface information and event status information. The service interface information may be interface information of the service to be tested, and the event status information may be information simulating the current event status of the service to be tested, for example, the event status may be a simulated air conditioner with a current temperature of 25 degrees.
[0080] It is understandable that the test equipment can perform data link testing through an uplink channel and a downlink channel respectively according to the data transmission direction, wherein the uplink channel is an acquisition type interface and the downlink channel is a setting type interface.
[0081] Furthermore, in order to accurately generate the test message, the above step S201 may include:
[0082] Step S2011: determining a service to be tested and a simulation event of the service to be tested based on the test service data;
[0083] Step S2012: simulating a simulation event of the service to be tested through the vehicle service simulation environment;
[0084] Step S2013: Obtain service interface information and event status information according to the event simulation result;
[0085] Step S2014: Generate a test message based on the service interface information and the event status information.
[0086] It should be noted that the service to be tested may be a service that needs to be simulated, and the above-mentioned simulated event may be an event that needs to be simulated for the service to be tested. For example, if the simulated air-conditioning temperature is 28 degrees, then the service to be tested is the air-conditioning, and the simulated event is that the current temperature of the air-conditioning is 28 degrees.
[0087] It can be understood that the vehicle service simulation environment can be a simulated operating environment for the entire vehicle SOA service by the test equipment. The simulated operating environment can be used to simulate the simulated events of the service to be tested, and then the response of the vehicle to be tested to the simulation results can be observed.
[0088] It should be noted that the service interface information may be an interface ID of the service interface, and the above event status information may be an event status ID.
[0089] Step S202: Send the test message to the vehicle computer to be tested.
[0090] It should be noted that the uplink channel test can be carried out by simulating the service to be tested and the event to be tested, generating a test message from the data of the service to be tested and the event to be tested, and sending the test message to the vehicle to be tested so that the vehicle to be tested parses the test message and then monitors the response result of the vehicle to be tested.
[0091] Step S203: monitoring the response result of the vehicle computer under test to the service interface information and the event status information, and acquiring the response service data of the vehicle computer under test.
[0092] It should be noted that the response result of the vehicle computer to be tested may be a response to services and events through a visual interactive interface. For example, the service to be tested is air conditioning, and the event to be tested is that the current air-conditioning temperature is 26 degrees. Whether the response service and response event displayed by the vehicle computer to be tested through the visual interactive interface are consistent with the service to be tested and the event to be tested, wherein the response result of the above-mentioned visual interactive interface may be the interface acquisition value returned by the vehicle computer to be tested.
[0093] It is understandable that the uplink channel interaction test can be achieved by simulating the vehicle's services and events, and then detecting whether the vehicle computer to be tested accurately responds to the simulated services and events, thereby realizing the test of the vehicle computer to be tested. For example, simulating the current temperature of the air conditioner to be 26 degrees, and detecting whether the vehicle computer to be tested accurately responds to display the current temperature of the air conditioner as 26 degrees.
[0094] It should be noted that, referring to Figure 4 , Figure 4The figure is a test flow diagram, where steps 1, 2, 3 and 4 are uplink channel tests. The test device can be a PC. The PC simulates the vehicle SOA service to realize service publishing and subscription, message data parsing and construction, and message reception and transmission. The test device sends the service interface data value A based on the test case request to be tested, generates and sends the test message data to the vehicle under test based on the service interface data value A. The vehicle under test parses the test message data, obtains the interface data, and returns the interface acquisition value B. The PC compares the data value A with the acquisition value B to obtain the test result. The test case can include the service to be tested and the event status to be tested.
[0095] In this embodiment, when the communication interaction is the uplink channel interaction, a test message is generated based on the test service data, and the test message carries service interface information and event status information. The test message is sent to the vehicle computer to be tested, and the response result of the vehicle computer to be tested to the service interface information and the event status information is monitored, and the response service data of the vehicle computer to be tested is obtained, thereby realizing uplink channel data link testing, effectively testing the vehicle computer response, and improving test efficiency.
[0096] refer to Figure 5 , Figure 5 FIG. 4 is a flow chart of a third embodiment of a vehicle computer testing method according to the present invention.
[0097] Based on the above embodiments, in this embodiment, the communication interaction further includes downlink channel interaction; when the communication interaction is the downlink channel interaction, in step S20, the method further includes:
[0098] Step S211: Acquire calling instruction information based on the test service data.
[0099] It should be noted that the calling instruction information may be instruction information of an interface call.
[0100] Step S212: sending the calling instruction information to the vehicle computer to be tested.
[0101] It can be understood that the test equipment obtains the test case, obtains the call instruction information to be called based on the test case, and sends the call instruction information to the vehicle computer under test, so that the vehicle computer under test parses the call instruction information, implements the interface call, and returns the interface call result to the test equipment in the form of a response message.
[0102] It should be understood that the downlink channel test can be to send the interface information that needs to be called to the vehicle computer under test, so that the vehicle computer under test returns the interface calling instruction, realizes the interface call of the whole vehicle SOA service simulation environment, and then detects whether the interface call result of the vehicle computer under test is consistent with the expectation, thereby obtaining the test result of the downlink channel.
[0103] Step S213: monitor the instruction response message.
[0104] It should be noted that the command response message is generated by the vehicle under test based on the call command information. The command response message may be an interface call command of the vehicle under test to the vehicle SOA service environment simulated by the test equipment.
[0105] Step S214: Acquire response service data of the vehicle computer to be tested based on the command response message.
[0106] It can be understood that this embodiment monitors the command response message, parses the command response message after receiving the command response message, performs service and event simulation based on the interface call instructions obtained after message parsing through the vehicle service simulation environment, and then obtains the response service data of the vehicle machine to be tested based on the simulation result, and obtains the test result of the downlink channel test by comparing the response service data with the test service data.
[0107] Furthermore, in order to accurately obtain the response result of the vehicle computer to be tested, the above step S214 may include:
[0108] Step S2141: parsing the command response message to obtain message data;
[0109] Step S2142: determining a target invocation service and a target event of the target invocation service based on the message data;
[0110] Step S2143: simulating the target event of the target calling service through the vehicle service simulation environment;
[0111] Step S2144: Acquire the response service data of the vehicle computer to be tested according to the event simulation result.
[0112] It should be noted that the target call service can be the vehicle service that needs to be simulated and called by the vehicle under test in this test case, and the above-mentioned target event can be the service event that needs to be simulated and called by the vehicle under test in this test case. For example, the target event can be an event sent by the vehicle under test to call for turning on the air conditioner.
[0113] It should be noted that, referring to Figure 4 , Figure 4The figure is a test flow diagram, where steps 5, 6, 7 and 8 are downlink channel tests. The test device can be a PC. The PC simulates the vehicle SOA service to realize service publishing and subscription, message data parsing and construction, and message reception and transmission. The test device sends a call to the specified interface (set to C) based on the test case to be tested to the vehicle under test. The vehicle under test generates and sends a response message based on the call interface to call the vehicle SOA service through the response message. The PC parses the response message and obtains the test case service interface acquisition value, and then obtains the response service data D of the vehicle under test calling the service, and determines whether the response service data D is consistent with the setting C, thereby obtaining the test result of the downlink channel.
[0114] In this embodiment, when the communication interaction is the downlink channel interaction, call instruction information is obtained based on the test service data, the call instruction information is sent to the vehicle computer to be tested, and instruction response messages are monitored. The instruction response messages are generated by the vehicle computer to be tested based on the call instruction information, and the response service data of the vehicle computer to be tested is obtained based on the instruction response messages, thereby realizing downlink channel data link testing, realizing testing of data links of different channels, effectively testing the vehicle computer response, and improving test efficiency.
[0115] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a vehicle-computer test program is stored. When the vehicle-computer test program is executed by a processor, the steps of the vehicle-computer test method described above are implemented.
[0116] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0117] The computer-readable storage medium may be included in the vehicle-mounted test device; or may exist independently without being assembled into the vehicle-mounted test device.
[0118] In addition, an embodiment of the present invention further provides a computer program product, including a vehicle computer test program, and when the vehicle computer test program is executed by a processor, the steps of the vehicle computer test method described above are implemented.
[0119] The specific implementation of the computer program product of the present invention is basically the same as the various embodiments of the above-mentioned vehicle computer testing method, and will not be repeated here.
[0120] Reference Figure 6 , Figure 6 This is a structural block diagram of the first embodiment of the vehicle computer testing device of the present invention.
[0121] like Figure 6 As shown, the vehicle computer testing device proposed in the embodiment of the present invention includes:
[0122] A data acquisition module 10 is used to acquire the test service data of the vehicle to be tested;
[0123] The communication interaction module 20 is used to communicate and interact with the vehicle computer to be tested based on the test service data to obtain response service data of the vehicle computer to be tested;
[0124] The vehicle computer test module 30 is used to compare the test service data with the response service data to obtain the test result of the vehicle computer to be tested.
[0125] Furthermore, the communication interaction includes an uplink channel interaction; when the communication interaction is the uplink channel interaction, the communication interaction module 20 is also used to generate a test message based on the test service data, and the test message carries service interface information and event status information; send the test message to the vehicle under test; monitor the response results of the vehicle under test to the service interface information and the event status information, and obtain the response service data of the vehicle under test.
[0126] Furthermore, the communication interaction module 20 is also used to determine the service to be tested and the simulated events of the service to be tested based on the test service data; simulate the simulated events of the service to be tested through the vehicle service simulation environment; obtain service interface information and event status information according to the event simulation results; and generate a test message based on the service interface information and the event status information.
[0127] Furthermore, the communication interaction also includes downlink channel interaction; when the communication interaction is the downlink channel interaction, the communication interaction module 20 is also used to obtain call instruction information based on the test service data; send the call instruction information to the vehicle under test; listen to the instruction response message, the instruction response message is generated by the vehicle under test based on the call instruction information; obtain the response service data of the vehicle under test based on the instruction response message.
[0128] Furthermore, the communication interaction module 20 is also used to parse the instruction response message to obtain message data; determine the target call service and the target event of the target call service based on the message data; simulate the target event of the target call service through the vehicle service simulation environment; and obtain the response service data of the vehicle under test according to the event simulation results.
[0129] Furthermore, the vehicle computer testing device further includes:
[0130] The environment simulation module 40 is used to obtain the interface identification data set of the vehicle service and the event identification data set of each of the vehicle services; determine the environment simulation parameters according to the interface identification data set and the event identification data set; and construct the vehicle service simulation environment based on the environment simulation parameters.
[0131] This embodiment communicates and interacts with the vehicle computer under test through a vehicle service simulation environment, obtains the response service data of the vehicle computer under test, and compares the test service data with the response service data, thereby effectively verifying the response of the vehicle computer under test to the vehicle service and realizing accurate performance testing of the vehicle computer.
[0132] The vehicle computer test device provided by the present application adopts the vehicle computer test method in the above embodiment, which can solve the technical problems of vehicle computer testing. Compared with the prior art, the beneficial effects of the vehicle computer test device provided by the present application are the same as the beneficial effects of the vehicle computer test method provided by the above embodiment, and other technical features in the vehicle computer test device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0133] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0134] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0135] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0136] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A vehicle computer testing method, characterized in that: The vehicle computer testing method is applied to a test device running a vehicle service simulation environment, the test device is in communication connection with the vehicle computer to be tested, and the vehicle computer testing method includes: Acquire the test service data of the vehicle machine to be tested; Communicate and interact with the vehicle computer to be tested based on the test service data to obtain response service data of the vehicle computer to be tested; The test service data is compared with the response service data to obtain the test result of the vehicle computer to be tested.
2. The vehicle computer testing method according to claim 1, characterized in that: The communication interaction includes an uplink channel interaction; when the communication interaction is the uplink channel interaction, the communication interaction with the vehicle machine to be tested based on the test service data to obtain the response service data of the vehicle machine to be tested includes: Generate a test message based on the test service data, wherein the test message carries service interface information and event status information; Sending the test message to the vehicle computer to be tested; Monitor the response result of the vehicle computer under test to the service interface information and the event status information, and obtain the response service data of the vehicle computer under test.
3. The vehicle computer testing method according to claim 2, characterized in that: The generating a test message based on the test service data comprises: Determine a service to be tested and a simulation event of the service to be tested based on the test service data; Simulating a simulation event of the service to be tested by using the vehicle service simulation environment; Obtain service interface information and event status information based on event simulation results; A test message is generated based on the service interface information and the event status information.
4. The vehicle computer testing method according to claim 1, characterized in that: The communication interaction further includes downlink channel interaction; when the communication interaction is the downlink channel interaction, the communication interaction with the vehicle machine to be tested based on the test service data to obtain the response service data of the vehicle machine to be tested includes: Acquire calling instruction information based on the test service data; Sending the calling instruction information to the vehicle computer to be tested; Monitoring a command response message, wherein the command response message is generated by the vehicle computer to be tested based on the calling command information; The response service data of the vehicle computer to be tested is obtained based on the command response message.
5. The vehicle computer testing method according to claim 4, characterized in that: The obtaining the response service data of the vehicle computer to be tested based on the command response message includes: Parsing the command response message to obtain message data; Determine a target invocation service and a target event of the target invocation service based on the message data; Simulating a target event of the target calling service through the vehicle service simulation environment; The response service data of the vehicle computer to be tested is obtained according to the event simulation result.
6. The vehicle computer testing method according to any one of claims 1 to 5, characterized in that: Before the method communicates and interacts with the vehicle computer to be tested based on the test service data and obtains the response service data of the vehicle computer to be tested, the method further includes: Acquire an interface identification data set of a vehicle service and an event identification data set of each of the vehicle services; Determine environmental simulation parameters according to the interface identification data set and the event identification data set; A vehicle service simulation environment is constructed based on the environment simulation parameters.
7. A vehicle computer testing device, characterized in that: The vehicle computer testing device comprises: A data acquisition module, used to acquire the test service data of the vehicle machine to be tested; A communication interaction module, configured to communicate and interact with the vehicle computer to be tested based on the test service data, and obtain response service data of the vehicle computer to be tested; The vehicle computer test module is used to compare the test service data with the response service data to obtain the test result of the vehicle computer to be tested.
8. A vehicle computer testing device, characterized in that: The vehicle-machine test device comprises: a memory, a processor, and a vehicle-machine test program stored in the memory and executable on the processor, wherein the vehicle-machine test program is configured to implement the vehicle-machine test method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores a vehicle computer test program, and when the vehicle computer test program is executed by the processor, the vehicle computer test method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The computer program product comprises a vehicle-machine test program, and when the vehicle-machine test program is executed by a processor, the steps of the vehicle-machine test method according to any one of claims 1 to 6 are implemented.
