Vehicle-mounted online service test system

By designing an on-board online service testing system, the problems of low efficiency of manual MOS testing, inability to guarantee quality and difficult to achieve in special scenarios are solved, and all-weather testing, real-time log recording and efficient analysis are realized, improving the testing efficiency and quality.

CN119645868APending Publication Date: 2025-03-18SAIC VOLKSWAGEN AUTOMOTIVE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411760716.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The existing manual MOS test efficiency is low, the test quality is not guaranteed, the special test scenarios are difficult to achieve, the log recording cannot be recorded in time due to occasional problems, and the reproduction rate is low.

Method used

A vehicle-mounted online service testing system is designed, including a test command input module, a vehicle status simulation module, a vehicle-machine control simulation module, a log recording module and a test report generation module. It can perform test tasks around the clock, simulate vehicle status and vehicle-machine operation, record logs in real time and generate test reports.

Benefits of technology

It improves testing efficiency, ensures test quality, realizes simulation of special test scenarios, increases the number of recurrences of occasional problems, and records logs in time, reducing the difficulty of analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0005167579950000011
    Figure HDA0005167579950000011
  • Figure HDA0005167579950000021
    Figure HDA0005167579950000021
  • Figure HDA0005167579950000031
    Figure HDA0005167579950000031
Patent Text Reader

Abstract

The invention provides a vehicle-mounted online service test system. The system comprises a test instruction input module, a vehicle state simulation module, a vehicle machine control simulation module, a log recording module and a test report generation module. The test instruction input module is used for inputting a test task. And the vehicle state simulation module is respectively connected with the test instruction input module and the test vehicle and is used for simulating and reading a vehicle state signal according to the test task. And the vehicle machine control simulation module is respectively connected with the test instruction input module and the test vehicle, and is used for simulating operation on a vehicle machine screen of the test vehicle and / or collecting vehicle machine display information according to the test task. The log recording module is connected with the test vehicle and records and stores a test log in real time. And the test report generation module generates a test report based on the test log, the collected vehicle state signal and / or the vehicle machine display information and an expected result. The test task can be executed in an all-weather manner, the test efficiency is improved, and the coverage degree of the test case is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle testing, and in particular to a vehicle-mounted online service testing system. Background Art

[0002] As car owners' requirements for the quality of services such as smart cockpits, remote vehicle control, and OTA are increasing, major OEMs are frequently iterating their in-vehicle online services (MOS) functions, and as a result, are placing higher and higher requirements on the testing quality and efficiency of MOS functions.

[0003] At present, MOS functions are mainly tested manually. During the test, it is necessary to first ensure that the vehicle / test bench is in good condition and the controller hardware and software versions meet the test requirements. Then, the relevant logging tools are connected to the test vehicle / test bench. Subsequently, the test tasks are executed according to the test cases and the test results are recorded. If a functional problem is found during the execution process, the recorded logs need to be exported for analysis.

[0004] However, in the actual manual execution process, there are many operators on the same vehicle / bench, and the status of the vehicle / bench cannot be guaranteed to meet the MOS test requirements. Diagnosis and debugging are required before testing; in addition, manual testing can only be performed during working hours. The above results in low efficiency of manual testing. In addition, during the MOS test, the logs of the vehicle module, communication module, Ethernet, HMI, etc. are large and cannot be recorded in real time, resulting in the inability to obtain logs of some occasional problems in a timely manner; manual testing is subject to the combined influence of project progress and test efficiency, and it is impossible to reproduce occasional problems with high intensity, resulting in a low reproduction rate of occasional problems and difficult analysis; during the manual testing process, some special test scenarios are difficult to achieve, such as reaching the maximum speed, the vehicle is parked in a special position, and the vehicle collides, etc.; in summary, the quality of manual testing cannot be guaranteed. Summary of the invention

[0005] The purpose of the present invention is to provide an in-vehicle online service testing system to solve the pain points of current manual MOS testing, such as low test efficiency, inability to guarantee test quality, inability to implement special test scenarios, inability to record logs of occasional problems in a timely manner, and low recurrence rate. The system can perform test tasks around the clock, improve test efficiency, and improve the coverage of test cases.

[0006] The present invention proposes a vehicle-mounted online service testing system, comprising:

[0007] Test instruction input module, used to input test tasks;

[0008] The vehicle state simulation module is connected to the test instruction input module and the test vehicle respectively, and is used to simulate and read the vehicle state signal according to the test task;

[0009] The vehicle control simulation module is connected to the test command input module and the test vehicle, respectively, and is used to simulate the operation of the vehicle screen of the test vehicle and / or collect the vehicle display information according to the test task;

[0010] Log recording module, connected to the test vehicle, real-time recording and saving test logs;

[0011] The test report generation module is connected to the log recording module, the vehicle status simulation module and the vehicle computer control simulation module, and generates a test report based on the test log, the collected vehicle status signal and / or the vehicle computer display information and the expected results.

[0012] In one embodiment, the vehicle control simulation module is an LVDS acquisition device, one end of which is connected to the vehicle screen of the test vehicle, and the other end is connected to the vehicle module of the test vehicle via a network cable. The operation of the vehicle screen is simulated according to the test task. The operation of the vehicle screen includes text clicking, text recognition, screenshot, image recognition, image clicking, sliding the screen, returning to the main page, and restarting the vehicle.

[0013] In one embodiment, the test instruction input module is also connected to the cloud backend of the test vehicle, driven by the browser, calls the Selenium library, and configures the test task in the cloud backend of the test vehicle.

[0014] In one embodiment, the vehicle state simulation module includes a NI industrial computer and a Delta power supply;

[0015] The NI industrial computer is connected to the test command input module, the ECU of the test vehicle, and the vehicle wiring harness, and simulates the vehicle status signal according to the test task and transmits it to the ECU, and reads the vehicle status signal of the vehicle wiring harness, wherein the vehicle status signal includes the vehicle power on and off status signal, the door switch signal, the window lifting signal, the front and rear cover switch signal, the vehicle speed signal, the light signal, and the communication signal;

[0016] The Delta power supply is connected to the NI industrial computer and the test vehicle respectively, and controls the power on and off of the test vehicle according to the test task.

[0017] In one embodiment, the vehicle state simulation module further includes a three-way switch and a switching control unit;

[0018] The three-way switch includes a first end, a second end and a third end, the first end is connected to the ECU of the test vehicle, the second end is connected to the whole vehicle wiring harness of the test vehicle, and the third end is connected to the NI industrial computer;

[0019] The switching control unit is used to control the switching of the three-way switch according to the test task;

[0020] The first end and the second end of the three-way switch are connected, and the ECU of the test vehicle receives the actual vehicle status signal;

[0021] The first end and the third end of the three-way switch are connected, and the ECU of the test vehicle receives the simulated vehicle status signal from the NI industrial computer.

[0022] In one embodiment, the test instruction input module is also connected to the test mobile terminal, and the NI industrial computer is also used to simulate the remote vehicle control signal, and the remote vehicle control signal includes the switch of the remote vehicle control service and the remote vehicle status detection;

[0023] The test report generation module is also connected to the test mobile terminal and generates a test report according to the execution result of the test mobile terminal.

[0024] In one embodiment, the vehicle-mounted online service test system further includes a GPS simulator, which is connected to the test instruction input module and the test vehicle, respectively, and is used to simulate vehicle position information according to the test task.

[0025] In one embodiment, the vehicle-mounted online service test system further includes a vehicle control simulation module, which is respectively connected to the test instruction input module and the test vehicle, and is used to simulate vehicle operation signals according to the test task.

[0026] In one embodiment, the vehicle control simulation module is a Vector industrial computer, which is connected to a test instruction input module via a USB cable or a network cable. The vehicle operation signal includes a gear signal, a steering wheel signal, and a collision signal.

[0027] In one embodiment, the vehicle-mounted online service testing system further includes an audio output module and an audio acquisition module;

[0028] The audio output module is connected to the test command input module via a USB cable, and is used to output the voice content to the vehicle computer of the test vehicle according to the test task;

[0029] The audio acquisition module is connected to the test command input module and the test report generation module via a USB cable, and is used to collect the output sound of the test vehicle's head unit and return the speech recognition result to the test report generation module.

[0030] Compared with the prior art, the in-vehicle online service testing system of the present invention has the following beneficial effects:

[0031] 1) The present invention can ensure that the state of the test vehicle before and after the test remains consistent through pre- and post-processing during the test task execution, meet the test requirements, and save debugging time before manual testing.

[0032] 2) The present invention does not need to connect to the device for recording logs before each test, and can perform test tasks around the clock, thereby improving test efficiency.

[0033] 3) The present invention can increase the number of recurrences of occasional problems, and can record logs for occasional problems in a timely manner, thereby avoiding the situation where logs of occasional problems cannot be recorded, thereby reducing the difficulty of analyzing occasional problems.

[0034] 4) The present invention can create extreme test scenarios and simulate special test scenarios to improve the coverage of test cases. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of the structure of a vehicle-mounted online service testing system according to an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of the structure of a vehicle state simulation module in a vehicle-mounted online service test system according to an embodiment of the present invention;

[0037] Figure 3 The present invention is a flowchart of executing a test task using a vehicle-mounted online service test system according to an embodiment of the present invention.

[0038] Reference numerals

[0039] 1. Test instruction input module, 2. Log recording module, 3. Test report generation module, 4. GPS simulator, 5. Vehicle status simulation module, 51. NI industrial computer, 52. Delta power supply, 53. Three-way switch, 531. First end, 532. Second end, 533. Third end, 54. Switching control unit, 6. Vehicle control simulation module, 7. Vehicle control simulation module, 8. Audio acquisition module, 9. Audio output module. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments of the specification. It should be noted that many specific details are set forth in the following description to facilitate a full understanding of the present invention, but the present invention can also be implemented in other ways different from those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.

[0041] Secondly, "one embodiment" or "an embodiment" in this application refers to a specific feature, structure or characteristic that can be included in at least one implementation of the present invention. The "in one embodiment" and "an embodiment" that appear in different places in this specification do not all refer to the same embodiment, nor are they separate or selective embodiments that are mutually exclusive with other embodiments. The terms "including" and "comprising" indicate the presence of the claimed features, but do not exclude the presence of one or more other features. The term "and / or" used in this application includes any and all combinations of one or more of the relevant listed items.

[0042] The present invention proposes a vehicle-mounted online service testing system, see Figure 1 , including a test instruction input module 1, a vehicle state simulation module 5, a vehicle control simulation module 6, a log recording module 2 and a test report generation module 3. The test instruction input module 1 is used to input the test task. The vehicle state simulation module 5 is respectively connected to the test instruction input module 1 and the test vehicle, and is used to simulate and read the vehicle state signal according to the test task. The vehicle control simulation module 6 is respectively connected to the test instruction input module 1 and the test vehicle, and is used to simulate the operation of the vehicle screen of the test vehicle and / or collect the vehicle display information according to the test task. The log recording module 2 is connected to the test vehicle, and is used to record and save the test log in real time. The test report generation module 3 is connected to the log recording module 2, the vehicle state simulation module 5 and the vehicle control simulation module 6, and generates a test report based on the test log, the collected vehicle state signal and / or the vehicle display information and the expected results.

[0043] Among them, the test task refers to the content of testing one or some specific functions of the vehicle MOS, including the test environment (preconditions), test steps, expected results, etc.

[0044] The test instruction input module 1, log recording module 2, and test report generation module 3 of an embodiment of the present invention are all integrated in the host computer through the software system. The test instruction input module 1 controls the vehicle state simulation module 5, the vehicle control simulation module 6, etc. through the software tools RED and Python language provided by RobotframeWork, writes keywords, forms a keyword library, and writes scripts of automated test cases according to the keywords to form test tasks for executing tests and finally generating test reports. Keywords are developed and packaged for the purpose of implementing test cases with different functions. RED can run single or multiple test cases, and the selected test cases can be run repeatedly once or multiple times. The log recording module 2 connects the test vehicle through the VAS head, reads the whole vehicle document through the ODIS software, extracts the whole vehicle document data and the execution log of the test task, generates the corresponding html test log file, and realizes the trace recording and preservation of the relevant vehicle module, communication module, vehicle screen (HMI), and bus system. Specifically, the vehicle module and communication module are connected to the host computer through a 100M network cable, and python opens the serial2.exe tool through path search to record the trace of the vehicle module and communication module. The HMIMonitor.bat tool is opened through the python command to realize the automatic recording of the HMI log. The HMI log needs to be saved through the python pyautogui library to identify the save icon on the page, and then confirm the coordinate value of the save icon through the openCV library, and then click the obtained coordinate value to achieve it. The bus trace automatically opens the CANoe software through the python command, and configures the parameters to realize the recording of CAN, LIN and Ethernet traces. All recorded traces will be automatically saved to the specified directory in the post-condition of the test case, following the logic of automatically deleting the recorded trace when the test case passes, and automatically storing only when the test case fails. The test report generation module 3 automatically generates a test report based on the test log, the collected vehicle status signal and / or the vehicle display information and the expected results (recorded in the test template). The test report is saved in the specified directory, and there will be green and red markings in the report to facilitate viewing the test results of PASS or FAIL.

[0045] The vehicle control simulation module 6 of one embodiment of the present invention is an LVDS acquisition device, one end of which is connected to the vehicle screen (i.e., HMI) of the test vehicle, and the other end is connected to the vehicle module of the test vehicle via a network cable. The operation of the vehicle screen is simulated according to the test task. The operation of the vehicle screen includes text clicking, text recognition, screenshot, image recognition, image clicking, sliding the screen, returning to the main page, and restarting the vehicle.

[0046] Specifically, the vehicle computer automation operation is realized through the Digiteq MGB LVDS acquisition device and the ETA service software developed by reverse engineering MIB CAN. One end of the LVDS acquisition device is connected to the vehicle computer screen, and the other end is connected to the vehicle computer module through a network cable. The LVDS acquisition device is similar to the three-way device of the vehicle computer display screen. Open and run the ETA software through python on the host computer to confirm the successful connection between the vehicle computer and the test vehicle. After the connection, the encapsulated interface provided by ETA can be called through python to realize the operation of the vehicle computer screen, such as text click, text recognition, screenshot, image recognition, image click, screen sliding, return to the main page, restart the vehicle computer and other functions. The specific implementation is: use python to encapsulate the call to the ETA interface by keyword, such as text click, the python keyword needs to receive the text parameter passed in when RED calls the keyword, after receiving the parameter, the keyword calls the ETA interface again, passes the parameter to the ETA interface, the interface processes the data after receiving the parameter and returns the processing result, the keyword receives the processing result of the interface and judges the result and returns it to RED, RED then outputs and displays the result, so that the vehicle computer can be operated at the host computer and the test execution result can be viewed.

[0047] The test instruction input module 1 of an embodiment of the present invention is also connected to the cloud backend of the test vehicle, driven by a browser, calling the Selenium library, and configuring the test task in the cloud backend of the test vehicle. The Selenium library is an automation tool for Web application testing, which can simulate the user's operation in the browser, and perform user interaction behaviors such as clicking, inputting text, and submitting forms. Specifically, a browser driver (such as IE, Mozilla Firefox, Safari, Google Chrome, Opera, Edge, etc.) is installed on the host computer, and the path of the target web page (such as the configuration page or management page of the cloud backend) is called to open the Selenium library. After entering the backend web page, the target element (such as button, input box, drop-down menu, etc.) that needs to be operated is located by obtaining the attributes such as XPath, ID or Name of the web page element, and then the element binding event (such as click event click, assignment event send_keys, clear event clear, etc.) is realized to simulate the user's automatic configuration of the test task or the operation of the test environment in the cloud backend web page, without the user manually operating the cloud backend to perform the setting of the test task at each test.

[0048] like Figure 3As shown in the figure, when the infotainment test task is executed through the cloud background, the test environment is configured for the vehicle side through Selenium automation control background web page. After the test vehicle receives the relevant configuration sent by the background, the check interface of ETA service is called through Python request to confirm whether the background configuration information has reached the vehicle side, and the click, slide, put and get interfaces of ETAservice are called through Python request to simulate the click, slide, input and information check operations of the vehicle side. The display information of the vehicle is collected in combination with the LVDS acquisition device, and the execution result is returned to the host computer to generate a test report and complete the test task.

[0049] The vehicle state simulation module 5 of one embodiment of the present invention includes a NI industrial computer 51 and a Delta power supply 52. Figure 2 As shown, the NI industrial computer 51 is respectively connected to the test instruction input module 1, the ECU of the test vehicle and the whole vehicle wiring harness, simulates the vehicle status signal according to the test task and transmits it to the ECU, and reads the vehicle status signal of the whole vehicle wiring harness. The vehicle status signal includes the vehicle power-on and power-off status signal, the door switch signal, the window lifting signal, the front and rear cover switch signal, the vehicle speed signal, the light signal, the communication signal, etc. The Delta power supply 52 is respectively connected to the NI industrial computer 51 and the test vehicle to control the power-on and power-off of the test vehicle according to the test task. Specifically, the IO model of the vehicle status signals such as power-on and power-off, door switch, window lifting, front and rear cover switch, etc. is created in advance in the VeriStand engineering software, and the packaged VeriStand components are imported through python to realize the automatic opening of the VeriStand software and the configuration of the signal parameters of the relevant controllers and sensors, and finally realize the automatic control of the vehicle power-on and power-off, door opening and closing, window opening and closing, vehicle network on and off, simulation of vehicle speed and various signals such as flash light on and off through the NI industrial computer and VeriStand engineering software.

[0050] The vehicle state simulation module 5 of an embodiment of the present invention further includes a three-way switch 53 and a switching control unit 54. Figure 2. The three-way switch 53 includes a first end 531, a second end 532 and a third end 533. The first end 531 is connected to the ECU of the test vehicle, the second end 532 is connected to the whole vehicle wiring harness of the test vehicle, and the third end 533 is connected to the NI industrial computer. The switching control unit 54 is used to control the switching of the three-way switch 53 according to the test task. Among them, the first end 531 and the second end 532 of the three-way switch 53 are connected, and the ECU of the test vehicle receives the real vehicle status signal; the first end 531 and the third end 533 of the three-way switch 53 are connected, and the ECU of the test vehicle receives the simulated vehicle status signal of the NI industrial computer 51. Specifically, the three-way switch 53 defaults to the original vehicle path, that is, the first end 531 and the second end 532 are connected, that is, without any operation, the switches and sensors connected to the ECU still use the parts of the real vehicle, which can ensure that the functions of the original vehicle are available. When controller-related signals are needed, the switching control signal needs to be output through the switching control unit 54 to switch the relevant paths of the ECU to connect to the NI industrial computer 51. In this way, the signals of sensors and switches simulated by the NI industrial computer 51 can be transmitted to the ECU to achieve the purpose of control. The signal status can be obtained by reading the signal on the vehicle CAN bus to determine whether the control effect is achieved, thereby forming a control closed loop.

[0051] The test instruction input module 1 of one embodiment of the present invention is also connected to the test mobile terminal, and the NI industrial computer 51 is also used to simulate the remote vehicle control signal. The remote vehicle control signal includes the switch of the remote vehicle control service, the remote vehicle status detection, etc. The test report generation module 3 is also connected to the test mobile terminal, and a test report is generated according to the execution result of the test mobile terminal. The remote vehicle control service is usually implemented through a dedicated application (APP) on a smart phone. The user needs to install and register the application on the mobile phone first, and then bind the vehicle to the mobile phone APP according to the instructions in the application. After the binding is successful, the user can remotely control the vehicle through the mobile phone APP. The test mobile terminal mainly refers to the test mobile phone. In order to complete the test of the remote vehicle control service, the test mobile phone needs to be connected to the host computer via a USB data cable, and the Android system mobile phone is controlled by APPium and ADB commands at the host computer, or the iOS system mobile phone is controlled by IOS virtual machine, APPium, webdriveragent. Specifically, Android phones can be automated directly by opening Appium software and importing webdriver libraries, configuring Android phone parameters (including mobile phone model, system version, device name), and sending test script requests through the 4723 ports monitored by webdriver. The port receives the request and converts the request into a command that UiAutomator can identify and sends it to UiAutomator for processing, thereby realizing the automation of operations such as MOS app clicks, slides, double-clicks, inputs, and graphic recognition. iOS mobile phones need mac system computers to realize automation. The present invention uses a method of building a macOS virtual machine in a windows environment to realize iOS automation. The virtual machine software uses VMware, and the virtual macOS system package uses 13.0.1. After configuring the Mac system in the virtual machine, the system matching Xcode is downloaded, and the webdriveragent software is downloaded to the ios mobile phone in Xcode at the same time. After downloading the software, the connection mobile phone is realized by the cmd window tidevice command, and then the automatic operation iOS mobile phone is realized by the wda library. Because some texts of APP do not have elements or elements are difficult to obtain, the present invention uses the openCV library synchronously, and combines the paddleocr platform to assist in identifying the text in APP. In summary, the mobile phone can automatically perform tests such as opening and closing the remote vehicle control service and remote vehicle status detection.

[0052] like Figure 3As shown in the figure, when executing the remote vehicle control test task, first, Python calls VeriStand software to send the vehicle status simulation signal to the NI industrial computer, and the NI industrial computer powers on the test vehicle; then, Python calls Appium to realize the automatic operation of the test mobile phone, and the mobile phone's automatic real-time remote vehicle control function is tested; then Python calls VeriStand software to send the remote vehicle control signal to the NI industrial computer, and the NI industrial computer simulates the remote vehicle control signal. The test vehicle returns the execution result to the mobile phone through the background, and the mobile phone returns the execution result to the host computer, generates a test report, and completes the test task.

[0053] The vehicle-mounted online service test system of an embodiment of the present invention also includes a GPS simulator 4, which is connected to the test instruction input module 1 and the test vehicle respectively, and is used to provide a GPS signal to the test vehicle according to the test task, thereby simulating the vehicle position information to test the vehicle position signal. Specifically, the GPS signal simulation is performed using the GSG-5Series constellation simulator. The route project to be simulated is created on the host computer through the Google Earth software, a KML file is generated, and then imported into the GSG studio view engineering software. After configuring the speed, signal scene, navigation scene, duration, date and other parameters, the .scen file is output, and then the GPS simulator is automatically started through python, and the target GPS signal is transmitted to the test vehicle. By covering the real GPS signal received by the communication module of the test vehicle, the change of the test vehicle position is realized as needed.

[0054] An in-vehicle online service testing system of an embodiment of the present invention also includes a vehicle control simulation module 7, which is respectively connected to the test instruction input module and the test vehicle, and is used to simulate the vehicle operation signal according to the test task to simulate the user's control of the vehicle, thereby facilitating the simulation of special test scenarios.

[0055] The vehicle control simulation module 7 of one embodiment of the present invention is a Vector industrial computer, which is connected to the test command input module 1 via a USB cable or a network cable. The vehicle operation signal includes a gear signal, a steering wheel signal, a collision signal, etc. The simulation of vehicle operation signals such as gear, multi-function steering wheel, and collision is realized by the Vector industrial computer and the CANoe software. Specifically, the opening of the CANoe software and the project is realized through the win32com library of python, and the bus signal of the test vehicle is automatically controlled by setting the signal value of the specified model in the CANeo software, such as changing the gear by setting the gear signal value, setting the button event signal value of the multi-function steering wheel CAN signal to realize the operation of the multi-function steering wheel, and setting the collision intensity to trigger the emergency rescue call, etc.

[0056] The vehicle-mounted online service test system of an embodiment of the present invention further includes an audio output module 9 and an audio acquisition module 8. The audio output module 9 is connected to the test instruction input module 1 via a USB cable, and is used to output the voice content to the vehicle computer of the test vehicle according to the test task. The audio acquisition module 8 is connected to the test instruction input module 1 and the test report generation module 3 via a USB cable, and is used to collect the output sound of the vehicle computer of the test vehicle, and return the voice recognition result to the test report generation module 3.

[0057] Through the audio output module 9 and the audio acquisition module 8, combined with the iFlytek online service, intelligent voice interaction testing can be realized. Specifically, the Pyttsx3 library is installed through python, the text is converted into speech, and the parameters such as timbre, speech speed, volume, etc. are automatically adjusted according to the requirements of the MOS test task. Finally, the voice content in the MOS test task is output to the vehicle through the audio output module 9 (the audio output module 9 of an embodiment of the present invention is a voice mouth). The audio recognition collects the sound output by the vehicle through the audio acquisition module 8 (the audio acquisition module 8 of an embodiment of the present invention is a microphone), and then calls the general online voice recognition voice dictation interface provided by the iFlytek platform through python. After receiving the request, the iFlytek online website fills in the service interface authentication information (including APPID, APPSecret, APPKey), and after the signature is verified, uploads the received data, and returns the voice recognition result, which is compared and analyzed with the expected results in the MOS test task to realize vehicle voice recognition.

[0058] When executing the voice interaction test task, the main process is as follows: run the voice mouth through Python to output voice, the voice will wake up the test vehicle, and the voice execution result displayed on the vehicle screen will be fed back to the host computer for result comparison in combination with the LVDS acquisition device. When the vehicle computer outputs voice, the voice output by the vehicle computer is received through the microphone, and the received voice is analyzed online by iFlytek, and the analysis result is compared with the expected result to complete the test.

[0059] In summary, the in-vehicle online service test system of the present invention cooperates with each other through the software and hardware systems, connects the test vehicle, the test mobile terminal, the cloud background, etc., uses the Python language, and controls each engineering software and hardware module for user operation simulation through the software tool RED provided by RobotframeWork, realizes the automated simulation test of MOS, and performs real-time log recording to generate a test report. The initialization state of the test vehicle can also be uniformly pre-processed through NI industrial computers, GPS simulators, etc., so that the state of the test vehicle remains consistent.

[0060] It should be noted that in this application, unless otherwise clearly specified and limited, "connection" and similar terms should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, an indirect connection through an intermediate medium, or the internal connection of two components. Those skilled in the art can understand the specific meanings of the above terms in this application according to the specific circumstances. In addition, the terms "first", "second", and "third" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0061] The present invention has the following beneficial effects:

[0062] 1) The present invention can ensure that the state of the test vehicle before and after the test remains consistent through pre- and post-processing during the test task execution, meet the test requirements, and save debugging time before manual testing.

[0063] 2) The present invention does not need to connect to the device for recording logs before each test, and can perform test tasks around the clock, thereby improving test efficiency.

[0064] 3) The present invention can increase the number of recurrences of occasional problems, and can record logs for occasional problems in a timely manner, thereby avoiding the situation where logs of occasional problems cannot be recorded, thereby reducing the difficulty of analyzing occasional problems.

[0065] 4) The present invention can create extreme test scenarios and simulate special test scenarios to improve the coverage of test cases.

[0066] Although the above methods are illustrated and described as a series of actions for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the actions, because according to one or more embodiments, some actions may occur in a different order and / or concurrently with other actions from those illustrated and described herein or not illustrated and described herein but understandable to those skilled in the art.

[0067] The construction and arrangement of the present application shown in a plurality of different exemplary embodiments are only exemplary. Although only a few embodiments are described in detail in this disclosure, it should be readily understood by those who refer to this disclosure that many modifications are possible (e.g., parameter values, mounting arrangements, use of materials, color, changes in orientation, etc.) without substantially departing from the novel teachings and advantages of the subject matter described in the application. For example, the element shown as integrally formed may be composed of a plurality of parts or elements, the position of the element may be inverted or otherwise changed, and the nature or number or position of the discrete element may be altered or changed. Therefore, all such modifications are intended to be included within the scope of the present invention. The order or sequence of any process or method steps may be changed or reordered according to an alternative embodiment. In the claims, any "device plus function" clause is intended to cover the structure described herein that performs the function, and is not only structurally equivalent but also equivalent structure. Without departing from the spirit and essence of the present invention, a person skilled in the art may make various corresponding modifications and changes according to the present invention, but these corresponding modifications and changes shall fall within the scope of protection of the present invention.

Claims

1. A vehicle-mounted online service testing system, characterized in that: include: A test instruction input module is used to input test tasks; The vehicle state simulation module is connected to the test instruction input module and the test vehicle respectively, and is used to simulate and read the vehicle state signal according to the test task; The vehicle control simulation module is connected to the test command input module and the test vehicle, respectively, and is used to simulate the operation of the vehicle screen of the test vehicle and / or collect the vehicle display information according to the test task; Log recording module, connected to the test vehicle, real-time recording and saving test logs; The test report generation module is connected to the log recording module, the vehicle status simulation module and the vehicle computer control simulation module, and generates a test report based on the test log, the collected vehicle status signal and / or the vehicle computer display information and the expected results.

2. The vehicle-mounted online service testing system according to claim 1, characterized in that: The vehicle control simulation module is an LVDS acquisition device, one end of which is connected to the vehicle screen of the test vehicle, and the other end is connected to the vehicle module of the test vehicle through a network cable. It simulates the operation of the vehicle screen according to the test task. The operation of the vehicle screen includes text click, text recognition, screenshot, image recognition, image click, screen sliding, returning to the main page, and restarting the vehicle.

3. The vehicle-mounted online service testing system according to claim 1, characterized in that: The test instruction input module is also connected to the cloud background of the test vehicle, driven by the browser, calling the Selenium library, and configuring the test tasks in the cloud background of the test vehicle.

4. The vehicle-mounted online service testing system according to claim 1, characterized in that: The vehicle status simulation module includes a NI industrial computer and a Delta power supply; The NI industrial computer is connected to the test command input module, the ECU of the test vehicle, and the vehicle wiring harness, and simulates the vehicle status signal according to the test task and transmits it to the ECU, and reads the vehicle status signal of the vehicle wiring harness, wherein the vehicle status signal includes the vehicle power on and off status signal, the door switch signal, the window lifting signal, the front and rear cover switch signal, the vehicle speed signal, the light signal, and the communication signal; The Delta power supply is connected to the NI industrial computer and the test vehicle respectively, and controls the power on and off of the test vehicle according to the test task.

5. The vehicle-mounted online service testing system according to claim 4, characterized in that: The vehicle state simulation module also includes a three-way switch and a switching control unit; The three-way switch includes a first end, a second end and a third end, the first end is connected to the ECU of the test vehicle, the second end is connected to the whole vehicle wiring harness of the test vehicle, and the third end is connected to the NI industrial computer; The switching control unit is used to control the switching of the three-way switch according to the test task; The first end and the second end of the three-way switch are connected, and the ECU of the test vehicle receives the actual vehicle status signal; The first end and the third end of the three-way switch are connected, and the ECU of the test vehicle receives the simulated vehicle status signal from the NI industrial computer.

6. The vehicle-mounted online service testing system according to claim 4, characterized in that: The test instruction input module is also connected to the test mobile terminal, and the NI industrial computer is also used to simulate the remote vehicle control signal, which includes the switch of the remote vehicle control service and the remote vehicle status detection; The test report generation module is also connected to the test mobile terminal and generates a test report according to the execution result of the test mobile terminal.

7. The vehicle-mounted online service testing system according to claim 1, characterized in that: It also includes a GPS simulator, which is connected to the test instruction input module and the test vehicle respectively and is used to simulate the vehicle position information according to the test task.

8. The vehicle-mounted online service testing system according to claim 1, characterized in that: It also includes a vehicle control simulation module, which is connected to the test instruction input module and the test vehicle respectively, and is used to simulate the vehicle operation signal according to the test task.

9. The vehicle-mounted online service testing system according to claim 8, characterized in that: The vehicle control simulation module is a Vector industrial computer, which is connected to the test command input module via a USB cable or a network cable. The vehicle operation signal includes a gear signal, a steering wheel signal, and a collision signal.

10. The vehicle-mounted online service testing system according to claim 1, characterized in that: It also includes an audio output module and an audio acquisition module; The audio output module is connected to the test command input module via a USB cable, and is used to output the voice content to the vehicle computer of the test vehicle according to the test task; The audio acquisition module is connected to the test command input module and the test report generation module via a USB cable, and is used to collect the output sound of the test vehicle's head unit and return the speech recognition result to the test report generation module.