Vehicle machine system stability test method, device, equipment and storage medium

By constructing multiple test scenarios and calculating weighted coefficients, stability test scripts are generated, solving the problem of incomplete stability testing of vehicle infotainment systems and improving the comprehensiveness and efficiency of stability testing.

CN117606820BActive Publication Date: 2026-06-12CHONGQING CHANGAN AUTOMOBILE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHONGQING CHANGAN AUTOMOBILE CO LTD
Filing Date
2024-01-02
Publication Date
2026-06-12

Smart Images

  • Figure CN117606820B_ABST
    Figure CN117606820B_ABST
Patent Text Reader

Abstract

The application provides a car machine system stability test method, device, equipment and storage medium, the method comprises the following steps: obtaining each test function item of the to-be-tested car machine system, the test function item is at least one of each subsystem function in the to-be-tested car machine system; constructing the test scene of the to-be-tested car machine system, determining the test point corresponding to each test function item under different test scenes; according to the test process of the test point under each test scene, generating the stability test script of the test function item under each test scene; according to the stability test script, controlling the test function item to test under each test scene, determining the stability value of each test function item based on the weighting coefficient corresponding to each test scene, calculating the stability value of each test function item according to the preset weighting coefficient, and determining the stability of the to-be-tested car machine system by counting the stability value of each test function item, thereby improving the reliability of the car machine system stability test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of vehicle testing, specifically to a method, apparatus, equipment, and storage medium for testing the stability of a vehicle infotainment system. Background Technology

[0002] With the development of Internet of Vehicles (IoV) technology, cars are becoming increasingly intelligent and connected, gradually shifting from hardware control to software control. Furthermore, due to ever-increasing user demands, the functions of in-vehicle infotainment systems are constantly being updated, resulting in an ever-growing number of integrated subsystems. If these subsystems malfunction during operation, it will affect the stability of the entire infotainment system, potentially leading to frequent issues such as black screens, lag, panoramic image display failures, and network connection failures, severely impacting the user experience. To improve the user experience and ensure the normal operation of the in-vehicle infotainment system, stability testing is necessary. In related technologies, stability testing is typically achieved by repeatedly testing the functions of each subsystem.

[0003] However, when conducting stability tests on vehicle infotainment systems, there are two main problems: firstly, the test scenarios are too limited and the stability tests are not comprehensive, which increases the probability of abnormal situations occurring after the system is put into use, resulting in low test reliability; secondly, stability tests are time-consuming and inefficient. Summary of the Invention

[0004] In view of the shortcomings of the prior art described above, the present invention provides a method, apparatus, device and storage medium for testing the stability of a vehicle infotainment system, in order to solve at least one of the above-mentioned technical problems.

[0005] In a first aspect, the present invention provides a method for testing the stability of a vehicle infotainment system, comprising: acquiring various test functions of a vehicle infotainment system under test, wherein the test functions are at least one of the functions of various subsystems within the vehicle infotainment system under test; constructing test scenarios for the vehicle infotainment system under test, and determining test points corresponding to each test function under different test scenarios; generating stability test scripts for each test function under each test scenario according to the test process of the test points under each test scenario; controlling the test functions to be tested under each test scenario according to the stability test scripts; determining the stability value of each test function based on the weighting coefficients corresponding to each test scenario; calculating the stability values ​​of each test function based on preset weighting coefficients; and statistically analyzing the stability values ​​of each test function to determine the stability of the vehicle infotainment system under test.

[0006] In one embodiment of the present invention, obtaining the test function items of the vehicle infotainment system under test includes: obtaining the processor utilization rate and memory utilization rate of each subsystem function in the vehicle infotainment system under test; sorting each subsystem function from high to low according to the processor utilization rate and the memory utilization rate to determine the processor utilization ranking and memory utilization ranking of each subsystem function; filtering each subsystem function according to the processor utilization ranking and the memory utilization ranking, and selecting the subsystem functions that reach a preset ranking number as the test function items.

[0007] In one embodiment of the present invention, constructing a test scenario for the vehicle-to-the-world system and determining the test point corresponding to each test function item under different test scenarios includes: constructing a test scenario required for stability testing of the vehicle-to-the-world system, wherein the test scenario includes a long-term operation test scenario, an extreme operation test scenario, an interaction test scenario, and an interruption test scenario; in the long-term operation test scenario, determining the operation of controlling the test function item to maintain a running state or a stopped state within a preset time period as a first test point; in the extreme operation test scenario, determining the operation of controlling the test function item to run in the vehicle-to-the-world system under a preset saturation state as a second test point, wherein the preset saturation state represents the state in which the occupancy rates of the processor, memory, and bus in the vehicle-to-the-world system under the test reach preset occupancy thresholds respectively; in the interaction test scenario, determining the operation of interacting between the test function items as a third test point; and in the interruption test scenario, determining the operation of interrupting the test function item as a fourth test point.

[0008] In one embodiment of the present invention, after obtaining each test function item of the vehicle infotainment system under test, the method further includes: obtaining the average monthly usage of each test function item and the service life of the vehicle infotainment system under test; predicting the total usage of each test function item based on the service life of the vehicle infotainment system under test and the average monthly usage of each test function item, and using the total usage as the number of times each test function item is cyclically tested in each test scenario.

[0009] In one embodiment of the present invention, determining the stable value of each test function item based on the weighting coefficients corresponding to each test scenario, calculating the stable value of each test function item according to the preset weighting coefficients, and statistically determining the stability of the vehicle system under test based on the stable values ​​of each test function item includes: monitoring the test status of the test function items under each test scenario and generating test logs; determining the performance changes of the processor and the memory during the test process, and the anomalies occurring in each test function item from the test logs, to generate performance test data and anomaly reports for the test function items; and generating a stability test report by combining the test logs, the performance test data, and the anomaly reports, wherein the format of the stability test report includes... The system uses at least one of the following: Hypertext Markup Language, Extensible Markup Language, Portable File System, and Database File System; Based on the stability test report, the total number of tests and the number of anomalies for each test function item in each test scenario are determined, and the ratio between the number of anomalies and the total number of tests is taken as the anomaly frequency of the test function item; Based on the weighting coefficients corresponding to each test scenario, the anomaly frequency of each test function item in each test scenario is weighted once, and the mean of the anomaly frequency of each test function item after the first weighting is taken as the stable value; Based on the preset weighting coefficients, the stable value of each test function item is weighted a second time, and the stable value of each test function item after the second weighting is statistically analyzed to determine the stability of the vehicle system under test.

[0010] In one embodiment of the present invention, after generating the stability test report by combining the test logs, the performance test data, and the anomaly report, the method further includes: inputting the stability test report into a preset expert diagnostic model, determining the abnormal test points in the stability test report and generating the abnormal causes of the abnormal test points, and outputting them. The abnormal test points include the test points when the performance of the processor or memory is lower than a preset performance threshold, and the test points when the test function item malfunctions. The stability test script is located based on the abnormal test points to determine the test code corresponding to the abnormal test points in the stability test script. The test function item corresponding to the abnormal test points is taken as the target test function item. After the target test function item is corrected, a target test script for the target test function item is generated based on the test code, and the target test function item is tested to complete the stability test of the vehicle system.

[0011] In one embodiment of the present invention, before controlling the test function items to perform tests in each of the test scenarios according to the stability test script, the method further includes: setting up a test environment for the stability test of the vehicle system, the test environment including a host computer, a test bench, the vehicle system under test, and a controller that interacts with the vehicle system under test, the controller including an instrument panel, steering wheel control buttons, a panoramic camera, an IMS camera, a parking system, and a body controller; wherein, an automated test device is set up in the test bench, and the automated test device is connected to the host computer, the vehicle system under test, and the controller respectively.

[0012] In a second aspect, the present invention also provides a vehicle infotainment system stability testing device, comprising: an acquisition module for acquiring various test functions of a vehicle infotainment system under test, wherein the test functions are at least one of the functions of each subsystem within the vehicle infotainment system under test; a test scenario construction module for constructing test scenarios for the vehicle infotainment system under test and determining the test points corresponding to each test function under different test scenarios; a script generation module for generating stability test scripts for each test function under each test scenario according to the test process of the test points under each test scenario; and a testing module for controlling the test functions to be tested under each test scenario according to the stability test scripts, determining the stability value of each test function based on the weighting coefficients corresponding to each test scenario, calculating the stability value of each test function according to the preset weighting coefficients, and statistically determining the stability of the vehicle infotainment system under test based on the stability values ​​of each test function.

[0013] In a third aspect, the present invention also provides an electronic device, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle system stability testing method as described in the above embodiments.

[0014] In a fourth aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer processor, causes the computer to perform the vehicle system stability testing method as described in the above embodiments.

[0015] The beneficial effects of this invention are as follows: This invention proposes a method, apparatus, device, and storage medium for testing the stability of an in-vehicle infotainment system. The method involves acquiring various test functions of the in-vehicle infotainment system under test (each test function is at least one of the functions of each subsystem within the system); constructing test scenarios for the system and determining the test points corresponding to each test function under different test scenarios; generating stability test scripts for each test function under each test scenario based on the test flow of the test points in each test scenario; controlling the test function under each test scenario according to the stability test scripts; determining the stable value of each test function based on the weighting coefficients corresponding to each test scenario; calculating the stable values ​​of each test function based on preset weighting coefficients; and statistically determining the stability of the in-vehicle infotainment system under test. This approach considers the impact of each test function on the stability of the in-vehicle infotainment system under different test scenarios, making the stability testing more comprehensive. It not only improves the reliability of the stability testing but also automates the testing process through stability test scripts, thus improving testing efficiency.

[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention. It is obvious that the drawings described below are merely some embodiments of the invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:

[0018] Figure 1 This is a flowchart illustrating an exemplary embodiment of the present invention of a vehicle infotainment system stability testing method;

[0019] Figure 2 This is a schematic diagram illustrating a test function item in an exemplary embodiment of the present invention;

[0020] Figure 3 This is a schematic diagram illustrating a test environment according to an exemplary embodiment of the present invention;

[0021] Figure 4 This is a schematic diagram illustrating another test environment as shown in an exemplary embodiment of the present invention;

[0022] Figure 5 This is a schematic diagram illustrating a stability testing process according to an exemplary embodiment of the present invention;

[0023] Figure 6This is a block diagram illustrating an exemplary embodiment of the present invention of a vehicle infotainment system stability testing device;

[0024] Figure 7 This is a schematic diagram illustrating the structure of a computer system suitable for implementing the electronic device of the present invention, as shown in an exemplary embodiment of the present invention. Detailed Implementation

[0025] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.

[0026] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0027] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.

[0028] Please see Figure 1 The above is a flowchart illustrating a vehicle infotainment system stability testing method as an exemplary embodiment of the present invention. Figure 1 As shown, in an exemplary embodiment, the vehicle infotainment system stability test method includes at least steps S110 to S140, which are described in detail below:

[0029] Step S110: Obtain each test function item of the vehicle infotainment system under test. The test function item is at least one of the functions of each subsystem within the vehicle infotainment system under test.

[0030] Specifically, since the vehicle infotainment system under test integrates a large number of subsystem functions, such as navigation, entertainment, air conditioning, information display, and driver assistance, if all subsystem functions are tested, the testing time will be too long and the testing efficiency will be too low. Therefore, it is necessary to screen these subsystem functions and select those subsystem functions that are likely to affect the stability of the vehicle infotainment system under test as test functions to participate in the stability test.

[0031] The test functionality items are determined in the following ways:

[0032] Obtain the processor utilization and memory utilization of each subsystem function in the vehicle infotainment system under test; sort each subsystem function from high to low according to the processor utilization and memory utilization, and determine the processor utilization ranking and memory utilization ranking of each subsystem function; filter each subsystem function according to the processor utilization ranking and memory utilization ranking, and select the subsystem functions that reach the preset ranking as the test function items.

[0033] In one embodiment of the present invention, during long-term operation, the CPU (i.e., central processing unit) and memory usage of the subsystem functions integrated in the vehicle infotainment system under test show an upward trend. When the CPU or memory usage is too high, it is very easy to cause instability of the vehicle infotainment system. Therefore, subsystem functions with high CPU usage (i.e., processor usage) and high memory usage are selected as test functions.

[0034] In one embodiment of the present invention, the preset ranking number can be adjusted according to the actual test situation, and the two screening methods of filtering each subsystem function based on processor usage ranking or memory usage ranking are independent of each other.

[0035] Please see Figure 2 This is a schematic diagram illustrating a test function item as an exemplary embodiment of the present invention. Figure 2 As shown, when the preset ranking number is set to 10, the top 10 subsystem functions with high processor or memory usage are selected as test functions. Figure 2 The voice system, image system, navigation and positioning system, audio-visual entertainment system, dual-screen interactive system, social communication system, basic settings system, life service system, voltage management system and air conditioning system integrated by CRRC were tested as functional items.

[0036] By using the above method, subsystem functions that have a significant impact on the stability of the vehicle's infotainment system are selected from the subsystem functions and used as test functions, thus improving the efficiency of stability testing.

[0037] Specifically, determining the number of tests for each test function item includes: obtaining the average monthly usage of each test function item and the service life of the vehicle system under test; predicting the total number of tests for each test function item based on the service life of the vehicle system under test and the average monthly usage of each test function item, and using the total number of tests as the number of times each test function item is tested cyclically in each test scenario.

[0038] In one embodiment of the present invention, each test function item is cyclically tested in various test scenarios; the test ends when the number of cyclic tests reaches the required number of tests. To avoid unreliable stability testing of the vehicle system under test due to insufficient test counts, the number of tests for each test function item needs to meet the frequency of user usage. Therefore, based on vehicle networking technology, the average monthly usage frequency per user for each test function item can be obtained from the cloud, and the maximum number of times a user may use each test function item within the vehicle's service life can be calculated, i.e., the predicted total number of times each test function item will be used. This total number of times is used as the number of tests to ensure the reliability of the stability testing of the vehicle system under test. In addition, the number of tests for each test function item is calculated separately, and the number of tests is not uniform, avoiding excessive testing of test function items with relatively low user usage frequency, saving testing time and improving testing efficiency.

[0039] Step S120: Construct test scenarios for the vehicle infotainment system under test and determine the test points corresponding to each test function item in different test scenarios.

[0040] Specifically, test scenarios are constructed to conduct stability tests on the vehicle infotainment system under test. These scenarios include long-term operation test scenarios, extreme operation test scenarios, interactive test scenarios, and interruption test scenarios. In the long-term operation test scenario, the operation of controlling the test function to maintain its running or stopped state within a preset time period is defined as the first test point. In the extreme operation test scenario, the operation of controlling the test function to run under a preset saturation state is defined as the second test point. The preset saturation state is the state in which the utilization rates of the processor, memory, and bus in the vehicle infotainment system under test reach preset utilization thresholds. In the interactive test scenario, the operation of interacting between test functions is defined as the third test point. In the interruption test scenario, the operation of interrupting the test function is defined as the fourth test point.

[0041] It's important to understand that functional testing and stability testing of in-vehicle infotainment systems differ. Functional testing typically involves repeatedly testing each function within a subsystem to ensure its proper operation, with each subsystem participating in the test to guarantee reliability. Stability testing, on the other hand, aims to ensure the long-term, stable operation of subsystem functions. Therefore, previous stability tests for in-vehicle infotainment systems only considered the long-term operational capability of subsystem functions. However, in actual functional testing, monitoring the processor and memory usage of the in-vehicle infotainment system revealed that significant fluctuations in processor or memory usage—such as interactions between multiple subsystem functions, abnormal interruptions of subsystem functions, or excessively high processor or memory usage—can lead to stability issues. Therefore, stability testing for in-vehicle infotainment systems, in addition to the previous single long-term operation test scenario, needs to include at least three additional test scenarios: interactions between subsystem functions, abnormal interruptions of subsystem functions, and excessively high processor or memory usage. These scenarios constitute extreme operation test scenarios, interaction test scenarios, and interruption test scenarios.

[0042] In one embodiment of the present invention, the stability test scenarios are mainly aimed at scenarios where the processor and memory of the vehicle system under test fluctuate greatly. Indicatively, these include at least long-term operation test scenarios, extreme operation test scenarios, interaction test scenarios, and interruption test scenarios. The long-term operation test scenario is primarily to test the ability of each test function to maintain the same state for an extended period. Therefore, the operation of controlling the test function to maintain the same state for an extended period is taken as the first test point. For example, the operation of external devices of the vehicle system under test, such as navigation and positioning systems and social communication systems, maintaining a connected running state for a preset time period and then disconnecting, or maintaining a disconnected shutdown state for a preset time period and then connecting, is taken as the first test point. Similarly, the operation of subsystems such as the audio-visual entertainment system and the dual-screen interaction system of the vehicle system under test maintaining a running state in the foreground, background, or a shutdown state of being unused within a preset time period is also taken as the first test point. The extreme operation test scenario primarily aims to test the ability of each function in the vehicle's infotainment system under high load conditions for the processor, memory, and bus. Therefore, multiple subsystems of the infotainment system will run simultaneously until the processor utilization reaches a preset threshold, while the memory and bus utilization will also be controlled to reach preset thresholds, bringing the system to a preset saturation state. The operation of the test function will then continue, serving as the second test point. The interaction test scenario primarily aims to test the interaction capabilities between the various test functions. Therefore, the interaction operations between these functions will be designated as the third test point. For example, voice-activated air conditioning or displaying a panoramic image taken by a surround-view camera on the instrument panel would be considered a third test point. The interruption test scenario mainly tests the ability to resume operation after being forced to interrupt due to an unexpected interruption request during runtime. Therefore, the operation of the interruption test function item is determined as the fourth test point. For example, the operation of interrupting the operation of the test function item due to interruption operations such as power disconnection, network interruption, signal interruption, application interruption, etc., and then continuing to interrupt it after the test function item resumes operation is determined as the fourth test point, in order to test the ability of each test function item to resume operation after interruption.

[0043] Step S130: Generate stability test scripts for test functions in each test field based on the test process of test points in each test scenario.

[0044] In one embodiment of the present invention, the test flow for each test point can be determined based on various operations performed on the test function items under different test scenarios, and this flow is compiled into a stability test script for each test function item. The stability test script can be written using the simulation signal output by the CAN (i.e., controller area network) device in the test environment to simulate the test flow for each test point. The stability test script is then debugged using a test bench, and modified based on the debugging results to optimize the test flow.

[0045] Specifically, before conducting the test, the test environment needs to be set up, including: setting up a test environment for the stability test of the vehicle infotainment system. The test environment includes a host computer, a test bench, the vehicle infotainment system under test, and a controller that interacts with the vehicle infotainment system under test. The controller includes the instrument cluster (IP), steering wheel control buttons, a panoramic camera, an IMS (Intelligent Cockpit Monitoring System) camera, a parking assist system (APA), and a body control module (BCM). The test bench is equipped with automated testing equipment, which is connected to the host computer, the vehicle infotainment system under test, and the controller.

[0046] In one embodiment of the present invention, the controller that interacts with the vehicle body can be adjusted according to the actual situation, and the automated testing equipment may include a power supply, a camera, a robotic arm, a sliding rail, a board, and a controller area network (CAN) device.

[0047] Please see Figure 3 This is a schematic diagram of a test environment shown in an exemplary embodiment of the present invention. Figure 3 The test environment includes a host computer, CAN devices, a THU (i.e., vehicle infotainment system), and a power supply. The host computer is connected to the CAN devices via a serial communication network (CAN / LIN), the CAN devices are connected to the vehicle infotainment system, and the vehicle infotainment system is connected to the power supply. Figure 3 The testing environment in the middle can only test one vehicle system, and the testing needs to be done manually, which results in long testing time and a limited range of testing scenarios.

[0048] Please see Figure 4 This is a schematic diagram illustrating another test environment as an exemplary embodiment of the present invention. Figure 4The testing environment included an automated testing bench. The bench contained automated testing equipment such as a programmable power supply, industrial cameras, a robotic arm, sliding rails, circuit boards, and CAN devices. The bench connected four vehicle-to-the-system (THU) devices and controllers that interacted with them, including the instrument cluster, steering wheel controls, panoramic camera, IMS camera, parking assist system (APA), and body control module (BCM). Each TDU operated independently in a specific test scenario, allowing for simultaneous automated testing of multiple TDU systems across different scenarios. This enabled automated testing of each functional item across various testing environments, thereby monitoring the stability of the TDU systems. This improved the efficiency and reliability of stability testing.

[0049] Continue to refer to Figure 4 The THU (Total Unit) is the main testing component for vehicle infotainment system stability testing. The instrument cluster is used for automated testing of the dual-screen interaction function with the THU. The steering wheel control buttons are used for automated testing of the interaction function between the vehicle infotainment system under test and the steering wheel control buttons. The APA (Automatic Peripheral Apparatus) is mainly used for automated testing of the interaction function between the vehicle infotainment system under test and the external imaging system. The BCM (Battery Management Center) is mainly used for automated testing of various vehicle body control functions, such as controlling the in-vehicle air conditioning and lights. The panoramic camera is mainly used for automated testing of the panoramic imaging function of the vehicle infotainment system under test. The IMS (In-Vehicle Monitoring System) camera is mainly used for automated testing of the in-vehicle camera function of the vehicle infotainment system under test.

[0050] Step S140: Control the test function items to be tested in each test scenario according to the stability test script, determine the stable value of each test function item based on the weighting coefficient corresponding to each test scenario, calculate the stable value of each test function item according to the preset weighting coefficient, and statistically determine the stability of the vehicle system under test.

[0051] Specifically, the test status of test functions under each test scenario is monitored, and test logs are generated; the performance changes of the processor and memory during the test and the anomalies that occur in each test function are determined from the test logs, so as to generate performance test data and anomaly reports for the test functions; and a stability test report is generated by combining the test logs, performance test data and anomaly reports. The format of the stability test report includes at least one of the following: Hypertext Markup Language, Extensible Markup Language, Portable File, and Database File.

[0052] In one embodiment of the present invention, the host computer can be initialized first, and then a stability test script can be run to automatically test each test function item in the vehicle infotainment system under test, and monitor the test status in each test scenario in real time, generating test logs. During the test, key parameters (e.g., Crash, ANR) related to processor performance, memory performance, and test functionality anomalies are captured from the test logs to monitor the usage of the processor and memory in the vehicle infotainment system under test, automatically generating waveforms and occupancy data of the processor and memory, i.e., performance test data. Simultaneously, anomalies occurring in each test function item are monitored, i.e., anomalies at corresponding test points for each test function item in each test scenario, generating an anomaly report. For example, when the audio-visual entertainment system in the vehicle infotainment system is used as a test function item, in an interruption test scenario, if the operation of the audio-visual entertainment system is forced to terminate due to network reasons and cannot be resumed, then this test point of network interruption operation for the audio-visual entertainment system is an anomaly.

[0053] In one embodiment of the present invention, if a test anomaly occurs, such as high processor or memory usage, or a black screen on the vehicle infotainment system, the host computer can be reinitialized, the anomaly resolved, and the stability test script can be executed repeatedly. Furthermore, to ensure test reliability, each test function is tested cyclically. The stability test report generated after the test can be in any format, such as ORD (i.e., database file), HTML (i.e., Hypertext Markup Language), XML (i.e., Extensible Markup Language), or PDF (i.e., portable file).

[0054] Specifically, based on the stability test report, the total number of tests and the number of anomalies for each test function item in each test scenario are determined. The ratio between the number of anomalies and the total number of tests is taken as the anomaly frequency of the test function item. Based on the weighting coefficients corresponding to each test scenario, the anomaly frequency of each test function item in each test scenario is weighted once, and the mean of the anomaly frequency of each test function item after the first weighting is taken as the stable value. Based on the preset weighting coefficients, the stable value of each test function item is weighted a second time, and the stable value of each test function item after the second weighting is statistically analyzed to determine the stability of the vehicle system under test.

[0055] In one embodiment of the present invention, the number of anomalies of each test function item in each test scenario in the stability test report is not limited to the number of anomalies of the test points corresponding to each test function item, but also includes the performance of the processor or memory of the vehicle system under test being lower than a preset performance threshold during the test of the test points corresponding to each test function item. For example, the processor utilization rate or memory utilization rate is too high, tending to 80%.

[0056] In one embodiment of the present invention, the weighting coefficients corresponding to each test scenario and the preset weighting coefficients for each test function item can be adjusted according to actual conditions. For example, the probability of an interruption test scenario occurring in actual operation may be lower than that of a long-term operation test scenario. Therefore, the weighting coefficient corresponding to the interruption test scenario is set lower than that corresponding to the long-term operation test scenario, so that the stable value of each test function item takes into account the actual usage of multiple test scenarios and is more accurate. In addition, the preset weighting coefficient for each test function item can be adjusted according to actual conditions. Since the usage frequency of each test function item may be different in real-time applications, the accuracy of determining the stability of the vehicle system under test based on the stable value of each test function item is improved by weighting the stable value of each test function item. For example, in the actual application of the vehicle system, the usage frequency of the voice function may be much lower than that of the panoramic imaging function. Therefore, the preset weighting coefficient of the voice function is set lower than that of the panoramic imaging function.

[0057] Specifically, the stability test report is input into a preset expert diagnostic model to identify abnormal test points in the stability test report and generate the abnormal causes of the abnormal test points, which are then output. Abnormal test points include test points where the performance of the processor or memory is lower than a preset performance threshold, and test points where test functions malfunction. The stability test script is located based on the abnormal test points to determine the test code corresponding to the abnormal test points in the stability test script. The test function corresponding to the abnormal test points is taken as the target test function. After the target test function is corrected, a target test script for the target test function is generated based on the test code, and the target test function is tested to complete the stability test of the vehicle system.

[0058] In one embodiment of the present invention, by locating the test code corresponding to abnormal test points under different test scenarios from the stability test script, and generating a target test script for the target test function item based on the abnormal test points corresponding to the same test function item, the test function items that have anomalies can be tested again in a targeted manner. This avoids spending too much time retesting all test function items after adjusting the abnormal test function items when the stability of the vehicle system under test is unreliable, thus improving testing efficiency.

[0059] Please see Figure 5 This is a schematic diagram illustrating a stability testing process according to an exemplary embodiment of the present invention. Figure 5As shown, for the stability testing of the vehicle infotainment system, it is necessary to determine the test functions, preset prediction scenarios, and the number of tests for each test function of the vehicle infotainment system under test, and to build a test environment for the stability of the vehicle infotainment system under test. Then, based on the stability test scripts written for each test item in each test scenario, the stability of the vehicle infotainment system under test is automatically tested, and it is determined whether any test anomalies occur and recorded. After the test anomalies are resolved, the test functions are tested again until the test cycle for each test function has been completed a certain number of times, and a stability test report for the vehicle infotainment system under test is generated.

[0060] Please see Figure 6 This is a block diagram illustrating a vehicle infotainment system stability testing apparatus as an exemplary embodiment of the present invention. Figure 6 As shown, the exemplary vehicle infotainment system stability testing device includes: an acquisition module 610, a test scenario construction module 620, a script generation module 630, and a testing module 640.

[0061] The acquisition module 610 is used to acquire each test function item of the vehicle infotainment system under test, wherein the test function item is at least one of the functions of each subsystem within the vehicle infotainment system under test.

[0062] The test scenario construction module 620 is used to construct the test scenario of the vehicle system under test and determine the test points corresponding to each test function item under different test scenarios.

[0063] The script generation module 630 is used to generate stability test scripts for the test function items in each test field according to the test process of the test point in each test scenario.

[0064] The testing module 640 is used to control the test function items to be tested in each test scenario according to the stability test script, determine the stable value of each test function item based on the weighting coefficient corresponding to each test scenario, calculate the stable value of each test function item according to the preset weighting coefficient, and determine the stability of the vehicle system under test by statistically analyzing the stable values ​​of each test function item.

[0065] It should be noted that the vehicle system stability testing device provided in the above embodiments and the vehicle system stability testing method provided in the above embodiments belong to the same concept. The specific way of performing each step has been described in detail in the system embodiments, and will not be repeated here.

[0066] Embodiments of the present invention also provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device enables the vehicle system stability testing method provided in the above embodiments.

[0067] Please see Figure 7 A schematic diagram of a computer system suitable for implementing embodiments of the present invention is shown. It should be noted that... Figure 7 The computer system 700 of the illustrated electronic device is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0068] like Figure 7 As shown, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in Read-Only Memory (ROM) 702 or programs loaded from storage portion 708 into Random Access Memory (RAM) 703. The RAM 703 also stores various programs and data required for system operation. The CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An Input / Output (I / O) interface 705 is also connected to the bus 704.

[0069] The following components are connected to I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to I / O interface 705 as needed. Removable media 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 710 as needed so that computer programs read from them can be installed into storage section 708 as needed.

[0070] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing computer programs for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit (CPU) 701, it performs various functions defined in the system of the present invention.

[0071] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a computer's processor, causes the computer to perform the aforementioned vehicle system stability testing method. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not be assembled into the electronic device.

[0072] It should be noted that the computer-readable medium shown in the embodiments of the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0073] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0074] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A method for testing the stability of a vehicle infotainment system, characterized in that, include: Obtaining the test function items of the vehicle infotainment system under test includes: obtaining the processor utilization rate and memory utilization rate of each subsystem function in the vehicle infotainment system under test; sorting each subsystem function from high to low according to the processor utilization rate and the memory utilization rate, and determining the processor utilization ranking and memory utilization ranking of each subsystem function; filtering each subsystem function according to the processor utilization ranking and memory utilization ranking, and selecting the subsystem functions that reach a preset ranking number as the test function items; wherein, the test function item is at least one of the subsystem functions in the vehicle infotainment system under test; The test scenarios for the vehicle infotainment system under test are constructed, and the test points corresponding to each test function item under different test scenarios are determined. This includes: constructing test scenarios required for stability testing of the vehicle infotainment system under test, including long-term operation test scenarios, extreme operation test scenarios, interactive test scenarios, and interruption test scenarios; in the long-term operation test scenario, the operation of controlling the test function item to maintain a running state or a stopped state within a preset time period is determined as the first test point; in the extreme operation test scenario, the operation of controlling the test function item to run in the vehicle infotainment system under test under a preset saturation state is determined as the second test point, where the preset saturation state represents the state where the utilization rates of the processor, memory, and bus in the vehicle infotainment system under test each reach preset utilization thresholds; in the interactive test scenario, the operation of interacting between the test function items is determined as the third test point; and in the interruption test scenario, the operation of interrupting the test function item is determined as the fourth test point. Based on the test process of the test points in each test scenario, generate stability test scripts for the test function items in each test field. The stability test script controls the test function items to be tested in each test scenario. The stability value of each test function item is determined based on the weighting coefficient corresponding to each test scenario. The stability value of each test function item is calculated according to the preset weighting coefficient. The stability value of each test function item is statistically analyzed to determine the stability of the vehicle system under test.

2. The vehicle infotainment system stability testing method as described in claim 1, characterized in that, After acquiring the test function items of the vehicle infotainment system under test, the following is also included: Obtain the average monthly usage of each of the test function items, as well as the service life of the vehicle system under test; Based on the service life of the vehicle system under test and the average monthly usage of each test function, the total usage of each test function is predicted, and the total usage is used as the number of times each test function is cyclically tested in each test scenario.

3. The vehicle infotainment system stability testing method as described in claim 1, characterized in that, The process of determining the stable value of each test function item based on the weighting coefficients corresponding to each test scenario, calculating the stable value of each test function item according to the preset weighting coefficients, and statistically analyzing the stable values ​​of each test function item to determine the stability of the vehicle system under test includes: Monitor the test status of the test functions in each of the aforementioned test scenarios and generate test logs; The performance changes of the processor and memory during the test, and the anomalies that occurred in each of the test functions are determined from the test logs, so as to generate performance test data and anomaly reports for the test functions. A stability test report is generated by combining the test logs, the performance test data, and the anomaly report. The format of the stability test report includes at least one of the following: Hypertext Markup Language, Extensible Markup Language, Portable File, and Database File. Based on the stability test report, determine the total number of tests and the number of anomalies for each test function item in each test scenario, and use the ratio between the number of anomalies and the total number of tests as the anomaly frequency of the test function item. Based on the weighting coefficients corresponding to each test scenario, the abnormal frequency of each test function item under each test scenario is weighted once, and the average of the abnormal frequency of each test function item after weighting is taken as the stable value. The stability values ​​of each test function item are weighted twice according to a preset weighting coefficient, and the stability values ​​of each test function item after the second weighting are statistically analyzed to determine the stability of the vehicle system under test.

4. The vehicle infotainment system stability testing method as described in claim 3, characterized in that, After generating the stability test report by combining the test logs, the performance test data, and the anomaly report, the method further includes: The stability test report is input into a preset expert diagnostic model to determine the abnormal test points in the stability test report and generate the abnormal causes of the abnormal test points, and output them. The abnormal test points include the test points when the performance of the processor or memory is lower than a preset performance threshold, and the test points when the test function item is abnormal. The stability test script is located based on the abnormal test points to determine the test code corresponding to the abnormal test points in the stability test script; The test function item corresponding to the abnormal test point is taken as the target test function item. After the target test function item is corrected, a target test script for the target test function item is generated according to the test code, and the target test function item is tested to complete the stability test of the vehicle system.

5. The vehicle infotainment system stability testing method as described in any one of claims 1 to 4, characterized in that, Before controlling the test function items to be tested in each of the test scenarios according to the stability test script, the method further includes: A test environment for the stability test of the vehicle infotainment system is set up. The test environment includes a host computer, a test bench, the vehicle infotainment system under test, and a controller that interacts with the vehicle infotainment system under test. The controller includes an instrument panel, steering wheel control buttons, a panoramic camera, an IMS camera, a parking system, and a body controller. The test bench is equipped with automated testing equipment, which is connected to the host computer, the vehicle system under test, and the controller.

6. A vehicle infotainment system stability testing device, characterized in that, include: The acquisition module is used to acquire various test function items of the vehicle infotainment system under test, including: acquiring the processor utilization rate and memory utilization rate of each subsystem function in the vehicle infotainment system under test; sorting each subsystem function from high to low according to the processor utilization rate and the memory utilization rate respectively, and determining the processor utilization ranking and memory utilization ranking of each subsystem function; filtering each subsystem function according to the processor utilization ranking and memory utilization ranking respectively, and selecting the subsystem functions that reach a preset ranking number as the test function items; wherein, the test function item is at least one of the subsystem functions in the vehicle infotainment system under test; A test scenario construction module is used to construct test scenarios for the vehicle infotainment system under test and determine the test points corresponding to each test function item under different test scenarios. This includes: constructing test scenarios required for stability testing of the vehicle infotainment system under test, wherein the test scenarios include long-term operation test scenarios, extreme operation test scenarios, interactive test scenarios, and interruption test scenarios; in the long-term operation test scenario, the operation of controlling the test function item to maintain a running state or a stopped state within a preset time period is determined as the first test point; in the extreme operation test scenario, the operation of controlling the test function item to run in the vehicle infotainment system under test under a preset saturation state is determined as the second test point, wherein the preset saturation state represents the state where the utilization rates of the processor, memory, and bus in the vehicle infotainment system under test each reach preset utilization thresholds; in the interactive test scenario, the operation of interacting between the test function items is determined as the third test point; and in the interruption test scenario, the operation of interrupting the test function item is determined as the fourth test point. The script generation module is used to generate stability test scripts for the test function items in each test field according to the test process of the test point in each test scenario. The testing module is used to control the test function items to be tested in each test scenario according to the stability test script, determine the stable value of each test function item based on the weighting coefficient corresponding to each test scenario, calculate the stable value of each test function item according to the preset weighting coefficient, and determine the stability of the vehicle system under test by statistically analyzing the stable value of each test function item.

7. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the electronic device to implement the vehicle system stability testing method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, It stores a computer program that enables the computer to perform the vehicle system stability test method as described in any one of claims 1 to 5.