Test method and system, computer equipment and storage medium
Through automated testing methods, sending a signal sequence to the vehicle machine to control its entry and exit from the STR mode, solving the problems of high testing costs and low efficiency in the prior art, and achieving efficient and accurate acquisition of test results.
Patent Information
- Application Number
- CN202510115953.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-05-27
AI Technical Summary
In the prior art, the test cost of entering and exiting the suspended memory (STR) mode of the test vehicle is high and requires a large number of personnel to participate, resulting in low testing efficiency and reduced accuracy.
By iteratively performing test operations, a specific signal sequence is sent to the target vehicle to control its entry and exit from the STR mode, and the test results are automatically acquired and analyzed by the computer device to generate the success rate of the STR function usage.
It realizes automated testing, reduces testing costs and resource consumption, improves testing efficiency and accuracy, and can quickly obtain test results.
Smart Images

Figure CN120045456A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of vehicles, and in particular, to a test method, a system, a computer device, and a storage medium. Background Art
[0002] In the related art, before providing a vehicle head unit with the Suspend To RAM (STR) function to users, it is necessary to test whether the target vehicle head unit can enter the STR mode when the vehicle head unit needs the target vehicle head unit to enter the STR mode, and whether it can exit the STR mode when it needs to exit the STR mode.
[0003] In the related art, a large number of testers repeatedly perform a series of test actions such as the action of turning off the engine of the vehicle participating in the test and the action of locking the vehicle participating in the test. The test cost is high. How to reduce the test cost has become a problem to be solved. Summary of the Invention
[0004] In view of this, embodiments of the present disclosure provide a test method, a system, a computer device, and a storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a test method, and the method includes:
[0006] Iteratively execute test operations until a test end condition is met. The test operations include:
[0007] Send a first signal sequence to a target vehicle head unit so that the target vehicle head unit determines that the target vehicle head unit needs to enter the STR mode according to the first signal sequence;
[0008] After a preset duration from the moment when sending the first signal sequence to the target vehicle head unit is completed, send a second signal sequence to the target vehicle head unit so that the target vehicle head unit determines that the target vehicle head unit needs to exit the STR mode according to the second signal sequence;
[0009] Obtain information for generating a test result corresponding to the test operation from the target vehicle head unit, and generate a test result corresponding to the test operation according to the information for generating the test result corresponding to the test operation, where the test result indicates the following items: whether the target vehicle head unit enters the STR mode during the execution of the test operation, and whether the target vehicle head unit exits the STR mode during the execution of the test operation.
[0010] In a possible implementation manner, sending a first signal sequence to the target vehicle head unit includes:
[0011] Send the corresponding first signal in the first signal sequence to the bus simulation device, so that the bus simulation device sends the corresponding first signal to the target vehicle head unit through the bus corresponding to the corresponding first signal, where a vehicle component for sending a first type of signal to the corresponding vehicle head unit belonging to the corresponding first signal sends the first type of signal to the corresponding vehicle head unit through the bus corresponding to the corresponding first signal; and sending the second signal sequence to the target vehicle head unit includes:
[0012] Send the corresponding second signal in the second signal sequence to the bus simulation device, so that the bus simulation device sends the corresponding second signal to the target vehicle head unit through the bus corresponding to the corresponding second signal, where a vehicle component for sending a second type of signal to the corresponding vehicle head unit belonging to the corresponding second signal sends the second type of signal to the corresponding vehicle head unit through the bus corresponding to the corresponding second signal.
[0013] In a possible implementation, it further includes: determining the success rate of using the STR function of the target vehicle head unit according to the test results corresponding to multiple test operations, where the success rate of using the STR function is the ratio of the number of test operations with the corresponding test results marked as successful to the number of executions of the test operations, where the target vehicle head unit enters the STR mode and exits the STR mode during the execution of the test operations with the corresponding test results marked as successful.
[0014] In a possible implementation, the first signal sequence includes: a signal indicating the remaining vehicle power greater than the power threshold, a signal indicating the external vehicle temperature greater than the temperature threshold, a signal indicating that the vehicle gear is in the parking gear, a signal indicating that each door of the vehicle is closed for each door of the vehicle, a signal indicating that each door of the vehicle is locked for each door of the vehicle, a signal indicating that the vehicle is locked, and the second signal sequence includes: a signal indicating that the vehicle is unlocked, a signal indicating that the driver's door of the vehicle is opened.
[0015] In a possible implementation, the information for generating the test results corresponding to the test operations is the log file of the target vehicle head unit; and generating the test results corresponding to the test operations according to the information for generating the test results corresponding to the test operations includes:
[0016] Generate the test results corresponding to the test operations according to the information related to the STR mode in the log file, and the information related to the STR mode includes: keywords related to entering the STR mode, keywords related to exiting the STR mode, timestamps corresponding to the keywords related to entering the STR mode, and timestamps corresponding to the keywords related to exiting the STR mode.
[0017] In a possible implementation, the test end condition is that the number of executions of the test operation reaches the test times threshold.
[0018] In a second aspect, an embodiment of the present disclosure provides a test system, which includes: a computer device and a target vehicle head unit;
[0019] The computer device is configured to iteratively execute a test operation until the test end condition is met. The test operation includes: sending a first signal sequence to the target vehicle head unit so that the target vehicle head unit determines that it needs to enter the STR mode according to the first signal sequence; after a preset duration from the moment when sending the first signal sequence to the target vehicle head unit is completed, sending a second signal sequence to the target vehicle head unit so that the target vehicle head unit determines that it needs to exit the STR mode according to the second signal sequence; obtaining information for generating a test result corresponding to the test operation from the target vehicle head unit, and generating a test result corresponding to the test operation according to the information for generating the test result corresponding to the test operation, where the test result indicates the following items: whether the target vehicle head unit enters the STR mode during the execution of the test operation, and whether the target vehicle head unit exits the STR mode during the execution of the test operation.
[0020] In a possible implementation, sending the first signal sequence to the target vehicle head unit includes:
[0021] Sending the corresponding first signal in the first signal sequence to a bus simulation device so that the bus simulation device sends the corresponding first signal to the target vehicle head unit through the bus corresponding to the first signal, where a vehicle component for sending a first type of signal to the corresponding vehicle head unit that belongs to the corresponding first signal sends the first type of signal to the corresponding vehicle head unit through the bus corresponding to the first signal; and sending the second signal sequence to the target vehicle head unit includes: sending the corresponding second signal in the second signal sequence to the bus simulation device so that the bus simulation device sends the corresponding second signal to the target vehicle head unit through the bus corresponding to the second signal, where a vehicle component for sending a second type of signal to the corresponding vehicle head unit that belongs to the corresponding second signal sends the second type of signal to the corresponding vehicle head unit through the bus corresponding to the second signal.
[0022] In a possible implementation, the computer device is further configured to determine the STR function usage success rate of the target vehicle head unit according to the test results corresponding to multiple test operations, where the STR function usage success rate is the ratio of the number of test operations with the corresponding test results marked as successful to the number of executions of the test operation, where the target vehicle head unit enters the STR mode and exits the STR mode during the execution of the test operation with the corresponding test results marked as successful.
[0023] In a possible implementation, the first signal sequence includes: a signal indicating the remaining power of the vehicle greater than the power threshold, a signal indicating the external temperature of the vehicle greater than the temperature threshold, a signal indicating that the gear of the vehicle is in the parking gear, a signal indicating that each door of the vehicle is closed for each door of the vehicle, a signal indicating that each door of the vehicle is locked for each door of the vehicle, and a signal indicating that the vehicle is locked. The second signal sequence includes: a signal indicating that the vehicle is unlocked, and a signal indicating that the driver's door of the vehicle is opened.
[0024] In a possible implementation, the information for generating the test result corresponding to the test operation is the log file of the target vehicle head unit; and generating the test result corresponding to the test operation according to the information for generating the test result corresponding to the test operation includes: generating the test result corresponding to the test operation according to the information related to the STR mode in the log file, and the information related to the STR mode includes: keywords related to entering the STR mode, keywords related to exiting the STR mode, timestamps corresponding to the keywords related to entering the STR mode, and timestamps corresponding to the keywords related to exiting the STR mode.
[0025] In a possible implementation, the test end condition is that the number of executions of the test operation reaches the test times threshold.
[0026] In a third aspect, an embodiment of the present disclosure provides a computer device, including: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method according to the first aspect or any corresponding implementation manner thereof.
[0027] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the method according to the first aspect or any corresponding implementation manner thereof.
[0028] In a fifth aspect, the present invention provides a computer program product, including computer instructions, and the computer instructions are used to cause a computer to execute the method according to the first aspect or any corresponding implementation manner thereof.
[0029] The testing method provided by the embodiments of the present disclosure, on the one hand, enables a computer device for executing the testing method provided by the embodiments of the present disclosure to automatically and iteratively execute testing operations, obtaining the test results corresponding to each of the multiple testing operations. This eliminates the need for a large number of testing engineers to perform testing actions, saving testing costs. Moreover, it is not necessary for the entire vehicle to participate in the testing, saving testing resources. On the other hand, it avoids the situation where the accuracy of the test results decreases due to incorrect testing actions performed by the personnel participating in the testing, enhancing the accuracy of the testing. It can perform testing continuously, accelerating the speed of obtaining test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] To more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0031] Figure 1 is a schematic diagram of an example of the testing system provided by the embodiments of the present disclosure;
[0032] Figure 2 is a schematic diagram of the principle of the testing method provided by the embodiments of the present disclosure;
[0033] Figure 3 is a flowchart of the testing method provided by the embodiments of the present disclosure;
[0034] Figure 4 is a flowchart of another testing method provided by the embodiments of the present disclosure;
[0035] Figure 5 is a flowchart of an example of performing a single testing operation;
[0036] Figure 6 is a schematic diagram of the structure of the computer device provided by the embodiments of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present disclosure with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all, of the embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present disclosure.
[0038] Reference Figure 1, which shows a schematic diagram of an example of the test system provided by the embodiments of the present disclosure.
[0039] The test system includes: a computer device and a target vehicle head unit. The computer device is used to execute the test method provided by the embodiments of the present disclosure. The target vehicle head unit can be any vehicle head unit of a model that needs to be tested to which the test system provided by the embodiments of the present disclosure can be applied. The computer device is communicatively connected to the target vehicle head unit through a USB bus. Optionally, the test system includes: a bus simulation device. The computer device is communicatively connected to the bus simulation device through a USB bus. The bus simulation device is communicatively connected to the target vehicle head unit through a FlexRay (abbreviated as FR) bus or a Controller Area Network (abbreviated as CAN) bus.
[0040] It should be noted that Figure 1 the bus shown in for communicatively connecting the corresponding two devices is exemplary, and the bus for communicatively connecting the corresponding two devices can be any bus that meets the test requirements. For example, the computer device can be communicatively connected to the target vehicle head unit through a CAN bus.
[0041] Refer to Figure 2 , which shows a schematic diagram of the principle of the test method provided by the embodiments of the present disclosure.
[0042] During the execution of a test operation, the computer device for executing the test method provided by the embodiments of the present disclosure sends a first signal sequence to the target vehicle head unit. During the execution of a test operation, wait for a preset duration from the moment when sending the first signal sequence to the target vehicle head unit is completed. After waiting for the preset duration during the execution of a test operation, the computer device for executing the test method provided by the embodiments of the present disclosure sends a second signal sequence to the target vehicle head unit. Determine whether the target vehicle head unit enters the STR mode and whether the target vehicle head unit exits the STR mode during the execution of a test operation, and obtain the test result corresponding to this test operation.
[0043] For a test operation, if the test result corresponding to this test operation indicates that the target vehicle head unit does not enter the STR mode during the execution of this test operation, the reason why the target vehicle head unit does not enter the STR mode during the execution of this test operation can be analyzed. For a test operation, if the test result corresponding to this test operation indicates that the target vehicle head unit does not exit the STR mode during the execution of this test operation, the reason why the target vehicle head unit does not exit the STR mode during the execution of this test operation can be analyzed.
[0044] Refer to Figure 3 , which shows a schematic flow diagram of the test method provided by the embodiments of the present disclosure.
[0045] In step S301, the test operation is iteratively performed until the test end condition is met. That is, before the test end condition is met, the test operation is iteratively performed. For example, the test end condition is that the computer device executing the test method provided by the embodiments of the present disclosure receives an instruction sent by the device used by the vehicle engineer to stop executing the test operation, or the elapsed time since the moment when the first executed test operation starts reaches the cumulative test duration set by the vehicle engineer.
[0046] In a possible implementation manner, the test end condition is that the number of executions of the test operation reaches the test times threshold. That is, the test end condition is that the tests of the test times threshold are completed.
[0047] The number of executions of the test operation is denoted as N. Before the test end condition is met, the test operations in the 1st test operation, 2nd test operation... Nth test operation are sequentially executed. The 1st executed test operation is the 1st test operation, and the last executed test operation is the Nth test operation.
[0048] It should be noted that the 1st test operation can also be called the 1st test operation, the 2nd test operation can also be called the 2nd test operation, and the Nth test operation can be called the Nth test operation.
[0049] The tth test operation includes: step S3011 - step S3013. Wherein, the tth test operation can be any test operation.
[0050] In step S3011, a first signal sequence is sent to the target vehicle head unit so that the target vehicle head unit determines that the target vehicle head unit needs to enter the STR mode according to the first signal sequence.
[0051] In step S3011, when the first signal sequence includes multiple first signals, sending the first signal sequence to the target vehicle head unit may include: sequentially sending the first signals in the first signal sequence in the order from the front to the back of the positions of the first signals in the first signal sequence. During the process of sending the first signal sequence to the target vehicle head unit, the 1st sent first signal is the 1st first signal in the first signal sequence, and the last sent first signal is the last first signal in the first signal sequence.
[0052] Once the target in-vehicle device determines that it needs to enter the STR mode, it will trigger the target in-vehicle device to execute an operation for making the target in-vehicle device enter the STR mode. When the operation for making the target in-vehicle device enter the STR mode is successfully executed, the target in-vehicle device will enter the STR mode. During the time period from the moment when the target in-vehicle device enters the STR mode to the moment when the target in-vehicle device exits the STR mode, the target in-vehicle device is in the STR mode. When the target in-vehicle device is in the STR mode, the relevant data of the target in-vehicle device is saved in the memory and the target in-vehicle device is in a suspended state. When the operation for making the target in-vehicle device enter the STR mode fails to be executed, the target in-vehicle device will not enter the STR mode.
[0053] It should be noted that the target in-vehicle device entering the STR mode may mean that the mode of the target in-vehicle device switches from the normal mode to the STR mode. The failure of the operation for making the target in-vehicle device enter the STR mode executed during the k-th test operation may be caused by an abnormal execution of the code of the operation for making the target in-vehicle device enter the STR mode. The failure of the operation for making the target in-vehicle device enter the STR mode executed during the k-th test operation may also be caused by one of the following reasons: the target in-vehicle device did not enter the STR mode and did not exit the STR mode during the (k - 1)-th test operation, or the target in-vehicle device entered the STR mode and did not exit the STR mode during the (k - 1)-th test operation.
[0054] Each first signal in the first signal sequence respectively corresponds to a different condition item in the conditions for the target in-vehicle device to enter the STR mode.
[0055] When the target in-vehicle device determines that the conditions for the target in-vehicle device to enter the STR mode are met, the target in-vehicle device determines that it needs to enter the STR mode.
[0056] Among them, when each condition item in the conditions for determining that the target in-vehicle device needs to enter the STR mode is met, it can be determined that the conditions for the target in-vehicle device to enter the STR mode are met.
[0057] For a first signal in the first signal sequence, this first signal is used to determine whether the corresponding condition item is met.
[0058] As an example, the conditions for the target in-vehicle unit to enter the STR mode include the following condition items: the gear of the vehicle is in the parking gear, i.e., the P gear, each door of the vehicle is locked, and the vehicle is locked. The first signal sequence includes: a signal indicating that the gear of the vehicle is in the P gear, a signal indicating that each door of the vehicle is locked, and a signal indicating that the vehicle is locked. The in-vehicle unit determines that the condition item that the gear of the vehicle is in the P gear is met based on the signal indicating that the gear of the vehicle is in the P gear. The in-vehicle unit determines that the condition item that each door of the vehicle is locked is met based on the signal indicating that each door of the vehicle is locked. The target in-vehicle unit determines that the condition item that the vehicle is locked is met based on the signal indicating that the vehicle is locked. When the target in-vehicle unit determines that the condition items that the gear of the vehicle is in the P gear, each door of the vehicle is locked, and the vehicle is locked are all met, the target in-vehicle unit determines that the condition for the target in-vehicle unit to enter the STR mode is met, and determines that the target in-vehicle unit needs to enter the STR mode.
[0059] It should be noted that in-vehicle units provided by different manufacturers may have different conditions for the target in-vehicle unit to enter the STR mode.
[0060] In a possible implementation, for a first signal in a first signal sequence, the computer device for executing the test method provided in the embodiments of the present disclosure sends the first signal to the target in-vehicle unit through the bus corresponding to the first signal. Among them, when a vehicle component for sending a first type of signal to a corresponding in-vehicle unit sends a first type of signal to the corresponding in-vehicle unit, it sends the first type of signal to the corresponding in-vehicle unit through the bus corresponding to the corresponding first signal. The corresponding in-vehicle unit is installed on the corresponding vehicle, and the vehicle component for sending a first type of signal to the corresponding in-vehicle unit is a component of the corresponding vehicle.
[0061] As an example, for a first signal, the bus corresponding to the first signal is a CAN bus. When the gateway on the corresponding vehicle sends a first type of signal to the corresponding in-vehicle unit on the corresponding vehicle, it sends the first type of signal to the corresponding in-vehicle unit through the CAN bus. The computer device for executing the test method provided in the embodiments of the present disclosure sends the first signal to the target in-vehicle unit through the CAN bus.
[0062] As another example, for a first signal, the corresponding bus of the first signal is a CAN bus. When an electronic control unit (ECU) on a corresponding vehicle sends a signal of a first type to which the first signal belongs to a corresponding in-vehicle unit on the corresponding vehicle, the ECU sends the signal of the first type to which the first signal belongs to the corresponding in-vehicle unit through the CAN bus. The computer device for executing the test method provided by the embodiments of the present disclosure sends the first signal to the target in-vehicle unit through the CAN bus.
[0063] In step S3012, after a preset time duration has elapsed since the moment when the sending of the first signal sequence to the target in-vehicle unit is completed, a second signal sequence is sent to the target in-vehicle unit, so that the target in-vehicle unit determines that the target in-vehicle unit needs to exit the STR mode according to the second signal sequence.
[0064] The moment when the sending of the first signal sequence to the target in-vehicle unit is completed may be: the sending moment of the last first signal sent to the target in-vehicle unit in the first signal sequence.
[0065] In step S3012, when the second signal sequence includes multiple second signals, sending the second signal sequence to the target in-vehicle unit may include: sequentially sending the second signals in the second signal sequence in the order from the front to the back according to the positions of the second signals in the second signal sequence. During the process of sending the second signal sequence to the target in-vehicle unit, the first second signal sent is the first second signal in the second signal sequence, and the last second signal sent is the last second signal in the second signal sequence.
[0066] Once the target in-vehicle unit determines that the target in-vehicle unit needs to exit the STR mode, it will trigger the target in-vehicle unit to execute an operation for exiting the STR mode. When the operation for exiting the STR mode is successfully executed, the target in-vehicle unit exits the STR mode. The operation for exiting the STR mode includes: the target in-vehicle unit starts the target in-vehicle unit by using relevant data of the target in-vehicle unit stored in the memory, so that the target in-vehicle unit is converted from a suspended state to a started state.
[0067] It should be noted that the target in-vehicle unit exiting the STR mode may mean that: the mode of the target in-vehicle unit is switched from the STR mode to the normal mode. The failure of the operation for exiting the STR mode executed during the kth test operation may be caused by an abnormal execution of the code of the operation for exiting the STR mode. The failure of the operation for exiting the STR mode executed during the kth test operation may also be caused by the fact that the target in-vehicle unit does not enter the STR mode during the kth test operation.
[0068] Each second signal in the second signal sequence respectively corresponds to different condition items for the target in-vehicle unit to exit the STR mode.
[0069] When the target in-vehicle device determines that it meets the requirement for the target in-vehicle device to exit the STR mode, the target in-vehicle device determines that it needs to exit the STR mode.
[0070] Among them, when each condition item in the conditions for determining that the target in-vehicle device needs to exit the STR mode is met, it can be determined that the requirement for the target in-vehicle device to exit the STR mode is met.
[0071] For a second signal in the second signal sequence, the second signal is used to determine whether the condition item corresponding to the second signal is met.
[0072] As an example, a second signal in the second signal sequence is a signal indicating that the vehicle is unlocked, and the conditions for exiting the STR mode include: the condition item that the vehicle is unlocked. The signal indicating that the vehicle is unlocked corresponds to the condition item that the vehicle is unlocked. The target in-vehicle device determines that the condition item that the vehicle is unlocked in the conditions for exiting the STR mode is met according to the signal indicating that the vehicle is unlocked.
[0073] It should be noted that in-vehicle devices provided by different manufacturers may have different conditions for the in-vehicle device to exit the STR mode.
[0074] In step S3012, after a preset time period has elapsed since the moment when the first signal sequence is sent to the target in-vehicle device, the second signal sequence is sent to the target in-vehicle device because it is considered that: it takes a certain time for the target in-vehicle device to execute the operation for making the target in-vehicle device enter the STR mode. In addition, it is also considered that: generally, the user of the vehicle will perform the operation for triggering the unlocking of the vehicle after a certain time period from the moment when the vehicle is locked. Therefore, after the first signal sequence is sent to the target in-vehicle device, the second signal sequence is not immediately sent to the target in-vehicle device, but after a preset time period has elapsed since the moment when the first signal sequence is sent to the target in-vehicle device, the second signal sequence is sent to the target in-vehicle device, so as to avoid the situation that the operation for making the target in-vehicle device enter the STR mode has not been completed and the operation for exiting the STR mode starts to be executed, and to ensure the accuracy of the test results.
[0075] In step S3013, information for generating the test result corresponding to the test operation is obtained from the target in-vehicle device, and the test result corresponding to the test operation is generated according to the information for generating the test result corresponding to the test operation.
[0076] For a test operation, the test result corresponding to the test operation indicates the following items: whether the target in-vehicle device enters the STR mode during the execution of the test operation, and whether the target in-vehicle device exits the STR mode during the execution of the test operation.
[0077] For a test operation, if the operation for causing the target in-vehicle unit to enter the STR mode during the execution of this test operation is successfully executed, the target in-vehicle unit can be caused to enter the STR mode during the execution of this test operation. The target in-vehicle unit can send a success instruction for entering the STR mode to the computer device for executing the test method of the embodiments of the present disclosure. The success instruction for entering the STR mode indicates that the target in-vehicle unit enters the STR mode during the execution of this test operation. The computer device for executing the test method of the embodiments of the present disclosure receives the success instruction for entering the STR mode and determines that the target in-vehicle unit enters the STR mode during the execution of this test operation.
[0078] For a test operation, if the operation for causing the target in-vehicle unit to enter the STR mode during the execution of this test operation fails, the target in-vehicle unit does not enter the STR mode during the execution of this test operation. The target in-vehicle unit can send a failure instruction for entering the STR mode to the computer device for executing the test method of the embodiments of the present disclosure. The failure instruction for entering the STR mode indicates that the target in-vehicle unit does not enter the STR mode during the execution of this test operation. The computer device for executing the test method of the embodiments of the present disclosure receives the failure instruction for entering the STR mode and determines that the target in-vehicle unit does not enter the STR mode during the execution of this test operation.
[0079] For a test operation, if the operation for causing the target in-vehicle unit to exit the STR mode during the execution of this test operation is successfully executed, the target in-vehicle unit can be caused to exit the STR mode during the execution of this test operation. The target in-vehicle unit can send a success instruction for exiting the STR mode to the computer device for executing the test method of the embodiments of the present disclosure. The success instruction for exiting the STR mode indicates that the target in-vehicle unit exits the STR mode during the execution of this test operation. The computer device for executing the test method of the embodiments of the present disclosure receives the success instruction for exiting the STR mode and determines that the target in-vehicle unit exits the STR mode during the execution of this test operation.
[0080] For a test operation, if the operation for causing the target in-vehicle unit to exit the STR mode during the execution of this test operation fails, the target in-vehicle unit does not exit the STR mode during the execution of this test operation. The target in-vehicle unit can send a failure instruction for exiting the STR mode to the computer device for executing the test method of the embodiments of the present disclosure. The failure instruction for exiting the STR mode indicates that the target in-vehicle unit does not exit the STR mode during the execution of this test operation. The computer device for executing the test method of the embodiments of the present disclosure receives the failure instruction for exiting the STR mode and determines that the target in-vehicle unit does not exit the STR mode during the execution of this test operation.
[0081] Reference Figure 4 , which shows a schematic flow chart of another test method provided by an embodiment of the present disclosure.
[0082] In step S401, the test operation is iteratively performed until the test end condition is met.
[0083] In step S4011, a first signal sequence is sent to the target vehicle head unit so that the target vehicle head unit determines that the target vehicle head unit needs to enter the STR mode according to the first signal sequence.
[0084] In step S4011, sending the first signal sequence to the target vehicle head unit includes: sending the corresponding first signal in the first signal sequence to the bus simulation device so that the bus simulation device sends the corresponding first signal to the target vehicle head unit through the bus corresponding to the corresponding first signal, where the vehicle component for sending the first type of signal to the corresponding vehicle head unit sends the first type of signal to the corresponding vehicle head unit through the bus corresponding to the corresponding first signal when sending the first type of signal to the corresponding vehicle head unit.
[0085] For a first signal in the first signal sequence, when sending the first signal to the target vehicle head unit, the computer device for performing the test method provided by the embodiment of the present disclosure sends the first signal to the bus simulation device so that the bus simulation device sends the first signal to the target vehicle head unit through the bus corresponding to the first signal, where the vehicle component for sending the first type of signal to the corresponding vehicle head unit sends the first type of signal to the corresponding vehicle head unit through the bus corresponding to the first signal when sending the first type of signal to the corresponding vehicle head unit.
[0086] Step S4011 can make the process of sending the corresponding first signal to the target vehicle head unit through the bus simulation device during the execution of the test operation equivalent to the process of sending the corresponding first signal to the target vehicle head unit or other vehicle head units of the same vehicle head unit model that can be installed in the vehicle during the actual operation of the vehicle, which is equivalent to testing whether the target vehicle head unit or the other vehicle head units enter the STR during the actual operation of the vehicle where the target vehicle head unit or the other vehicle head units can be installed, improving the test effect.
[0087] In a possible implementation, the first signal sequence includes: a signal indicating the remaining vehicle power greater than the power threshold, a signal indicating the external vehicle temperature greater than the temperature threshold, a signal indicating that the vehicle gear is in the parking gear, a signal indicating that each door of the vehicle is closed for each door of the vehicle, a signal indicating that each door of the vehicle is locked for each door of the vehicle, and a signal indicating that the vehicle is locked.
[0088] Based on the signal indicating that the remaining vehicle power is greater than the power threshold, the target in-vehicle computer can determine that the condition item of the remaining vehicle power being greater than the power threshold in the conditions for the target in-vehicle computer to enter the STR mode is met. Based on the signal indicating that the external vehicle temperature is greater than the temperature threshold, the target in-vehicle computer can determine that the condition item of the external vehicle temperature being greater than the temperature threshold in the conditions for the target in-vehicle computer to enter the STR mode is met. Based on the signal indicating that the vehicle gear is in the parking gear, the target in-vehicle computer can determine that the condition item of the vehicle gear being in the parking gear in the conditions for the target in-vehicle computer to enter the STR mode is met. Based on the signal indicating that each door of the vehicle is closed, the target in-vehicle computer can determine that the condition item of each door of the vehicle being indicated as closed in the conditions for the target in-vehicle computer to enter the STR mode is met. Based on the signal indicating that each door of the vehicle is locked, the target in-vehicle computer can determine that the condition item of each door being indicated as locked in the conditions for the target in-vehicle computer to enter the STR mode is met. Based on the signal indicating that the vehicle is locked, the target in-vehicle computer determines that the condition item of the vehicle being locked in the conditions for the target in-vehicle computer to enter the STR mode is met.
[0089] In the embodiments of the present disclosure, the first signal sequence includes the signal indicating that the remaining vehicle power is greater than the power threshold and the signal indicating that the external vehicle temperature is greater than the temperature threshold. Considering that for some vehicle models, the vehicle can enter the STR mode only when the remaining vehicle power is greater than the power threshold and the external vehicle temperature is greater than the temperature threshold, and for some vehicle models, the conditions for the target in-vehicle computer to enter the STR mode consider entering the STR mode when the remaining vehicle power is small, i.e., not greater than the power threshold, and / or the external vehicle temperature is low, i.e., not greater than the temperature threshold, which may lead to some adverse situations. In the embodiments of the present disclosure, the first signal sequence including the signal indicating that the remaining vehicle power is greater than the power threshold and the signal indicating that the external vehicle temperature is greater than the temperature threshold enables the test method provided by the embodiments of the present disclosure to be applicable to the vehicles of these models, improving the adaptability of the test method provided by the embodiments of the present disclosure.
[0090] Step S4012: After a preset duration from the moment when the first signal sequence is sent to the target in-vehicle computer, send a second signal sequence to the target in-vehicle computer so that the target in-vehicle computer determines that it needs to exit the STR mode according to the second signal sequence.
[0091] Each second signal in the second signal sequence respectively corresponds to different condition items for the target in-vehicle computer to exit the STR mode.
[0092] For a second signal in the second signal sequence, the second signal is used to determine whether the condition item corresponding to the second signal is met.
[0093] In a possible implementation, the conditions for the target in-vehicle unit to exit the STR mode include: the condition that the vehicle is unlocked and the condition that the driver's door of the vehicle is opened. The second signal sequence may include: a signal indicating that the vehicle is unlocked and a signal indicating that the driver's door of the vehicle is opened.
[0094] Among them, the signal indicating that the vehicle is unlocked corresponds to the condition that the vehicle is unlocked, and the signal indicating that the driver's door of the vehicle is opened corresponds to the condition that the driver's door of the vehicle is opened.
[0095] In step S4012, the corresponding second signal in the second signal sequence can be sent to the bus simulation device, so that the bus simulation device sends the corresponding second signal to the target in-vehicle unit through the bus corresponding to the corresponding second signal. Among them, when the vehicle component that sends the second type of signal to the corresponding in-vehicle unit sends the second type of signal to the corresponding in-vehicle unit, it sends the second type of signal to the corresponding in-vehicle unit through the bus corresponding to the corresponding second signal.
[0096] In step S4013, obtain the information for generating the test result corresponding to the test operation from the target in-vehicle unit, and generate the test result corresponding to the test operation according to the information for generating the test result corresponding to the test operation.
[0097] In step S4013, the test result corresponding to the test operation can be generated according to the information related to the STR mode in the log file of the target in-vehicle unit. The information related to the STR mode includes: keywords related to entering the STR mode, keywords related to exiting the STR mode, timestamps corresponding to the keywords related to entering the STR mode, and timestamps corresponding to the keywords related to exiting the STR mode.
[0098] For a keyword related to entering the STR mode, the keyword related to entering the STR mode may indicate an event of entering the STR mode or an event of an error related to entering the STR mode. When the keyword related to entering the STR mode indicates an event of entering the STR mode, the timestamp corresponding to the keyword related to entering the STR mode represents the occurrence time of the event of entering the STR mode, that is, the time of entering the STR mode. When the keyword related to entering the STR mode indicates an event of an error related to entering the STR mode, the timestamp corresponding to the keyword related to entering the STR mode represents the occurrence time of the event of the error related to entering the STR mode.
[0099] For a keyword related to exiting the STR mode, the keyword related to exiting the STR mode may indicate an event of exiting the STR mode or an event of an error related to exiting the STR mode. When the keyword related to entering the STR mode indicates an event of exiting the STR mode, the timestamp corresponding to the keyword related to exiting the STR mode represents the occurrence time of the event of exiting the STR mode, that is, the time of exiting the STR mode. When the keyword related to exiting the STR mode indicates an event of an error related to exiting the STR mode, the timestamp corresponding to the keyword related to exiting the STR mode represents the occurrence time of the event of the error related to exiting the STR mode.
[0100] In step S4013, for a keyword related to entering the STR mode, based on the timestamp corresponding to the keyword related to entering the STR mode, it can be determined that the event indicated by the keyword related to entering the STR mode occurs during the execution of the i-th test operation. According to the keyword related to entering the STR mode, it can be determined whether the target in-vehicle unit enters the STR mode during the execution of the i-th test operation.
[0101] In step S4013, for a keyword related to exiting the STR mode, based on the timestamp corresponding to the keyword related to exiting the STR mode, it can be determined that the event indicated by the keyword related to exiting the STR mode occurs during the execution of the i-th test operation. According to the keyword related to exiting the STR mode, it can be determined whether the target in-vehicle unit exits the STR mode during the execution of the i-th test operation.
[0102] In step S402, according to the test results corresponding to multiple test operations, the STR function usage success rate of the target in-vehicle unit is determined.
[0103] The STR function usage success rate is the ratio of the number of test operations whose corresponding test results are marked as successful to the number of executions of the test operations. This ratio is: the number of test operations whose corresponding test results are marked as successful divided by the number of executions of the test operations.
[0104] During the execution of the test operation whose corresponding test result is marked as successful, the target in-vehicle unit enters the STR mode and exits the STR mode.
[0105] In the embodiments of the present disclosure, for a test operation, if the target in-vehicle unit enters the STR mode and exits the STR mode during the execution of the test operation, the test result corresponding to the test operation can be marked as successful.
[0106] In step S402, the usage success rate of the STR function of the target vehicle head unit is automatically determined. Thus, the vehicle engineer can evaluate whether the STR function of the target vehicle head unit meets the standard for providing to the user according to the usage success rate of the STR function of the target vehicle head unit. There is no need for the vehicle engineer to determine the usage success rate of the STR function of the target vehicle head unit by himself, which simplifies the operation of the vehicle engineer.
[0107] Reference Figure 5 , which shows a flowchart of an example of performing a test operation.
[0108] In this example, during the execution of a test operation, a signal indicating the remaining vehicle power greater than the power threshold is sent to the target vehicle head unit, so that the target vehicle head unit can determine that the remaining vehicle power is greater than the power threshold in the conditions required for the target vehicle head unit to enter the STR mode according to the signal indicating the remaining vehicle power greater than the power threshold.
[0109] In this example, during the execution of a test operation, after sending a signal indicating the remaining vehicle power greater than the power threshold to the target vehicle head unit, a signal indicating the external vehicle temperature greater than the temperature threshold is sent to the target vehicle head unit. So that the target vehicle head unit can determine that the external vehicle temperature is greater than the temperature threshold in the conditions required for the target vehicle head unit to enter the STR mode according to the signal indicating the external vehicle temperature greater than the temperature threshold.
[0110] In this example, during the execution of a test operation, after sending a signal indicating the external vehicle temperature greater than the temperature threshold to the target vehicle head unit, a signal indicating that the vehicle gear is in the parking gear is sent to the target vehicle head unit, so that the target vehicle head unit can determine that the vehicle gear is in the parking gear in the conditions required for the target vehicle head unit to enter the STR mode according to the signal indicating that the vehicle gear is in the parking gear.
[0111] In this example, during the execution of a test operation, after sending a signal indicating that the vehicle gear is in the parking gear to the target vehicle head unit, a signal indicating that each door of the vehicle is closed is sent to the target vehicle head unit of each door of the vehicle, so that the target vehicle head unit can determine that each door of the vehicle is closed in the conditions required for the target vehicle head unit to enter the STR mode according to the signal indicating that each door of the vehicle is closed.
[0112] In this example, during the execution of a test operation, after sending a signal indicating that each door of the vehicle is closed to the target vehicle head unit of each door of the vehicle, a signal indicating that each door of the vehicle is locked is sent to the target vehicle head unit, so that the target vehicle head unit can determine that each door is locked in the conditions required for the target vehicle head unit to enter the STR mode according to the signal indicating that each door of the vehicle is locked.
[0113] In this example, during one test operation, after sending a signal indicating that each door of the vehicle is locked to the target in-vehicle unit, a signal indicating that the vehicle is locked is sent to the target in-vehicle unit, so that the target in-vehicle unit determines that the condition that the vehicle is locked in the conditions for the target in-vehicle unit to enter the STR mode is satisfied according to the signal indicating that the vehicle is locked.
[0114] In this example, during one test operation, from the moment when a signal indicating that the vehicle is locked is sent to the target in-vehicle unit, a preset duration is waited. After waiting for the preset duration, a signal indicating that the vehicle is unlocked is sent to the target in-vehicle unit. After sending the signal indicating that the vehicle is unlocked to the target in-vehicle unit, a signal indicating that the driver's door of the vehicle is opened is sent to the target in-vehicle unit.
[0115] In this example, during one test operation, it is determined whether the target in-vehicle unit enters the STR mode and whether the target in-vehicle unit exits the STR mode. According to whether the target in-vehicle unit enters the STR mode and whether the target in-vehicle unit exits the STR mode, a test result corresponding to this test operation is generated.
[0116] Embodiments of the present disclosure provide a test system. The test system is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0117] The test system includes: a computer device and a target in-vehicle unit;
[0118] The computer device is configured to iteratively execute a test operation until a test end condition is satisfied. The test operation includes: sending a first signal sequence to the target in-vehicle unit so that the target in-vehicle unit determines that the target in-vehicle unit needs to enter the STR mode according to the first signal sequence; after a preset duration has elapsed from the moment when sending the first signal sequence to the target in-vehicle unit is completed, sending a second signal sequence to the target in-vehicle unit so that the target in-vehicle unit determines that the target in-vehicle unit needs to exit the STR mode according to the second signal sequence; obtaining information for generating a test result corresponding to the test operation from the target in-vehicle unit, and generating a test result corresponding to the test operation according to the information for generating a test result corresponding to the test operation, where the test result indicates the following items: whether the target in-vehicle unit enters the STR mode during the execution of the test operation and whether the target in-vehicle unit exits the STR mode during the execution of the test operation.
[0119] In a possible implementation manner, sending the first signal sequence to the target in-vehicle unit includes:
[0120] Send the corresponding first signal in the first signal sequence to the bus simulation device, so that the bus simulation device sends the corresponding first signal to the target vehicle head unit through the bus corresponding to the first signal. Among them, when a vehicle component that is used to send a first type of signal to the corresponding vehicle head unit sends the first type of signal to the corresponding vehicle head unit, it sends the first type of signal to the corresponding vehicle head unit through the bus corresponding to the first signal; and sending the second signal sequence to the target vehicle head unit includes: sending the corresponding second signal in the second signal sequence to the bus simulation device, so that the bus simulation device sends the corresponding second signal to the target vehicle head unit through the bus corresponding to the second signal. Among them, when a vehicle component that is used to send a second type of signal to the corresponding vehicle head unit sends the second type of signal to the corresponding vehicle head unit, it sends the second type of signal to the corresponding vehicle head unit through the bus corresponding to the second signal.
[0121] In a possible implementation, the computer device is further configured to determine the success rate of using the STR function of the target vehicle head unit according to the test results corresponding to multiple test operations. The success rate of using the STR function is the ratio of the number of test operations with the corresponding test results marked as successful to the number of executions of the test operations. Among them, during the execution of the test operations with the corresponding test results marked as successful, the target vehicle head unit enters the STR mode and exits the STR mode.
[0122] In a possible implementation, the first signal sequence includes: a signal indicating the remaining vehicle power greater than the power threshold, a signal indicating the external vehicle temperature greater than the temperature threshold, a signal indicating that the vehicle gear is in the parking gear, a signal indicating that each door of the vehicle is closed for each door of the vehicle, a signal indicating that each door of the vehicle is locked for each door of the vehicle, a signal indicating that the vehicle is locked. The second signal sequence includes: a signal indicating that the vehicle is unlocked, a signal indicating that the driver's door of the vehicle is opened.
[0123] In a possible implementation, the information for generating the test results corresponding to the test operations is the log file of the target vehicle head unit; and generating the test results corresponding to the test operations according to the information for generating the test results corresponding to the test operations includes: generating the test results corresponding to the test operations according to the information related to the STR mode in the log file. The information related to the STR mode includes: keywords related to entering the STR mode, keywords related to exiting the STR mode, timestamps corresponding to the keywords related to entering the STR mode, and timestamps corresponding to the keywords related to exiting the STR mode.
[0124] In a possible implementation, the test end condition is that the number of executions of the test operations reaches the test times threshold.
[0125] In this embodiment, the system is presented in the form of functional units. Here, the unit refers to an ASIC circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0126] The further function descriptions of the above units are the same as those in the corresponding embodiments above, and will not be repeated here.
[0127] Refer to Figure 6 , which shows a schematic structural diagram of a computer device provided by an embodiment of the present disclosure. The computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (such as a server array, a set of blade servers, or a multi-processor system).
[0128] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above programmable logic device can be a complex programmable logic device, a field programmable gate array, a general array logic, or any combination thereof.
[0129] Among them, the memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0130] The memory 20 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the computer device. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 can optionally include a memory remotely set relative to the processor 10, and these remote memories can be connected to the computer device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0131] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid state drive; the memory 20 may further include a combination of the above types of memory.
[0132] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means.
[0133] The input device 30 can receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the computer device, such as touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more mouse buttons, trackball, joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., LED), and a tactile feedback device (e.g., vibration motor), etc. The above display device includes but is not limited to liquid crystal display, light emitting diode, display and plasma display. In some alternative embodiments, the display device may be a touch screen.
[0134] The embodiments of the present disclosure also provide a computer-readable storage medium. The methods according to the embodiments of the present disclosure can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented by downloading via a network and originally stored in a remote storage medium or a non-transitory machine-readable storage medium and will be stored in a local storage medium, so that the methods described herein can be stored in such software processes on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state drive, etc.; further, the storage medium may further include a combination of the above types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor or the hardware, the methods shown in the above embodiments are implemented.
[0135] Part of the embodiments of the present disclosure can be applied as a computer program product, such as computer program instructions. When executed by a computer, through the operations of the computer, the methods and / or technical solutions according to the present invention can be invoked or provided. Those skilled in the art should understand that the forms of existence of computer program instructions in a computer-readable medium include but are not limited to source files, executable files, installation package files, etc. Correspondingly, the ways for a computer to execute computer program instructions include but are not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Herein, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible by the computer.
[0136] Although the embodiments of the present disclosure are described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A testing method, characterized in that: The method comprises: Iteratively execute test operations until the test end condition is met. The test operations include: Sending a first signal sequence to the target vehicle computer, so that the target vehicle computer determines that the target vehicle computer needs to enter the STR mode according to the first signal sequence; After a preset time has passed since the first signal sequence is sent to the target vehicle computer, a second signal sequence is sent to the target vehicle computer, so that the target vehicle computer determines that the target vehicle computer needs to exit the STR mode according to the second signal sequence; Information for generating a test result corresponding to a test operation is obtained from a target vehicle computer, and a test result corresponding to the test operation is generated based on the information for generating a test result corresponding to the test operation, wherein the test result indicates the following items: whether the target vehicle computer enters an STR mode during the execution of the test operation, and whether the target vehicle computer exits the STR mode during the execution of the test operation.
2. The method according to claim 1, characterized in that Sending a first signal sequence to the target vehicle computer includes: The first signal in the first signal sequence is sent to the bus simulation device, so that the bus simulation device sends the first signal to the target vehicle computer through the bus corresponding to the first signal, wherein the vehicle component for sending the first type of signal to the corresponding vehicle computer sends the first type of signal to the corresponding vehicle computer through the bus corresponding to the first signal when sending the first type of signal to the corresponding vehicle computer; and sending the second signal sequence to the target vehicle computer includes: The corresponding second signal in the second signal sequence is sent to the bus simulation device, so that the bus simulation device sends the corresponding second signal to the target vehicle computer through the bus corresponding to the corresponding second signal, wherein the vehicle component used to send the second type of signal to which the corresponding second signal belongs to the corresponding vehicle computer sends the second type of signal to the corresponding vehicle computer through the bus corresponding to the corresponding second signal when sending the second type of signal to the corresponding vehicle computer.
3. The method according to claim 1, characterized in that The method further comprises: Based on the test results corresponding to multiple test operations, the STR function utilization success rate of the target vehicle computer is determined, wherein the STR function utilization success rate is the ratio of the number of test operations whose corresponding test results are marked as successful to the number of executions of the test operations, wherein the target vehicle computer enters the STR mode and the target vehicle computer exits the STR mode during the execution of the test operation whose corresponding test results are marked as successful.
4. The method according to claim 1, characterized in that: The first signal sequence includes: a signal indicating that the remaining power of the vehicle is greater than a power threshold, a signal indicating that the external temperature of the vehicle is greater than a temperature threshold, a signal indicating that the gear position of the vehicle is a parking gear, a signal for each door of the vehicle indicating that the door is closed, a signal for each door of the vehicle indicating that the door is locked, and a signal indicating that the vehicle is locked. The second signal sequence includes: a signal indicating that the vehicle is unlocked, and a signal indicating that the main driver's door of the vehicle is opened.
5. The method according to claim 1, characterized in that The information used to generate the test results corresponding to the test operation is a log file of the target vehicle computer; And generating the test result corresponding to the test operation according to the information used to generate the test result corresponding to the test operation includes: A test result corresponding to the test operation is generated based on the information related to the STR mode in the log file, wherein the information related to the STR mode includes: a keyword related to entering the STR mode, a keyword related to exiting the STR mode, a timestamp corresponding to the keyword related to entering the STR mode, and a timestamp corresponding to the keyword related to exiting the STR mode.
6. The method according to any one of claims 1 to 5, characterized in that The test ends when the number of test operations reaches the test number threshold.
7. A testing system, characterized in that: The system comprises: a computer device and a target vehicle computer; A computer device is used to iteratively execute a test operation until a test end condition is met, the test operation comprising: sending a first signal sequence to a target vehicle computer, so that the target vehicle computer determines that the target vehicle computer needs to enter an STR mode according to the first signal sequence; sending a second signal sequence to the target vehicle computer after a preset time has passed since the moment when the first signal sequence is sent to the target vehicle computer, so that the target vehicle computer determines that the target vehicle computer needs to exit the STR mode according to the second signal sequence; obtaining information for generating a test result corresponding to the test operation from the target vehicle computer, and generating a test result corresponding to the test operation according to the information for generating the test result corresponding to the test operation, wherein the test result indicates the following items: whether the target vehicle computer enters the STR mode during the execution of the test operation, and whether the target vehicle computer exits the STR mode during the execution of the test operation.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 6.