Vehicle simulation test device and method, electronic equipment, storage medium and vehicle
By designing vehicle simulation testing devices, the user operation of simulated automobile central control in different network environments solves the problem of traditional Monkey pressure testing that cannot fully verify the stability of the car center control, and achieves more comprehensive and accurate test results.
Patent Information
- Application Number
- CN202411379307.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-24
AI Technical Summary
Traditional Monkey stress testing only focuses on user behavior and cannot effectively simulate the stability of automotive central control in different network environments, resulting in incomplete tests, inadequate verification, and inaccurate results.
Design a vehicle simulation test device, including scene simulation thread modules, Monkey execution thread modules, and control modules, which can simulate different network environments under real car conditions, and randomly simulate user operations in these environments to generate simulation test reports and logs Essence
By simulating user behavior and network environment changes from the dual perspectives, the verification adequacy, test comprehensiveness and result accuracy of the automotive central control simulation test are improved, and the shortcomings of traditional test methods are overcome.
Smart Images

Figure CN119356282A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of vehicle simulation testing, and in particular, to a vehicle simulation testing device, method, electronic equipment, storage medium and vehicle. Background Art
[0002] As the number of cars increases, people are increasingly dependent on cars as an efficient means of transportation for daily travel. In addition to paying more attention to hardware conditions such as car power and appearance, users are also paying more and more attention to the stability of the car's central control. At present, central control manufacturers generally use Monkey stress testing to verify the stability of the car's central control.
[0003] However, traditional Monkey stress testing only focuses on user behavior, for example, most of them use ADB commands to simulate user clicks, slides, simulated key presses and other events. But for the car's central control, it is far from enough to only focus on user behavior, because the car's mobility is strong, so the changes in the car's external environment are relatively complex, and the migration of the external environment will cause changes in the network environment of the car's central control. Therefore, the traditional Monkey stress testing solution only focuses on a single operating scenario of user behavior and is difficult to meet the multi-dimensional testing requirements of the stability of the car's central control. This leads to the traditional Monkey stress test at least unable to fully verify the stability of the car's central control in different network environments, at least there are problems such as insufficient verification, incomplete testing, and inaccurate results.
[0004] It should be noted that the aforementioned ADB is the abbreviation of Android Debug Bridge, which is translated as Android Debug Bridge. Summary of the invention
[0005] The embodiments of the present invention provide a vehicle simulation test device, method, electronic device, storage medium and vehicle, so as to at least solve the problem that the existing Monkey stress test for automobile testing cannot simulate the changes in the network environment of the automobile central control, resulting in incomplete automobile central control application testing, incomplete verification and inaccurate results, thereby improving the verification adequacy, test comprehensiveness and result accuracy of vehicle control simulation testing.
[0006] In a first aspect, an embodiment of the present invention provides a vehicle simulation test device, wherein the vehicle simulation test device is connected to a vehicle to be tested; the vehicle simulation test device at least includes a scenario simulation thread module, a Monkey execution thread module and a control module;
[0007] The scenario simulation thread module is connected to the control module and is at least used to receive the scenario simulation instruction issued by the control module during the simulation test, so as to simulate at least one network environment under the actual vehicle working condition according to the scenario simulation instruction;
[0008] The Monkey execution thread module is connected to the control module and is at least used to receive the Monkey test instruction issued by the control module during the simulation test, so as to control the vehicle computer to be tested to perform random simulation of user operations in at least one network environment under the actual vehicle working condition according to the Monkey test instruction until the simulation test is completed;
[0009] The control module is at least used to generate a simulation test report and save a simulation test log according to the random simulation actions and action execution results performed by the vehicle computer under test on user operations in each network environment under the actual vehicle working condition during the simulation test.
[0010] Optionally, the scenario simulation thread module is at least specifically used to parse out network environment allocation parameters according to the scenario simulation instructions, and then simulate at least one of the network environments under the actual vehicle working conditions based on the network environment allocation parameters.
[0011] Optionally, the scenario simulation thread module simulates at least one of the network environments under the actual vehicle working condition based on the network environment allocation parameters, including at least:
[0012] The scenario simulation thread module simulates at least one of the network environments under the actual vehicle operating conditions by adjusting the network uplink bandwidth, network downlink bandwidth, network uplink packet loss rate, network downlink packet loss rate, network uplink delay, network downlink delay and / or domain name resolution server delay.
[0013] Optionally, the network environment under the actual vehicle operating condition includes at least one of: an intermittent network environment under an actual vehicle high-speed driving condition, a short-term network disconnection environment under an actual vehicle tunnel driving condition, a 2G or 3G network environment under an actual vehicle operating condition in the field, and a weak network environment under an actual vehicle operating condition in an underground garage.
[0014] In a second aspect, an embodiment of the present invention further provides a vehicle simulation test method, which is performed by using the vehicle simulation test device described in the first aspect, and the method at least includes:
[0015] S1. During the simulation test, the scenario simulation thread module receives a scenario simulation instruction issued by the control module to simulate at least one network environment under the actual vehicle working condition according to the scenario simulation instruction;
[0016] S2, during the simulation test, receiving the Monkey test instruction issued by the control module through the Monkey execution thread module, so as to control the vehicle computer to be tested to perform random simulation of user operations in at least one network environment under the actual vehicle working condition according to the Monkey test instruction, until the simulation test is completed;
[0017] S3. Generate a simulation test report and save a simulation test log through the control module according to the random simulation actions and action execution results performed by the vehicle computer to be tested on user operations in each network environment under the actual vehicle working condition during the simulation test.
[0018] Optionally, step S1 at least includes:
[0019] S11. Parsing network environment adjustment parameters according to the scenario simulation instructions through the scenario simulation thread module, and then simulating at least one of the network environments under the actual vehicle working condition based on the network environment adjustment parameters.
[0020] Optionally, the network environment under the actual vehicle operating condition includes at least one of: an intermittent network environment under an actual vehicle high-speed driving condition, a short-term network disconnection environment under an actual vehicle tunnel driving condition, a 2G or 3G network environment under an actual vehicle operating condition in the field, and a weak network environment under an actual vehicle operating condition in an underground garage.
[0021] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the vehicle simulation test method described in the second aspect are performed.
[0022] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle simulation test method described in the second aspect.
[0023] In a fifth aspect, an embodiment of the present invention further provides a vehicle, which is integrated with at least the vehicle simulation test device as described in the first aspect, so as to perform random simulation tests on user operations of the vehicle in at least one network environment under the actual vehicle operating conditions.
[0024] The embodiment of the present invention provides a vehicle simulation test device, method, electronic device, storage medium and vehicle. First, the scenario simulation thread module receives the scenario simulation instruction issued by the control module during the simulation test, so as to simulate at least one network environment under the actual vehicle working condition according to the scenario simulation instruction; then, the Monkey execution thread module receives the Monkey test instruction issued by the control module during the simulation test, so as to control the vehicle machine to be tested to perform random simulation of user operations in at least one network environment under the actual vehicle working condition according to the Monkey test instruction until the simulation test is completed; finally, the control module generates a simulation test report and saves the simulation test log according to the random simulation actions and action execution results of the vehicle machine to be tested in each network environment under the actual vehicle working condition during the simulation test.
[0025] In view of this, the embodiment of the present invention can simulate at least one network environment under the actual vehicle working condition through the scene simulation field module during the simulation test of the automobile central control, and then use the Monkey execution thread module to control the vehicle machine to be tested to randomly simulate user operations in the corresponding network environment under different actual vehicle working conditions. In other words, the embodiment of the present invention measures the stability of the vehicle machine to be tested from the dual perspectives of user behavior and network environment changes, which is closer to the actual vehicle operation scenario, and overcomes the existing Monkey stress test for automobile testing, which only focuses on the single operation scenario of user behavior, but is difficult to meet the multi-dimensional testing requirements of the stability of the automobile central control and has problems such as insufficient verification, incomplete testing, and inaccurate results, thereby improving the verification adequacy, comprehensiveness of testing, and accuracy of results of the vehicle control simulation test. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 is a structural schematic diagram of a vehicle simulation test device provided by an embodiment of the present invention;
[0028] Figure 2 is a flow chart of a vehicle simulation test method provided by an embodiment of the present invention;
[0029] Figure 3 is a flow chart of another vehicle simulation test method provided by an embodiment of the present invention;
[0030] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0032] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0033] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0034] It should be understood that although the terms first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0035] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0036] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0037] It should be particularly noted that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.
[0038] Figure 1 Schematic diagram of a vehicle simulation test device provided by an embodiment of the present invention. This embodiment can be applied to any type of vehicle control simulation test scenario, such as automobiles, tricycles, motorcycles, electric vehicles, etc. The device can be implemented in software and / or hardware. Figure 1As shown, the vehicle simulation test device provided in this embodiment establishes a connection with the vehicle to be tested; the vehicle simulation test device at least includes a scenario simulation thread module, a Monkey execution thread module and a control module.
[0039] The scenario simulation thread module is connected to the control module and is at least used to receive the scenario simulation instructions issued by the control module during the simulation test process to simulate at least one network environment under the actual vehicle working condition according to the scenario simulation instructions.
[0040] The Monkey execution thread module is connected to the control module and is at least used to receive the Monkey test instructions issued by the control module during the simulation test, so as to control the vehicle computer under test to perform random simulation of user operations in at least one network environment under actual vehicle working conditions according to the Monkey test instructions until the simulation test is completed.
[0041] The control module is at least used to generate a simulation test report and save a simulation test log according to the random simulation actions and action execution results performed by the vehicle computer to be tested on user operations in each network environment under actual vehicle working conditions during the simulation test.
[0042] The vehicle machine to be tested may specifically refer to the central control system of the vehicle to be tested, and the vehicle machine to be tested may include, for example, a central control large screen, a cockpit domain controller, etc. In addition, the connection between the vehicle simulation test device and the vehicle machine to be tested may be a wired connection established through a network cable or optical fiber, or a wireless connection established based on WiFi, Bluetooth, etc.
[0043] It is known that the control module can adopt terminals such as single-chip microcomputers, industrial computers, and computers. In a specific embodiment, the control module can be, for example, a microcomputer motherboard based on ARM (Advanced RISC Machine) (such as Raspberry Pi), and the control module can use a secure digital card (such as an SD card, MicroSD card, etc.) as a memory hard disk. There are 1 / 2 / 4 Universal Serial Bus (USB) interfaces and a 10 / 100 Ethernet interface (Type A has no network port) around the card motherboard, which can not only connect a keyboard, a mouse, and a network cable, but also has a TV output interface for video analog signals and a high-definition multimedia interface (HDMI); all of the above components are integrated on a motherboard that is only slightly larger than a credit card, and have all the basic functions of a personal computer (PC). Just connect a display (such as a TV) and a keyboard to execute functions such as spreadsheets, word processing, and playing high-definition videos. It is understandable that the scene simulation instructions and Monkey test instructions can be multi-binary instructions issued by the Raspberry Pi.
[0044] In a specific implementation, the scenario simulation thread module can use ATC (Augmented Traffic Control). ATC is a tool for simulating network conditions and is also a project that allows users to control the connection between devices and the Internet. ATC can simulate different network conditions, for example, it can control multiple network factors such as bandwidth, delay, packet loss, packet damage, packet reordering, etc. ATC can run on a gateway, which can control the network of devices such as mobile phones connected to the network. ATC has a World Wide Web (Web) interface, and ATC can switch different network conditions through the Web interface. Since ATC uses Iptables and Tc internally, it only supports the Linux platform (Raspberry Pi is essentially a simple Linux computer).
[0045] It can be known that the random simulation actions performed by the user operation can be, for example, the action of clicking the navigation application icon on the central control screen, the event of sliding the browser search page displayed on the central control screen, the virtual key action of entering the contact's mobile phone number in the call interface of the central control screen, etc. In addition, the simulation test report can include the action execution results generated during any round of simulation test (for example, which functions of the vehicle to be tested have no response, crash and other test problems in which network environment, which functions have passed the test without problems), retest suggestions and other information after the completion of any round of simulation test; the simulation test log can refer to a text document that records the execution times, test times and other information of different vehicle to be tested function tests in different network environments during any round of simulation test.
[0046] In summary, this embodiment provides a vehicle simulation test device. First, the scenario simulation thread module receives the scenario simulation instruction issued by the control module during the simulation test, so as to simulate at least one network environment under the actual vehicle working condition according to the scenario simulation instruction; then, the Monkey execution thread module receives the Monkey test instruction issued by the control module during the simulation test, so as to control the vehicle machine to be tested to perform random simulation of user operations in at least one network environment under the actual vehicle working condition according to the Monkey test instruction until the simulation test is completed; finally, the control module generates a simulation test report and saves the simulation test log according to the random simulation actions and action execution results of the vehicle machine to be tested on the user operations in each network environment under the actual vehicle working condition during the simulation test.
[0047] In view of this, this embodiment can simulate at least one network environment under the actual vehicle working condition through the scene simulation field module during the simulation test of the automobile central control, and then use the Monkey execution thread module to control the vehicle machine to be tested to randomly simulate user operations in the corresponding network environment under different actual vehicle working conditions. In other words, this embodiment measures the stability of the vehicle machine to be tested from the dual perspectives of user behavior and network environment changes, which is closer to the actual vehicle operation scenario, and overcomes the existing Monkey stress test for automobile testing, which only focuses on a single operation scenario of user behavior, but is difficult to meet the multi-dimensional testing requirements of the stability of the automobile central control and has problems such as insufficient verification, incomplete testing, and inaccurate results, thereby improving the verification adequacy, comprehensiveness of testing, and accuracy of results of the vehicle control simulation test.
[0048] It should be noted that, in addition to the vehicle central control simulation test scenario, the technical solution of the embodiment of the present invention can be but is not limited to being adapted to the simulation test scenarios of various mobile terminals (such as mobile phones, computers, etc.) (correspondingly, the Monkey execution thread module controls the mobile terminal to be tested to perform random simulation of user operations in at least one network environment under actual working conditions according to the Monkey test instructions) to expand the stability test dimension of the mobile terminal, which is conducive to improving the performance of the mobile terminal in different network scenarios. I will not go into details.
[0049] In the above-mentioned embodiments or implementations, the specific method of the scene simulation thread module simulating at least one network environment under the actual vehicle working condition is described below, but it does not limit the present invention. In a specific implementation, optionally, the scene simulation thread module is at least specifically used to parse out the network environment allocation parameters according to the scene simulation instruction, and then simulate at least one network environment under the actual vehicle working condition based on the network environment allocation parameters.
[0050] In another specific implementation, optionally, the scenario simulation thread module simulates at least one network environment under the actual vehicle working condition based on the network environment allocation parameters, including at least:
[0051] The scenario simulation thread module simulates at least one network environment under actual vehicle operating conditions by allocating network uplink bandwidth, network downlink bandwidth, network uplink packet loss rate, network downlink packet loss rate, network uplink delay, network downlink delay and / or domain name resolution server delay.
[0052] In another specific embodiment, optionally, the network environment under actual vehicle operating conditions includes at least one of: an intermittent network environment under actual vehicle high-speed driving conditions, a short-term network disconnection environment under actual vehicle tunnel driving conditions, a 2G or 3G network environment under actual vehicle operating conditions in the field, and a weak network environment under actual vehicle operating conditions in an underground garage.
[0053] The network environment adjustment parameters include at least network uplink bandwidth, network downlink bandwidth, network uplink packet loss rate, network downlink packet loss rate, network uplink delay, network downlink delay and / or domain name resolution server (Domain Name System, DNS) delay.
[0054] Specifically, assuming that the network environment allocation parameters include network uplink bandwidth, network downlink bandwidth, network uplink packet loss rate, network downlink packet loss rate, network uplink delay, network downlink delay and DNS delay, Table 1 is a network environment parameter table provided by an embodiment of the present invention.
[0055] Table 1
[0056]
[0057] See Table 1. The uplink / downlink bandwidth in Table 1 refers to the aforementioned network uplink bandwidth and network downlink bandwidth; the uplink / downlink packet loss rate in Table 1 refers to the aforementioned network uplink packet loss rate and network downlink packet loss rate; the uplink / downlink delay in Table 1 refers to the aforementioned network uplink delay and network downlink delay.
[0058] Continuing to refer to Table 1, the intermittent network environment under the actual vehicle high-speed driving condition can be used to simulate the intermittent network environment of the vehicle to be tested when the vehicle is driving on the highway. At this time, the scenario simulation thread module can select the corresponding parameter configuration (that is, the network environment allocation parameters corresponding to the intermittent network environment under the actual vehicle high-speed driving condition) from various network environments (such as 2G, 3G, 4G, no network, high packet loss rate environment, etc.) shown in Table 1 according to random time intervals (the random time intervals can be equal time intervals or unequal time intervals) to construct the intermittent network environment under the actual vehicle high-speed driving condition.
[0059] Continuing to refer to Table 1, the short-term network disconnection environment under the actual vehicle tunnel driving condition can be used to simulate the environment where the vehicle under test is in a short period of time without network availability when the vehicle is driving in the tunnel. At this time, the scenario simulation thread module can randomly disconnect the network for a period of time at any time, for example, it can restore the network after a random time of 10s to 1000s of network disconnection. The restored network can select the corresponding parameter configuration (that is, the network environment allocation parameters corresponding to the short-term network disconnection environment under the actual vehicle tunnel driving condition) from other network environments (such as 2G, 3G, 4G, high packet loss rate environment, etc.) shown in Table 1 except for no network, and finally realize the construction of the short-term network disconnection environment under the actual vehicle tunnel driving condition.
[0060] Continuing to refer to Table 1, the 2G or 3G network environment under the field vehicle working condition can be used to simulate the 2G or 3G weak network environment of the vehicle under test when the vehicle is driving in the suburbs, rural areas and other field environments. At this time, the scenario simulation thread module can select the corresponding parameter configuration (that is, the network environment allocation parameters corresponding to the 2G or 3G network environment under the field vehicle working condition) from the 2G or 3G network environment shown in Table 1 to realize the construction of the 2G or 3G network environment under the field vehicle working condition.
[0061] Continuing to refer to Table 1, the weak network environment under the actual working condition of the underground garage can be used to simulate the weak network environment of the vehicle to be tested when the vehicle is driving or parking in the underground garage. At this time, the scene simulation thread module can select the corresponding parameter configuration (that is, the network environment allocation parameters corresponding to the weak network environment under the actual working condition of the underground garage) from the network environment with high uplink latency or high uplink packet loss or high downlink latency or high downlink packet loss characteristics shown in Table 1 [such as low packet loss rate, high latency environment (uplink), low packet loss rate, high latency environment (downlink), low packet loss rate, high latency environment, high packet loss rate environment (uplink), high packet loss rate environment (downlink), high packet loss rate environment] to realize the construction of the weak network environment under the actual working condition of the underground garage.
[0062] In summary, this embodiment can simulate at least one network environment under the actual vehicle working condition through the scene simulation field module during the simulation test of the automobile central control, and then use the Monkey execution thread module to control the vehicle machine to be tested to randomly simulate user operations in the corresponding network environment under different actual vehicle working conditions. In other words, this embodiment can measure the stability of the vehicle machine to be tested from the dual perspectives of user behavior and network environment changes, which is closer to the actual vehicle operation scenario, and overcomes the existing Monkey stress test for automobile testing, which only focuses on a single operation scenario of user behavior, but is difficult to meet the multi-dimensional testing requirements of the stability of the automobile central control and has problems such as insufficient verification, incomplete testing, and inaccurate results, thereby improving the verification adequacy, comprehensiveness of testing, and accuracy of results of vehicle control simulation testing.
[0063] The embodiment of the present invention also provides a vehicle simulation test method. Figure 2 This is a flow chart of a vehicle simulation test method provided by an embodiment of the present invention. This embodiment can be applied to any type of vehicle control simulation test scenario, such as automobiles, tricycles, motorcycles, electric vehicles, etc. The vehicle simulation test method can be, but is not limited to, executed by the vehicle simulation test device in the embodiment of the present invention as the execution subject, and the execution subject can be implemented in software and / or hardware. Figure 2 As shown, the vehicle simulation test method comprises at least the following steps:
[0064] S1. During the simulation test, the scenario simulation thread module receives the scenario simulation instruction issued by the control module to simulate at least one network environment under the actual vehicle working condition according to the scenario simulation instruction.
[0065] S2. During the simulation test, the Monkey test instruction issued by the control module is received through the Monkey execution thread module, so as to control the vehicle computer to be tested to perform random simulation of user operations in at least one network environment under actual vehicle working conditions according to the Monkey test instruction until the simulation test is completed.
[0066] S3. Generate a simulation test report and save a simulation test log through the control module according to the random simulation actions and action execution results performed by the vehicle computer to be tested in each network environment under the actual vehicle working condition during the simulation test.
[0067] In summary, this embodiment provides a vehicle simulation test method. First, during the simulation test, the scene simulation thread module receives the scene simulation instruction issued by the control module, so as to simulate at least one network environment under the actual vehicle working condition according to the scene simulation instruction; then, during the simulation test, the Monkey test instruction issued by the control module is received by the Monkey execution thread module, so as to control the vehicle to be tested to perform random simulation of user operations in at least one network environment under the actual vehicle working condition according to the Monkey test instruction until the simulation test is completed; finally, the control module generates a simulation test report and saves the simulation test log according to the random simulation actions and action execution results of the vehicle to be tested in each network environment under the actual vehicle working condition during the simulation test.
[0068] In view of this, this embodiment can simulate at least one network environment under the actual vehicle working condition through the scene simulation field module during the simulation test of the automobile central control, and then use the Monkey execution thread module to control the vehicle machine to be tested to randomly simulate user operations in the corresponding network environment under different actual vehicle working conditions. In other words, this embodiment measures the stability of the vehicle machine to be tested from the dual perspectives of user behavior and network environment changes, which is closer to the actual vehicle operation scenario, and overcomes the existing Monkey stress test for automobile testing, which only focuses on a single operation scenario of user behavior, but is difficult to meet the multi-dimensional testing requirements of the stability of the automobile central control and has problems such as insufficient verification, incomplete testing, and inaccurate results, thereby improving the verification adequacy, comprehensiveness of testing, and accuracy of results of the vehicle control simulation test.
[0069] Based on the above method embodiment, in a specific implementation manner, optionally, step S1 at least includes:
[0070] S11. parse out network environment adjustment parameters according to the scenario simulation instructions through the scenario simulation thread module, and then simulate at least one network environment under actual vehicle working conditions based on the network environment adjustment parameters.
[0071] In another specific implementation, optionally, step S11 at least includes:
[0072] The scenario simulation thread module is used to allocate network uplink bandwidth, network downlink bandwidth, network uplink packet loss rate, network downlink packet loss rate, network uplink delay, network downlink delay and / or domain name resolution server delay to simulate at least one network environment under actual vehicle operating conditions.
[0073] In another specific embodiment, optionally, the network environment under actual vehicle operating conditions includes at least one of: an intermittent network environment under actual vehicle high-speed driving conditions, a short-term network disconnection environment under actual vehicle tunnel driving conditions, a 2G or 3G network environment under actual vehicle operating conditions in the field, and a weak network environment under actual vehicle operating conditions in an underground garage.
[0074] Based on the above implementation, Figure 3 is a flow chart of another vehicle simulation test method provided by an embodiment of the present invention. Figure 3 As shown, the vehicle simulation test method comprises at least the following steps:
[0075] S13. During the simulation test, the scenario simulation thread module receives the scenario simulation instruction sent by the control module, so as to parse out the network environment adjustment parameters according to the scenario simulation instruction.
[0076] S12. Allocate network uplink bandwidth, network downlink bandwidth, network uplink packet loss rate, network downlink packet loss rate, network uplink delay, network downlink delay and / or domain name resolution server delay through the scenario simulation thread module to simulate at least one network environment under actual vehicle working conditions.
[0077] S2. During the simulation test, the Monkey test instruction issued by the control module is received through the Monkey execution thread module, so as to control the vehicle computer to be tested to perform random simulation of user operations in at least one network environment under actual vehicle working conditions according to the Monkey test instruction until the simulation test is completed.
[0078] S3. Generate a simulation test report and save a simulation test log through the control module according to the random simulation actions and action execution results performed by the vehicle computer to be tested in each network environment under the actual vehicle working condition during the simulation test.
[0079] In summary, this embodiment can simulate at least one network environment under the actual vehicle working condition through the scene simulation field module during the simulation test of the automobile central control, and then use the Monkey execution thread module to control the vehicle machine to be tested to randomly simulate user operations in the corresponding network environment under different actual vehicle working conditions. In other words, this embodiment can measure the stability of the vehicle machine to be tested from the dual perspectives of user behavior and network environment changes, which is closer to the actual vehicle operation scenario, and overcomes the existing Monkey stress test for automobile testing, which only focuses on a single operation scenario of user behavior, but is difficult to meet the multi-dimensional testing requirements of the stability of the automobile central control and has problems such as insufficient verification, incomplete testing, and inaccurate results, thereby improving the verification adequacy, comprehensiveness of testing, and accuracy of results of vehicle control simulation testing.
[0080] An embodiment of the present invention further provides an electronic device, Figure 4 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, see Figure 4 The electronic device 1000 includes a processor 1001 and a memory 1002. The memory 1002 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 1001, the steps in any one of the above vehicle simulation test methods are executed. Through the above technical solution, the processor 1001 and the memory 1002 are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms (not marked), and the memory 1002 stores a computer program executable by the processor. When the electronic device 1000 is running, the processor 1001 executes the computer program to execute the vehicle simulation test method in any optional implementation method of the above embodiment to achieve the following functions: during the simulation test, the scene simulation thread module receives the scene simulation instruction issued by the control module to simulate at least one network environment under the actual vehicle working condition according to the scene simulation instruction; during the simulation test, the Monkey test instruction issued by the control module is received through the Monkey execution thread module to control the vehicle machine to be tested to perform random simulation of user operations in at least one network environment under the actual vehicle working condition according to the Monkey test instruction until the simulation test is completed; the control module generates a simulation test report and saves the simulation test log according to the random simulation actions and action execution results performed by the vehicle machine to be tested on user operations in each network environment under the actual vehicle working condition during the simulation test.
[0081] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a vehicle simulation test method as provided in all the embodiments of the invention of the present application: during the simulation test, a scene simulation thread module receives a scene simulation instruction issued by a control module, so as to simulate at least one network environment under actual vehicle working conditions according to the scene simulation instruction; during the simulation test, a Monkey test instruction issued by a control module is received by a Monkey execution thread module, so as to control the vehicle machine to be tested to perform random simulation of user operations in at least one network environment under actual vehicle working conditions according to the Monkey test instruction until the simulation test is completed; a simulation test report is generated and a simulation test log is saved according to the random simulation actions and action execution results performed by the vehicle machine to be tested on user operations in each network environment under actual vehicle working conditions during the simulation test.
[0082] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0083] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0084] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0085] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0086] An embodiment of the present invention further provides a vehicle, which is integrated with at least a vehicle simulation test device as described in any of the aforementioned embodiments or implementation methods, so as to perform random simulation tests on user operations of the vehicle in at least one network environment under actual vehicle operating conditions.
[0087] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A vehicle simulation test device, characterized in that: The vehicle simulation test device establishes a connection with the vehicle to be tested; the vehicle simulation test device at least includes a scenario simulation thread module, a Monkey execution thread module and a control module; The scenario simulation thread module is connected to the control module and is at least used to receive the scenario simulation instruction issued by the control module during the simulation test, so as to simulate at least one network environment under the actual vehicle working condition according to the scenario simulation instruction; The Monkey execution thread module is connected to the control module and is at least used to receive the Monkey test instruction issued by the control module during the simulation test, so as to control the vehicle computer to be tested to perform random simulation of user operations in at least one network environment under the actual vehicle working condition according to the Monkey test instruction until the simulation test is completed; The control module is at least used to generate a simulation test report and save a simulation test log according to the random simulation actions and action execution results performed by the vehicle computer under test on user operations in each network environment under the actual vehicle working condition during the simulation test.
2. The vehicle simulation test device according to claim 1, characterized in that: The scenario simulation thread module is at least specifically used to parse out network environment allocation parameters according to the scenario simulation instructions, and then simulate at least one of the network environments under the actual vehicle working conditions based on the network environment allocation parameters.
3. The vehicle simulation test device according to claim 2, characterized in that: The scenario simulation thread module simulates at least one of the network environments under the actual vehicle working condition based on the network environment allocation parameters, including at least: The scenario simulation thread module simulates at least one of the network environments under the actual vehicle operating conditions by adjusting the network uplink bandwidth, network downlink bandwidth, network uplink packet loss rate, network downlink packet loss rate, network uplink delay, network downlink delay and / or domain name resolution server delay.
4. The vehicle simulation test device according to any one of claims 1 to 3, characterized in that: The network environment under the actual vehicle working condition includes at least one of: an intermittent network environment under the actual vehicle high-speed driving condition, a short-term network disconnection environment under the actual vehicle tunnel driving condition, a 2G or 3G network environment under the actual vehicle working condition in the field, and a weak network environment under the actual vehicle working condition in the basement.
5. A vehicle simulation test method, characterized in that: The method is performed using the vehicle simulation test device according to claim 1, and the method at least comprises: S1. During the simulation test, the scenario simulation thread module receives a scenario simulation instruction issued by the control module to simulate at least one network environment under the actual vehicle working condition according to the scenario simulation instruction; S2, during the simulation test, receiving the Monkey test instruction issued by the control module through the Monkey execution thread module, so as to control the vehicle computer to be tested to perform random simulation of user operations in at least one network environment under the actual vehicle working condition according to the Monkey test instruction, until the simulation test is completed; S3. Generate a simulation test report and save a simulation test log through the control module according to the random simulation actions and action execution results performed by the vehicle computer to be tested on user operations in each network environment under the actual vehicle working condition during the simulation test.
6. The vehicle simulation test method according to claim 5, characterized in that: The step S1 at least comprises: S11. Parsing network environment adjustment parameters according to the scenario simulation instructions through the scenario simulation thread module, and then simulating at least one of the network environments under the actual vehicle working condition based on the network environment adjustment parameters.
7. The vehicle simulation test method according to claim 5 or 6, characterized in that: The network environment under the actual vehicle working condition includes at least one of: an intermittent network environment under the actual vehicle high-speed driving condition, a short-term network disconnection environment under the actual vehicle tunnel driving condition, a 2G or 3G network environment under the actual vehicle working condition in the field, and a weak network environment under the actual vehicle working condition in the basement.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the vehicle simulation test method according to any one of claims 5 to 7 are executed.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle simulation test method described in any one of claims 5 to 7 is implemented.
10. A vehicle, characterized in that: At least a vehicle simulation test device as described in any one of claims 1 to 4 is integrated to perform random simulation tests on user operations of the vehicle in at least one network environment under the actual vehicle operating conditions.