Automobile cabin linkage test method and device, storage medium and electronic equipment
By building interconnected instrument and entertainment simulation systems in a simulation environment and designing linkage test cases, the problem of low efficiency of real-life tests is solved, and more comprehensive and efficient linkage testing is achieved.
Patent Information
- Application Number
- CN202411611676.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, the problem of low testing efficiency caused by the implementation of linkage tests between DI and IVI through real vehicles.
Through simulation software, the vehicle's instrument simulation system and entertainment simulation system are built to interconnect its data, and multiple linkage test cases are designed in advance to conduct linkage testing of the instrument simulation system and entertainment simulation system according to each use case.
A comprehensive linkage test of instruments and entertainment systems is realized in the simulation environment, covering all key functional scenarios, reducing dependence on actual vehicle testing, and improving testing efficiency.
Smart Images

Figure CN119473899A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of vehicle-mounted system, and more specifically, to a method, device, storage medium and electronic device for testing vehicle cockpit linkage. Background Art
[0002] As the automotive cockpit domain controller solution becomes more and more popular, there are more and more interactive linkage scenarios between the instrument information system (DI) and the infotainment system (IVI). In the traditional DI test method and IVI test method, DI test and IVI test are performed independently in different simulation environments. DI test cases and IVI test scenario cases are independent of each other and cannot cover various problems encountered in linkage scenarios, interaction scenarios, and real vehicle scenarios. At present, the linkage test between DI and IVI can only be performed on the real vehicle.
[0003] However, the triggering conditions of some DI and IVI linkage test scenarios are not manually controlled, and it is difficult to trigger some linkage test scenarios. Therefore, the method of performing linkage testing between DI and IVI through a real vehicle has the problem of low testing efficiency. Summary of the invention
[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for testing the linkage between DI and IVI in an automobile cockpit, so as to at least solve the problem of low testing efficiency caused by performing linkage testing between DI and IVI on a real vehicle in the related art.
[0005] According to one aspect of an embodiment of the present application, a method for automobile cockpit linkage testing is provided, comprising: constructing an instrument simulation system and an entertainment simulation system of a vehicle through simulation software to interconnect data between the instrument simulation system and the entertainment simulation system; the instrument simulation system is a virtual mapping of the instrument system in the vehicle; the entertainment simulation system is a virtual mapping of the entertainment system in the vehicle; obtaining a pre-constructed linkage test case set; the linkage test case set includes multiple linkage test cases, each of the multiple linkage test cases refers to a case in which the instrument system and the entertainment system respond to each other in a linkage manner; according to each linkage test case in the linkage test case set, the instrument simulation system and the entertainment simulation system are subjected to linkage testing to obtain linkage test information of the instrument system and the entertainment system under each linkage test case.
[0006] According to another aspect of the embodiment of the present application, a vehicle cockpit linkage test device is provided, including: a simulation module, used to construct an instrument simulation system and an entertainment simulation system of a vehicle through simulation software, so that data between the instrument simulation system and the entertainment simulation system are interconnected; the instrument simulation system is a virtual mapping of the instrument system in the vehicle; the entertainment simulation system is a virtual mapping of the entertainment system in the vehicle; a use case acquisition module, used to obtain a pre-constructed linkage test case set; the linkage test case set includes multiple linkage test cases, each linkage test case in the multiple linkage test cases refers to a case in which the instrument system and the entertainment system respond to each other in a linkage manner; a linkage test module, used to perform linkage testing on the instrument simulation system and the entertainment simulation system according to each linkage test case in the linkage test case set, and obtain linkage test information of the instrument system and the entertainment system under each linkage test case.
[0007] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned vehicle cockpit linkage test method when running.
[0008] According to another aspect of an embodiment of the present application, there is also provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the vehicle cockpit linkage test method through the computer program.
[0009] According to another aspect of the embodiments of the present application, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the steps in any of the above-mentioned embodiments of the vehicle cockpit linkage test method.
[0010] Through the embodiments of the present application, the vehicle's instrument simulation system and entertainment simulation system are constructed in a simulation environment, and the instrument simulation system and the entertainment simulation system are data interconnected, so that comprehensive testing of the instrument and entertainment systems can be achieved without a real vehicle environment, and linkage test scenarios that are difficult to reproduce on a real vehicle can be achieved in the simulation environment, thereby improving the comprehensiveness and repeatability of the test; multiple linkage test cases are pre-designed, and according to each linkage test case, the instrument simulation system and the entertainment simulation system are subjected to linkage testing, and comprehensive linkage testing between the instrument system and the entertainment system is achieved in the simulation environment, and all key functional scenarios are covered, thereby reducing dependence on real vehicle testing, improving testing efficiency, and solving the problem of low testing efficiency caused by performing linkage testing between DI and IVI on a real vehicle in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1It is a hardware structure block diagram of an optional vehicle cockpit linkage test method of an embodiment of the present application;
[0012] Figure 2 is a flow chart of an optional vehicle cockpit linkage test method according to an embodiment of the present application;
[0013] Figure 3 is a schematic diagram of an optional linkage test between an instrument simulation system and an entertainment simulation system according to an embodiment of the present application;
[0014] Figure 4 is a schematic diagram of an optional method of triggering a first trigger operation in an instrument simulation system according to an embodiment of the present application;
[0015] Figure 5 is a schematic diagram of an optional method of triggering a second trigger operation in an entertainment simulation system according to an embodiment of the present application;
[0016] Figure 6 is a schematic diagram of triggering a third trigger operation in an entertainment simulation system and triggering a fourth trigger operation in an instrument simulation system at the same time according to an embodiment of the present application;
[0017] Figure 7 is a structural block diagram of an optional vehicle cockpit linkage test device according to an embodiment of the present application;
[0018] Figure 8 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0021] According to one aspect of an embodiment of the present application, a method for testing a vehicle cockpit linkage is provided. Optionally, in this embodiment, the above-mentioned method for testing a vehicle cockpit linkage can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0022] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI, Bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, or other devices.
[0023] The traditional DI test (for example: equipment integration cabinet) responds to the signal sent by the host computer for processing, and the IVI test (for example: test cabinet) responds to the command sent by the host computer for processing. However, the correlation scenario processing of related services when the DI test and the IVI test are processed simultaneously is not designed. To solve the above problems, the embodiment of the present application adopts a simulation method to link the test instrument system and the entertainment system, and interconnects the data between the instrument simulation system and the entertainment simulation system. After the interconnection, the instrument system and the entertainment system interoperability scenario and linkage test case design are designed to solve the problem that it is difficult for the real car to trigger some linkage test scenarios. In the simulation environment, a comprehensive linkage test between the instrument system and the entertainment system is realized, and all key functional scenarios are covered, reducing the dependence on the real vehicle test and improving the test efficiency. In addition, under the premise of the same computing unit on the unified domain controller, the above test results are uniformly verified to achieve the coverage target of the interactive scenario, which can reduce manpower investment, and through the simulation method, the test can be repeated, and more test scenarios can be covered, improving input-output and fault detection rate.
[0024] The vehicle cockpit linkage test method of the embodiment of the present application can be executed by the terminal device 102, or can be executed by the server 104 and the terminal device 102 together. Taking the vehicle cockpit linkage test method of the embodiment executed by the terminal device 102 as an example, Figure 2 is a flow chart of an optional vehicle cockpit linkage test method according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:
[0025] Step S202, constructing the vehicle's instrument simulation system and entertainment simulation system through simulation software to interconnect data between the instrument simulation system and the entertainment simulation system; the instrument simulation system is a virtual mapping of the instrument system in the vehicle; the entertainment simulation system is a virtual mapping of the entertainment system in the vehicle.
[0026] Among them, the instrument simulation system is a virtualized version of the instrument system, which is used to simulate the functions and behaviors of the instrument system (DI) during the development and testing phase. The instrument simulation system can run without an actual vehicle, simulating various displays and interactions on the dashboard through software, such as the speedometer, tachometer, warning lights, etc., as well as communication and linkage with the entertainment system (IVI). The created instrument simulation system can simulate the output signals of sensors, such as speed, rotation speed, etc., and send these signals to the domain controller through a virtual CAN bus interface.
[0027] The entertainment simulation system is a virtualized version of the infotainment system, which is used to simulate the functions and behaviors of the infotainment system (such as in-vehicle navigation, audio playback, and video display) during the development and testing phases. The entertainment simulation system can run without an actual vehicle, simulating the user interface and interaction of the IVI system through software, including volume control, multimedia playback, touch screen operation, etc., and supports communication and linkage with the instrument simulation system.
[0028] Data interconnection between the instrument simulation system and the entertainment simulation system refers to the data exchange between the instrument simulation system and the entertainment simulation system through a simulated communication interface to test the linkage response and interaction logic between them. In the instrument system simulation test, a CAN signal simulator is usually used to generate simulated signals. These signals simulate the output of sensors in the actual vehicle, such as speed, rotation speed, fuel level, etc. The simulator converts these signals into CAN messages and sends them to the input end of the instrument module in the domain controller through the interface. The entertainment system test usually uses GUI automation testing tools such as Selenium and Appium. These tools can simulate user operations such as clicking and sliding to automate the user interface of the entertainment system. The test script communicates with the entertainment module in the domain controller through a computer network or directly to send control instructions. Among them, the domain controller, as a central management unit, has an inter-core communication mechanism designed in its internal architecture to support conversion between different types of signals and data formats. This allows it to receive and process simulated signals from the instrument system while responding to control instructions sent by the entertainment system through the GUI automation tool.
[0029] Optionally, Figure 3 FIG. 1 is a schematic diagram of a linkage test between an instrument simulation system and an entertainment simulation system in an embodiment. Figure 3 As shown, the terminal device uses simulation software to create a virtual environment for the instrument system, which includes defining models of various sensors, displays, and other hardware components in the instrument system, as well as communication protocols (such as TCIP / IP protocols), custom services, and basic inter-core communication capabilities between them. The terminal device builds a virtual environment for the entertainment system, including mapping the user interface of the entertainment system, including buttons, sliders, screen displays, etc., and being able to control these elements through scripts. In addition, the entertainment simulation system should be able to receive signals from the domain controller, such as volume control instructions, and simulate the user's response operations. The terminal device builds a virtual domain controller so that the domain controller can understand and process different types of signals from the instrument simulation system and the entertainment simulation system. The virtual domain controller should include simulation of the physical link for inter-core communication to ensure that the instrument simulation system and the entertainment simulation system exchange data through predefined communication channels.
[0030] In some embodiments, in a simulation environment, a monitoring mechanism may be established on the communication link between the instrument simulation system and the entertainment simulation system to monitor performance indicators such as communication link occupancy rate, and solve communication congestion problems through rule discarding.
[0031] Step S204, obtaining a pre-built linkage test case set; the linkage test case set includes multiple linkage test cases, and each linkage test case in the multiple linkage test cases refers to a case in which the instrument system and the entertainment system respond to each other in a linkage manner.
[0032] The linkage test case set refers to a set of pre-designed test cases that are designed to test the interaction and response logic between the instrument system (DI) and the entertainment system (IVI). Each linkage test case in the linkage test case set represents one or more specific interaction scenarios, which is used to verify whether the DI and IVI can communicate and collaborate with each other correctly in these scenarios.
[0033] A linkage test case is a single test case in the linkage test case set, which describes a linkage response scenario between the instrument system and the entertainment system. For example, when the instrument system detects that the vehicle enters the night mode, the entertainment system should automatically adjust its display brightness, which is an example of a linkage test case.
[0034] The interactive response between the instrument system and the entertainment system refers to the ability of the instrument system and the entertainment system to interact with each other in specific scenarios. It includes the response of one system to the operation of another system, as well as the coordination and conflict handling when the two systems are operated simultaneously.
[0035] Optionally, the terminal device develops a series of linkage test cases in advance based on the system design and functional requirements of the vehicle cockpit domain controller, covering various interactive scenarios of the instrument system and the entertainment system, and documents the designed linkage test cases, recording in detail the purpose, prerequisites, operation steps, expected results, and exception handling mechanisms when failure occurs for each case, and stores the documented linkage test cases in a database. When performing linkage testing, the terminal device extracts the pre-built linkage test case set from the database.
[0036] Step S206, according to each linkage test case in the linkage test case set, linkage test is performed on the instrument simulation system and the entertainment simulation system to obtain linkage test information of the instrument system and the entertainment system under each linkage test case.
[0037] The linkage test information refers to the data and analysis results collected when the instrument simulation system and the entertainment simulation system are linked and tested. This information includes but is not limited to the system's response to specific test cases, data synchronization status, UI display consistency, communication channel performance indicators (such as occupancy rate), and system stability evaluation.
[0038] Alternatively, if Figure 3 As shown, the terminal device is tested according to each linkage test case in the linkage test case set. For example, the instrument simulation system is controlled to perform specific operations (such as adjusting the volume) and the response of the entertainment simulation system is observed (such as the synchronous update of the volume bar). For example, the UI of the entertainment simulation system is operated (such as playing multimedia) and the behavior of the instrument simulation system is checked (such as displaying the playback status). For example, the instrument simulation system and the entertainment simulation system are triggered at the same time, such as shifting into the R gear and turning on the AVM function at the same time to check the coordination and processing capabilities of both parties. During the test, the terminal device collects test data and compares the collected actual test data with the expected results of each linkage test case. If the two are inconsistent, the detailed difference information is recorded, including the error type, occurrence scenario, operation steps, etc.; if the two are consistent, it indicates that under the current linkage test case, the linkage function between the instrument system and the entertainment system operates normally as expected by design, and the passing status is recorded and continuously monitored. Based on the recorded information, the linkage test information of the instrument system and the entertainment system under each linkage test case is generated.
[0039] In some embodiments, in the process of recording the detailed difference information between the actual test data collected and the expected results of each linkage test case, it is also possible to use automated scripts to regularly collect CPU occupancy, memory occupancy, storage space occupancy, communication pipeline occupancy, etc., to obtain detailed change information between devices and processes, thereby judging the stability of the entire machine, the consistency of multi-screen interactive interactions and other issues.
[0040] Through the above steps S202 to S206, the vehicle's instrument simulation system and entertainment simulation system are constructed in the simulation environment, and the instrument simulation system and the entertainment simulation system are data interconnected, so that comprehensive testing of the instrument and entertainment systems can be achieved without a real vehicle environment, and linkage test scenarios that are difficult to reproduce on a real vehicle can be achieved in the simulation environment, thereby improving the comprehensiveness and repeatability of the test; multiple linkage test cases are pre-designed, and according to each linkage test case, the instrument simulation system and the entertainment simulation system are subjected to linkage testing, and comprehensive linkage testing between the instrument system and the entertainment system is achieved in the simulation environment, and all key functional scenarios are covered, thereby reducing dependence on real vehicle testing, improving testing efficiency, and solving the problem of low testing efficiency caused by performing linkage testing between DI and IVI on a real vehicle in related technologies.
[0041] In an exemplary embodiment, the plurality of linkage test cases include a first type of test cases, where the first type of test cases includes a first trigger operation of the instrument system and a first linkage response of the entertainment system to the first trigger operation of the instrument system.
[0042] Among them, the first type of test case is a type of multiple linkage test cases, specifically referring to the test case that triggers the operation by the instrument system (DI) and observes how the entertainment system (IVI) responds in linkage. The first type of test case is mainly used to verify whether the operation of the DI system can correctly trigger the corresponding linkage of the IVI system, and check the data synchronization and UI display consistency between the two. For example, when the instrument system detects that the vehicle enters the night mode, the entertainment system should automatically adjust its display brightness. This is an example of a first type of test case. For example, adjusting the position light lever in the DI system and the linkage setting of the day and night mode in the IVI system are not mutually exclusive. This is an example of a first type of test case. For example, turning the steering wheel knob in the DI system to adjust the media volume, and the IVI visual interface simultaneously operates the volume bar, keeping data synchronization with each other, and achieving consistency in UI display. This is an example of a first type of test case.
[0043] The first trigger operation refers to an action or event performed in the instrument system, such as adjusting the volume knob, changing the driving mode, etc. These operations are intended to trigger a response from the IVI system.
[0044] The first linkage response indicates the expected response of the entertainment system to the first trigger operation triggered by the instrument system. For example, when the first trigger operation is to adjust the position light lever in the DI system, the first linkage response is to set the day and night mode in the IVI system; or when the first trigger operation is to turn the steering wheel knob in the DI system to adjust the media volume, the first linkage response is to adjust the volume bar of the IVI visual interface to maintain data synchronization and UI display consistency.
[0045] In some embodiments, according to each linkage test case in the linkage test case set, the instrument simulation system and the entertainment simulation system are subjected to linkage testing, and linkage test information of the instrument system and the entertainment system under each linkage test case is obtained, including:
[0046] Control the instrument simulation system to execute the first trigger operation in the first category of test cases, and obtain the first actual response of the entertainment simulation system to the first trigger operation in the first category of test cases; determine the linkage test information of the instrument system and the entertainment system under the first category of test cases based on the first actual response of the entertainment simulation system to the first trigger operation in the first category of test cases and the first linkage response in the first category of test cases.
[0047] The first actual response refers to the actual reaction of the entertainment simulation system after the first trigger operation is performed on the instrument simulation system when executing the linkage test case. It may be consistent with the expected response (ie, the first linkage response) or may be different.
[0048] Optionally, Figure 4FIG. 1 is a schematic diagram of triggering a first trigger operation in an instrument simulation system in an embodiment. Figure 4 As shown, the terminal device loads the pre-designed first type of test case, and uses any of the automated test scripts, manual signal triggering, and real vehicle signal playback methods to control the instrument simulation system to execute the first trigger operation in the first type of test case. After the instrument simulation system executes the first trigger operation, the first actual response of the entertainment simulation system is monitored and recorded, and the first actual response of the entertainment simulation system to the first trigger operation is compared with the expected first linkage response. If the two are consistent, it indicates that the linkage test has passed; if there is a difference, the specific circumstances of the difference are recorded, including the deviation between the first actual response and the expected first linkage response, system status, test environment and other information. According to the comparison result of the first actual response and the expected first linkage response, the linkage test information of the instrument system and the entertainment system when executing the first type of test case is determined.
[0049] In some embodiments, an automated test script is used to control the instrument simulation system to execute the first trigger operation in the first type of test case. The test of the instrument simulation system can adopt a CAN signal simulation sending test customized for the signal matrix to achieve the purpose of simulating the real vehicle scenario.
[0050] In some embodiments, the real vehicle signal includes a variety of information recorded by the vehicle during driving that can be used to test the linkage data of the instrument and entertainment system. The information in the real vehicle signal usually comes from various sensors, controllers and communication networks of the vehicle, such as vehicle status information, driver operation signals, internal signals of the entertainment system, network communication signals, etc. The real vehicle signal playback method is used to control the instrument simulation system to execute the first trigger operation in the first type of test case, which can accurately simulate the various signals generated by the actual vehicle during operation, and can ensure that the test environment is highly consistent with the actual situation, thereby improving the accuracy and reliability of the test. In addition, for complex test scenarios such as the first trigger operation in the first type of test case, the real vehicle signal playback method can provide more detailed and accurate signal data, thereby supporting the execution of these complex test cases, and can more comprehensively cover various test scenarios.
[0051] Through this embodiment, the first type of test case is used to check how the first trigger operation triggered by the instrument system (DI) is linked to the entertainment system (IVI), thereby realizing a linkage test scenario in which the instrument system is triggered and the entertainment system responds in a simulation environment, thereby improving test efficiency.
[0052] In an exemplary embodiment, the design method of the first type of test case includes the following steps:
[0053] 1. Control the sensor in the instrument system to perform a first trigger operation, and obtain the current sensor value of the sensor in the instrument system through the bus communication interface.
[0054] The current sensor value of the sensor refers to the value or state currently detected by the sensor obtained through a bus communication interface (such as a CAN bus). For example, the current sensor value of the sensor may be information such as volume level, vehicle speed, and driving mode.
[0055] Optionally, the terminal device uses an automated test script or manual triggering to actually operate the sensors in the instrument system (such as steering wheel knobs, gear position sensors, etc.) to perform a preset first trigger operation, such as adjusting the volume or switching the driving mode. While the sensor is performing the first trigger operation, the terminal device reads the current state or value of the sensor in real time through a bus communication interface (such as a CAN bus) to ensure that the acquired data matches the actual vehicle operating state.
[0056] 2. Monitoring a first linkage response of the graphical user interface of the entertainment system to a first triggering operation of the instrument system.
[0057] Optionally, after the DI system sensor performs the first trigger operation, the terminal device monitors in real time a first linkage response made by the IVI system, such as synchronous updating of the volume bar, changes in the driving mode display, etc.
[0058] 3. When the first linkage response of the entertainment system matches the current sensor value of the sensor in the instrument system, a first type of test case is generated according to the first trigger operation of the instrument system and the first linkage response of the entertainment system.
[0059] Optionally, the terminal device compares the first actual linkage response of the IVI system with the current sensor value of the DI system sensor to determine whether the IVI system accurately responds to the first trigger operation of the DI system. If the first linkage response of the IVI system completely matches the current sensor value of the sensor in the DI system, that is, the system performance is consistent with expectations, then based on the first trigger operation and the first linkage response, a first type of test case is generated for subsequent regression testing and linkage testing in abnormal scenarios.
[0060] For example, a Python test script is written on the terminal device to check whether the volume adjustment of the steering wheel knob and the entertainment system's graphical user interface is synchronized and whether the UI display is consistent. Automated testing tools such as Appium or Selenium can be used to simulate user operations and interface checks, and the state of the steering wheel knob can be read through the CAN bus or other interfaces. The following conditions are assumed here:
[0061] 1) The volume is adjusted by the steering wheel knob and the data is fed back through a hardware interface (such as CAN bus). The volume range is assumed to be 0-100.
[0062] 2) The volume bar displayed on the entertainment system's graphical user interface can be detected through the GUI interface (assuming that the entertainment system interface can be accessed through Selenium or other GUI automation tools).
[0063] The test process is as follows: simulate the operation of the steering wheel knob, read the state of the steering wheel volume adjustment through the interface. Simulate the volume adjustment on the entertainment system's graphical user interface, and check the volume bar display on the UI through automation tools (such as Selenium). Compare whether the two are synchronized, that is, when the steering wheel adjusts the volume, whether the entertainment system's volume bar UI changes accordingly and the value remains consistent.
[0064] The sample code structure corresponding to the test process can be:
[0065] ####Step 1: Read the steering wheel knob adjustment data
[0066] import time
[0067] #Assume that the state of adjusting the volume of the steering wheel knob is read from the CAN bus or other interface
[0068] def get_steering_wheel_volume():
[0069] Simulate reading the volume value of the steering wheel knob from the hardware
[0070] #In actual situation, data should be read through CAN bus or other hardware interface
[0071] #This is just a simulation to return a volume value
[0072] #For example, if the value read is 50, it means the volume is 50%
[0073] return 50
[0074] ####Step 2: Check the volume bar on the entertainment system UI
[0075] from selenium import webdriver
[0076] def get_entertainment_system_volume(driver):
[0077] Read the volume bar value from the entertainment system UI through Selenium
[0078] #Find the element of the volume bar, assuming that the volume bar is an input type with a range of 0 to 100
[0079] #The actual situation needs to be adapted according to the front-end structure of the entertainment system
[0080] volume_slider = driver.find_element_by_id("volume_slider") #Assume the volume bar's ID is "volume_slider"
[0081] volume_value=volume_slider.get_attribute("value")
[0082] return int(volume_value)
[0083] def set_entertainment_system_volume(driver,volume):
[0084] Use Selenium to operate the UI and adjust the value of the volume bar
[0085] volume_slider=driver.find_element_by_id("volume_slider")
[0086] volume_slider.clear()
[0087] volume_slider.send_keys(volume)
[0088] ####Step 3: Compare whether the two are synchronized
[0089] def check_volume_sync(steering_wheel_volume,entertainment_volume):
[0090] Check whether the steering wheel volume is synchronized with the entertainment system UI volume bar
[0091] if steering_wheel_volume==entertainment_volume:
[0092] print(f"Synchronization successful: steering wheel volume = {steering_wheel_volume}, entertainment system volume = {entertainment_volume}")
[0093] return True
[0094] else:
[0095] print(f"Synchronization failed: steering wheel volume = {steering_wheel_volume}, entertainment system volume = {entertainment_volume}")
[0096] return False
[0097] ####Step 4: Comprehensive test logic
[0098] def test_volume_sync():
[0099] #Start Selenium WebDriver
[0100] driver=webdriver.Ch
[0101] Through this embodiment, the sensor in the real instrument system is controlled to perform the first trigger operation, and the response of the real entertainment system to the first trigger operation is monitored, and the first type of test cases are generated based on the actual vehicle operating status. This can ensure that the triggers and responses in the generated first type of test cases are designed for actual linkage scenarios, thereby improving the authenticity and effectiveness of the first type of test cases. In addition, in a simulation environment, the first type of test cases are used to perform simulation tests on the instrument system and the entertainment system, which can improve the test accuracy.
[0102] In an exemplary embodiment, the plurality of linkage test cases include a second type of test cases, where the second type of test cases include a second trigger operation of the entertainment system and a second linkage response of the instrument system to the second trigger operation of the entertainment system.
[0103] Among them, the second type of test cases is a type of multiple linkage test cases, specifically referring to test cases that trigger operations by the entertainment system (IVI) and observe how the instrument system (DI) responds in linkage. In contrast to the first type of test cases, the second type of test cases focuses on the impact of IVI on DI, such as the impact of music playback or setting cleanup on the dashboard display and function.
[0104] The second trigger operation refers to a trigger behavior performed in the infotainment system, such as playing multimedia, adjusting volume, clearing user data, or restoring factory settings.
[0105] The second linkage response refers to the expected reaction of the instrument system to the second trigger operation of the infotainment system. For example, when the second trigger operation is the IVI system playing music, the second linkage response is the DI system displaying the playing status; or when the second trigger operation is adjusting the volume, the second linkage response is that the adjusted volume matches the set volume; or when the second trigger operation is the IVI system clearing user data or restoring factory settings, the second linkage response is the normal operating gear of the DI system, which does not affect driving behavior.
[0106] In some embodiments, according to each linkage test case in the linkage test case set, the instrument simulation system and the entertainment simulation system are subjected to linkage testing, and linkage test information of the instrument system and the entertainment system under each linkage test case is obtained, including:
[0107] Control the entertainment simulation system to execute the second trigger operation in the second category of test cases, and obtain the second actual response of the instrument simulation system to the second trigger operation in the second category of test cases; determine the linkage test information of the instrument system and the entertainment system under the second category of test cases based on the second actual response of the instrument simulation system to the second trigger operation in the second category of test cases and the second linkage response in the second category of test cases.
[0108] The second actual response refers to the actual reaction of the instrument simulation system to the entertainment simulation system after the first trigger operation is performed when executing the linkage test case. It may be consistent with the expected response (ie, the second linkage response) or may be different.
[0109] Optionally, Figure 5 FIG. 1 is a schematic diagram of triggering a second trigger operation in an entertainment simulation system in one embodiment. Figure 5 As shown, the terminal device loads the pre-designed second type of test case, uses an automated test script or manual signal trigger, controls the entertainment simulation system to execute the second trigger operation in the second type of test case, and after the entertainment simulation system executes the second trigger operation, monitors and records the second actual response of the instrument simulation system, and compares the second actual response of the instrument simulation system to the second trigger operation with the expected second linkage response. If the two are consistent, it indicates that the linkage test has passed; if there is a difference, the specific circumstances of the difference are recorded, including the deviation between the second actual response and the expected second linkage response, system status, test environment and other information. According to the comparison result of the first actual response and the expected first linkage response, the linkage test information of the instrument system and the entertainment system when executing the second type of test case is determined.
[0110] In some embodiments, an automated test script is used to control the entertainment simulation system to execute the second trigger operation in the second type of test case. The test of the entertainment simulation system can adopt a monkey test with customized parameters to achieve the purpose of simulating a real car scene.
[0111] Through this embodiment, the second type of test case is used to check how the second trigger operation triggered by the entertainment system (IVI) is linked to the instrument system (DI), thereby realizing a linkage test scenario in which the entertainment system is triggered and the instrument system responds in a simulation environment, thereby improving test efficiency.
[0112] In an exemplary embodiment, the design method of the second type of test case includes the following steps:
[0113] 1. Triggering a second trigger operation of the graphical user interface in the entertainment system, and monitoring a second linkage response of the instrument system to the second trigger operation of the entertainment system.
[0114] Optionally, the terminal device uses an automated test script or manual triggering to actually operate the graphical user interface in the entertainment system to perform a preset second trigger operation, such as playing multimedia, adjusting volume, clearing user data, or restoring factory settings. While performing the second trigger operation on the graphical user interface, the terminal device monitors the second linkage response of the instrument system to the second trigger operation of the entertainment system.
[0115] 2. When the second linkage response of the instrument system matches the second trigger operation of the entertainment system, a second type of test case is generated according to the second trigger operation of the entertainment system and the second linkage response of the entertainment system.
[0116] Optionally, the terminal device compares the second linkage response of the DI system with the second trigger operation of the IVI system sensor to determine whether the DI system accurately responds to the second trigger operation of the IVI system. If the second linkage response of the DI system completely matches the trigger instruction of the IVI system, that is, the system performance is consistent with expectations, then based on the second trigger operation and the second linkage response, a second type of test case is generated for subsequent regression testing and linkage testing in abnormal scenarios.
[0117] Through this embodiment, the sensor in the real entertainment system is controlled to perform the first trigger operation, and the response of the real instrument system to the second trigger operation is monitored, and the second type of test cases are generated based on the actual vehicle operating status. This can ensure that the triggers and responses in the generated second type of test cases are designed for actual linkage scenarios, thereby improving the authenticity and effectiveness of the second type of test cases. In addition, in a simulation environment, the second type of test cases are used to perform simulation tests on the instrument system and the entertainment system, which can improve the test accuracy.
[0118] In an exemplary embodiment, multiple linkage test cases include a third category of test cases, which include a third trigger operation of the entertainment system, a fourth trigger operation of the instrument system, and a corresponding processing mechanism when the entertainment system and the instrument system are triggered at the same time, and the third trigger operation and the fourth trigger operation in the third category of test cases are triggered simultaneously.
[0119] Among them, the third type of test cases is a type of multiple linkage test cases, specifically referring to test cases where the instrument system (DI) and the entertainment system (IVI) trigger operations at the same time, and observe how the other party or the whole vehicle handles interactions and conflicts. The third type of test cases not only tests the direct communication between the instrument system (DI) and the entertainment system (IVI), but also considers how the two work together in the whole vehicle or a wider system environment to ensure functional consistency and stability.
[0120] The third trigger operation refers to an operation performed in the entertainment system, such as adjusting the volume, playing a video, setting system parameters, etc. These operations may affect the function or display of the instrument system under certain conditions.
[0121] The fourth trigger operation refers to an operation performed in the instrument system, such as switching driving modes, changing the instrument panel display, etc. These operations may also interact or conflict with the entertainment system in certain scenarios.
[0122] The processing mechanism refers to the preset logical processing rules to ensure system stability and functional consistency when the DI and IVI systems trigger operations at the same time. The processing mechanism can include conflict avoidance, priority setting, synchronization strategy, etc. to ensure the correct interaction between the two systems.
[0123] The third actual response refers to the actual reaction and processing result of the entertainment system to the third trigger operation in the third type of test case.
[0124] The fourth actual response refers to the actual reaction and processing result of the instrument system to the fourth trigger operation in the third type of test case.
[0125] In some embodiments, according to each linkage test case in the linkage test case set, the instrument simulation system and the entertainment simulation system are jointly tested to obtain linkage test information of the instrument system and the entertainment system under each linkage test case, including:
[0126] 1. Control the entertainment simulation system to execute the third trigger operation in the third type of test case, and simultaneously control the instrument simulation system to execute the fourth trigger operation in the third type of test case.
[0127] Optionally, Figure 6 FIG. 1 is a schematic diagram of triggering a third trigger operation in an entertainment simulation system and triggering a fourth trigger operation in an instrument simulation system at the same time in an embodiment. Figure 6 As shown, the terminal device uses automated test scripts, manual signal triggering, etc. to trigger the IVI system to perform the third trigger operation in the third test case, and uses any of automated test scripts, manual signal triggering, and real vehicle signal playback to trigger the DI to perform the fourth trigger operation in the third test case. For example, play a video on the IVI system and adjust the volume, and switch the driving mode or change the dashboard display in the DI system.
[0128] 2. Obtain a third actual response of the instrument simulation system to the third trigger operation in the third type of test case, and a fourth actual response of the entertainment simulation system to the fourth trigger operation in the third type of test case.
[0129] Optionally, the terminal device detects and records a third actual response of the DI system to the third trigger operation after the IVI system simultaneously triggers the third trigger operation, and detects and records a fourth actual response of the IVI system to the fourth trigger operation after the DI system simultaneously triggers the fourth trigger operation. The third actual response and the fourth actual response include UI updates, system state changes, communication traffic, etc., to evaluate the execution effect of the processing mechanism.
[0130] 3. Determine the linkage test information of the instrument system and the entertainment system under the third category of test cases based on the processing mechanism in the third category of test cases, the third actual response of the instrument simulation system to the third trigger operation in the third category of test cases, and the fourth actual response of the entertainment simulation system to the fourth trigger operation in the third category of test cases.
[0131] Optionally, the terminal device compares the third actual response and the fourth actual response with the processing mechanism in the third type of test case to check whether there is a conflict, data synchronization error or priority processing problem in the third actual response and the fourth actual response. For example, confirm whether the IVI system correctly adjusts the volume to adapt to the change of driving mode when the operation is triggered at the same time, and whether the DI system can update its display without being affected. Based on the comparison results of the processing mechanism, the terminal device determines the linkage test information under the third type of test case, including the consistency of system functions, stability test results, data synchronization, etc.
[0132] For example, when switching to R gear (the fourth trigger operation), the instrument panel needs to display the correct gear information. At the same time, if the driver adjusts the AVM (panoramic image) parameters on the IVI system, such as turning the transparent model function on and off (the third trigger operation), the system needs to ensure that these operations do not cause confusion in the gear display.
[0133] Through this embodiment, the third type of test case is used to check how the third trigger operation triggered by the instrument system (DI) and the entertainment system (IVI) respond to the linkage of the whole vehicle or the other party when processing the fourth trigger operation at the same time, thereby realizing a linkage test scenario in which the entertainment system and the instrument system operate simultaneously in a simulation environment, thereby improving test efficiency.
[0134] In an exemplary embodiment, the design method of the third type of test case includes the following steps:
[0135] 1. Control the sensor in the instrument system to execute the third trigger operation, and simultaneously trigger the fourth trigger operation of the graphical user interface in the entertainment system, and monitor the corresponding processing mechanism when the entertainment system and the instrument system are triggered simultaneously.
[0136] Optionally, under actual vehicle operating conditions, use an automated testing tool or manually trigger the fourth trigger operation in the IVI system (such as playing a video), and perform the third trigger operation in the DI system (such as adjusting the driving mode). Use the monitoring equipment and software of the actual vehicle to record the actual performance of the IVI and DI systems when executing the third trigger operation and the fourth trigger operation, including UI updates, system status changes, communication traffic and other information.
[0137] 2. When the vehicle is operating normally, a third type of test case is generated based on the third trigger operation of the instrument system, the fourth trigger operation of the entertainment system, and the corresponding processing mechanism when the entertainment system and the instrument system are triggered at the same time.
[0138] Optionally, based on the actual reaction in the real vehicle environment, analyze whether the processing mechanism is correctly executed, whether the system performance is affected, and whether the multi-screen interaction is consistent. If the reaction of the third trigger operation and the fourth trigger operation in the real vehicle is consistent with the preset processing mechanism, and the vehicle can maintain normal operation when executing the third trigger operation and the fourth trigger operation, then a third type of test case can be generated based on the third trigger operation of the instrument system, the fourth trigger operation of the entertainment system, and the corresponding processing mechanism when the entertainment system and the instrument system are triggered at the same time.
[0139] Through this embodiment, the sensor in the instrument system is controlled to perform the third trigger operation, and simultaneously trigger the fourth trigger operation of the graphical user interface in the entertainment system, monitor the corresponding processing mechanism when the entertainment system and the instrument system are triggered at the same time, and generate the third type of test cases based on the actual vehicle operating status. It can be ensured that the triggers and responses in the generated third type of test cases are designed for actual linkage scenarios, thereby improving the authenticity and effectiveness of the third type of test cases, and in a simulation environment, the third type of test cases are used to perform simulation tests on the instrument system and entertainment system to improve the test accuracy.
[0140] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware server, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially 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 ROM (Read-Only Memory) / RAM (Random Access Memory), a 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, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0142] According to another aspect of the embodiments of the present application, a vehicle cockpit linkage test device is also provided, which is used to implement the vehicle cockpit linkage test method provided in the above-mentioned embodiments, and will not be repeated hereafter. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0143] Figure 7 is a structural block diagram of an optional vehicle cockpit linkage test device according to an embodiment of the present application, such as Figure 7 As shown, the device may include:
[0144] The simulation module 701 is used to construct the instrument simulation system and entertainment simulation system of the vehicle through simulation software, so as to interconnect the data between the instrument simulation system and the entertainment simulation system; the instrument simulation system is a virtual mapping of the instrument system in the vehicle; the entertainment simulation system is a virtual mapping of the entertainment system in the vehicle;
[0145] The use case acquisition module 702 is used to acquire a pre-built linkage test case set; the linkage test case set includes multiple linkage test cases, and each linkage test case in the multiple linkage test cases refers to a case in which the instrument system and the entertainment system respond to each other in a linkage manner;
[0146] The linkage test module 703 is used to perform linkage test on the instrument simulation system and the entertainment simulation system according to each linkage test case in the linkage test case set, and obtain linkage test information of the instrument system and the entertainment system under each linkage test case.
[0147] In an exemplary embodiment, multiple linkage test cases include a first category of test cases, the first category of test cases including a first trigger operation of the instrument system and a first linkage response of the entertainment system to the first trigger operation of the instrument system; the linkage test module 703 is also used to control the instrument simulation system to execute the first trigger operation in the first category of test cases, and obtain the first actual response of the entertainment simulation system to the first trigger operation in the first category of test cases; determine the linkage test information of the instrument system and the entertainment system under the first category of test cases based on the first actual response of the entertainment simulation system to the first trigger operation in the first category of test cases and the first linkage response in the first category of test cases.
[0148] In an exemplary embodiment, the use case acquisition module 702 is also used to control the sensor in the instrument system to perform a first trigger operation, obtain the current sensor value of the sensor in the instrument system through the bus communication interface; monitor the first linkage response of the graphical user interface of the entertainment system to the first trigger operation of the instrument system; and generate a first type of test case according to the first trigger operation of the instrument system and the first linkage response of the entertainment system when the first linkage response of the entertainment system matches the current sensor value of the sensor in the instrument system.
[0149] In an exemplary embodiment, multiple linkage test cases include a second category of test cases, and the second category of test cases includes a second trigger operation of the entertainment system and a second linkage response of the instrument system to the second trigger operation of the entertainment system; the linkage test module 703 is also used to control the entertainment simulation system to execute the second trigger operation in the second category of test cases, and obtain the second actual response of the instrument simulation system to the second trigger operation in the second category of test cases; determine the linkage test information of the instrument system and the entertainment system under the second category of test cases based on the second actual response of the instrument simulation system to the second trigger operation in the second category of test cases and the second linkage response in the second category of test cases.
[0150] In an exemplary embodiment, the use case acquisition module 702 is also used to trigger a second trigger operation of the graphical user interface in the entertainment system, and monitor the second linkage response of the instrument system to the second trigger operation of the entertainment system; when the second linkage response of the instrument system matches the second trigger operation of the entertainment system, a second type of test case is generated according to the second trigger operation of the entertainment system and the second linkage response of the entertainment system.
[0151] In an exemplary embodiment, multiple linkage test cases include a third category of test cases, and the third category of test cases includes a third trigger operation of the entertainment system, a fourth trigger operation of the instrument system, and a corresponding processing mechanism when the entertainment system and the instrument system are triggered at the same time, and the third trigger operation and the fourth trigger operation in the third category of test cases are triggered simultaneously; the linkage test module 703 is also used to control the entertainment simulation system to execute the third trigger operation in the third category of test cases, and simultaneously control the instrument simulation system to execute the fourth trigger operation in the third category of test cases; obtain the third actual response of the instrument simulation system to the third trigger operation in the third category of test cases, and the fourth actual response of the entertainment simulation system to the fourth trigger operation in the third category of test cases; determine the linkage test information of the instrument system and the entertainment system under the third category of test cases according to the processing mechanism in the third category of test cases, the third actual response of the instrument simulation system to the third trigger operation in the third category of test cases, and the fourth actual response of the entertainment simulation system to the fourth trigger operation in the third category of test cases.
[0152] In an exemplary embodiment, the use case acquisition module 702 is also used to control the sensor in the instrument system to perform a third trigger operation, and simultaneously trigger the fourth trigger operation of the graphical user interface in the entertainment system, and monitor the corresponding processing mechanism when the entertainment system and the instrument system are triggered at the same time; when the vehicle is operating normally, a third type of test case is generated according to the third trigger operation of the instrument system, the fourth trigger operation of the entertainment system, and the corresponding processing mechanism when the entertainment system and the instrument system are triggered at the same time.
[0153] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.
[0154] According to another aspect of the embodiment of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the above-mentioned vehicle cockpit linkage test methods in the embodiment of the present application.
[0155] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.
[0156] Optionally, in this embodiment, the storage medium is configured to store a program code for executing any of the above-mentioned vehicle cockpit linkage testing methods.
[0157] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.
[0158] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.
[0159] According to another aspect of an embodiment of the present application, there is also provided an electronic device for implementing the above-mentioned automobile cockpit linkage test method. The electronic device may be a smart device, a server, a terminal, or a combination thereof.
[0160] Figure 8 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Figure 8 As shown, it includes a processor 802, a communication interface 804, a memory 806 and a communication bus 808, wherein the processor 802, the communication interface 804 and the memory 806 communicate with each other through the communication bus 808, wherein,
[0161] Memory 806, used for storing computer programs;
[0162] The processor 802 is used to implement the program code of any of the above-mentioned vehicle cockpit linkage testing methods when executing the computer program stored in the memory 806.
[0163] Optionally, the communication bus may be a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The communication interface is used for communication between the above electronic device and other devices.
[0164] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0165] As an example, the memory 806 may include but is not limited to the modules in the vehicle cockpit linkage test device. In addition, it may also include but is not limited to other module units in the vehicle cockpit linkage test device, which will not be repeated in this example.
[0166] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0167] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0168] It can be understood by those skilled in the art that Figure 8 The structure shown is for illustration only. The device for implementing the above-mentioned vehicle cockpit linkage test method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 8 The structure of the electronic device is not limited. Figure 8 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 8 Different configurations shown.
[0169] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0170] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0171] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.
[0172] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0173] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0174] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0175] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0176] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0177] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
[0178] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist physically separately, or at least two units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0179] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A vehicle cockpit linkage test method, characterized in that: include: Constructing an instrument simulation system and an entertainment simulation system of the vehicle through simulation software, so that data between the instrument simulation system and the entertainment simulation system are interconnected; The instrument simulation system is a virtual mapping of the instrument system in the vehicle; The entertainment simulation system is a virtual mapping of the entertainment system in the vehicle; Obtain a pre-built linkage test case set; the linkage test case set includes multiple linkage test cases, each linkage test case in the multiple linkage test cases refers to a case in which the instrument system and the entertainment system respond to each other in a linkage manner; According to each linkage test case in the linkage test case set, linkage test is performed on the instrument simulation system and the entertainment simulation system to obtain linkage test information of the instrument system and the entertainment system under each linkage test case.
2. The method according to claim 1, characterized in that The plurality of linkage test cases include a first type of test cases, the first type of test cases including a first trigger operation of the instrument system and a first linkage response of the entertainment system to the first trigger operation of the instrument system; The step of performing linkage testing on the instrument simulation system and the entertainment simulation system according to each linkage test case in the linkage test case set to obtain linkage test information of the instrument system and the entertainment system under each linkage test case includes: Controlling the instrument simulation system to execute a first trigger operation in the first type of test case, and obtaining a first actual response of the entertainment simulation system to the first trigger operation in the first type of test case; According to the first actual response of the entertainment simulation system to the first trigger operation in the first type of test case and the first linkage response in the first type of test case, linkage test information of the instrument system and the entertainment system under the first type of test case is determined.
3. The method according to claim 2, characterized in that The method further comprises: Controlling the sensor in the instrument system to perform a first trigger operation, and obtaining a current sensor value of the sensor in the instrument system through a bus communication interface; Monitoring a first linkage response of the graphical user interface of the entertainment system to a first triggering operation of the instrument system; When the first linkage response of the entertainment system matches the current sensor value of the sensor in the instrument system, a first-type test case is generated according to the first trigger operation of the instrument system and the first linkage response of the entertainment system.
4. The method according to claim 1, characterized in that: The plurality of linkage test cases include a second type of test cases, the second type of test cases including a second trigger operation of the entertainment system and a second linkage response of the instrument system to the second trigger operation of the entertainment system; The step of performing linkage testing on the instrument simulation system and the entertainment simulation system according to each linkage test case in the linkage test case set to obtain linkage test information of the instrument system and the entertainment system under each linkage test case includes: Controlling the entertainment simulation system to execute a second trigger operation in the second type of test case, and obtaining a second actual response of the instrument simulation system to the second trigger operation in the second type of test case; The linkage test information of the instrument system and the entertainment system under the second type of test case is determined based on the second actual response of the instrument simulation system to the second trigger operation in the second type of test case and the second linkage response in the second type of test case.
5. The method according to claim 4, characterized in that The method further comprises: triggering a second triggering operation of the graphical user interface in the entertainment system, and monitoring a second linkage response of the instrument system to the second triggering operation of the entertainment system; When the second linkage response of the instrument system matches the second trigger operation of the entertainment system, a second-type test case is generated according to the second trigger operation of the entertainment system and the second linkage response of the entertainment system.
6. The method according to any one of claims 1 to 5, characterized in that The multiple linkage test cases include a third category of test cases, the third category of test cases including a third trigger operation of the entertainment system, a fourth trigger operation of the instrument system, and a corresponding processing mechanism when the entertainment system and the instrument system are triggered simultaneously, and the third trigger operation and the fourth trigger operation in the third category of test cases are triggered simultaneously; The step of jointly testing the instrument simulation system and the entertainment simulation system according to each linkage test case in the linkage test case set to obtain linkage test information of the instrument system and the entertainment system under each linkage test case includes: Controlling the entertainment simulation system to execute the third trigger operation in the third type of test case, and simultaneously controlling the instrument simulation system to execute the fourth trigger operation in the third type of test case; Obtaining a third actual response of the instrument simulation system to a third trigger operation in the third type of test case, and a fourth actual response of the entertainment simulation system to a fourth trigger operation in the third type of test case; Based on the processing mechanism in the third category of test cases, the third actual response of the instrument simulation system to the third trigger operation in the third category of test cases, and the fourth actual response of the entertainment simulation system to the fourth trigger operation in the third category of test cases, the linkage test information of the instrument system and the entertainment system under the third category of test cases is determined.
7. The method according to claim 6, characterized in that The method further comprises: Controlling the sensor in the instrument system to perform a third trigger operation and simultaneously triggering a fourth trigger operation of the graphical user interface in the entertainment system, and monitoring a corresponding processing mechanism when the entertainment system and the instrument system are triggered simultaneously; When the vehicle operates normally, a test case of the third type is generated according to the third trigger operation of the instrument system, the fourth trigger operation of the entertainment system, and the corresponding processing mechanism when the entertainment system and the instrument system are triggered at the same time.
8. A vehicle cockpit linkage test device, characterized in that: include: A simulation module, used to construct a vehicle instrument simulation system and an entertainment simulation system through simulation software, so that data between the instrument simulation system and the entertainment simulation system are interconnected; The instrument simulation system is a virtual mapping of the instrument system in the vehicle; The entertainment simulation system is a virtual mapping of the entertainment system in the vehicle; A case acquisition module is used to acquire a pre-built linkage test case set; the linkage test case set includes multiple linkage test cases, each of which refers to a case in which the instrument system and the entertainment system respond to each other in a linkage manner; The linkage test module is used to perform linkage test on the instrument simulation system and the entertainment simulation system according to each linkage test case in the linkage test case set, and obtain linkage test information of the instrument system and the entertainment system under each linkage test case.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of any one of the methods of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.