Vehicle remote interaction test method, device and test system and vehicle
Through the vehicle remote interactive testing method, automated test cases are used to test new energy vehicles, which solves the problems of difficult testing and low efficiency in the existing technology, realizes efficient intelligent network function testing, saves human resources and improves testing efficiency. efficiency.
Patent Information
- Application Number
- CN202410604915.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-27
AI Technical Summary
In the intelligent network connection function test of new energy vehicles, the existing technology makes the test difficult, time-consuming and inefficient due to the complex network environment and environmental conditions, and requires a lot of labor costs.
Using the vehicle remote interactive testing method, by determining the target vehicle to be tested and automated test cases, executing automated test cases and obtaining test results, and generating test reports, the simultaneous testing of multiple vehicles can be achieved, reducing test difficulty and improving efficiency.
It significantly improves test efficiency, reduces test difficulty, saves human resources, can automatically complete a variety of tests, and improves the availability and reliability of vehicle intelligent network connectivity functions.
Smart Images

Figure CN118550276A
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile control technology, and in particular to a vehicle remote interactive testing method, device, testing system and vehicle. Background Art
[0002] In the field of automobile interactive control, especially in the field of new energy vehicles, the widespread application of intelligent network technology in automobiles has made the software functions related to the vehicle electronic control system more and more complex, and the connection between each controller and the base station outside the vehicle has become closer and closer. As a result, new challenges have been raised for the testing of vehicle-based intelligent network functions. Due to the changeable use environment and corresponding network environment of new energy vehicles, it is necessary to perform multiple tests on the intelligent network functions of the vehicle under complex network scenarios and changing environmental conditions to ensure the availability and reliability of the vehicle's intelligent network functions. For example, the interactive function between the application and the vehicle in the terminal such as mobile phones also requires multiple tests, which is very cumbersome.
[0003] Since there are many types of tests required for vehicle interaction functions, most related technologies use manual testing methods, which requires a lot of manpower costs; however, due to the complex network environment and environmental conditions, the content that needs to be tested includes many low-probability problems, making the test difficult, time-consuming and inefficient. Summary of the invention
[0004] The present disclosure provides a vehicle remote interaction test method, device, test system and vehicle to solve the problems of high testing difficulty and low testing efficiency in vehicle remote interaction testing in the prior art.
[0005] In a first aspect, the present disclosure provides a vehicle remote interaction testing method, comprising the following steps:
[0006] Determining at least one target vehicle to be tested and an automated test case for testing the target vehicle, the automated test case including an interactive action to be tested;
[0007] Execute automated test cases and obtain test results corresponding to the interactive actions to be tested;
[0008] Based on the test results, a test report corresponding to the target vehicle is generated.
[0009] In a second aspect, the present disclosure provides a vehicle remote interaction test device, the vehicle remote interaction test device comprising:
[0010] A determination module, used to determine at least one target vehicle to be tested and an automated test case for testing the target vehicle, wherein the automated test case includes an interactive action to be tested;
[0011] The execution module is used to execute the automated test cases and obtain the test results corresponding to the interactive actions to be tested;
[0012] The output module is used to generate a test report corresponding to the target vehicle based on the test results.
[0013] In a third aspect, the present disclosure further provides a testing system, the testing system comprising:
[0014] test equipment and control computers;
[0015] The control computer is used to connect to the target vehicle to be tested through the test equipment and execute the vehicle remote interaction test method provided in the first aspect of the present disclosure.
[0016] In a fourth aspect, the present disclosure further provides a vehicle, which is obtained by testing the test system provided in the third aspect of the present disclosure.
[0017] The vehicle remote interaction test method, device, test system and vehicle provided by the present disclosure determine at least one target vehicle to be tested and an automated test case for testing the target vehicle, then execute the automated test case, obtain the test results corresponding to the interactive action to be tested, and then generate a test report corresponding to the target vehicle based on the test results. As a result, the interactive function test can be performed on multiple vehicles at the same time, which significantly improves the test efficiency compared to manually testing each vehicle separately. At the same time, by integrating the content to be tested, including the interactive action to be tested, into the automated test case, the test difficulty is significantly reduced, and by selecting multiple automated test cases, multiple tests can be automatically performed on multiple vehicles, thereby significantly improving the automated test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] Figure 1 An application scenario diagram of the vehicle remote interaction testing method provided in an embodiment of the present disclosure;
[0020] Figure 2 A flow chart of a vehicle remote interaction testing method provided by an embodiment of the present disclosure;
[0021] Figure 3a A flowchart of a vehicle remote interaction testing method provided by another embodiment of the present disclosure;
[0022] Figure 3b for Figure 3a A flow chart of a method for determining the real-time rotation speed of a motor when the working state of the motor at the previous moment is the second state provided in the illustrated embodiment;
[0023] Figure 3c for Figure 3a A flow chart of a method for determining the real-time rotation speed of a motor when the working state of the motor at the previous moment is the third state provided in the illustrated embodiment;
[0024] Figure 3d for Figure 3a A flow chart of a method for selecting an automated test case provided in the illustrated embodiment;
[0025] Figure 4 A schematic diagram of the structure of a vehicle remote interaction test device provided by another embodiment of the present disclosure;
[0026] Figure 5 A schematic diagram of the structure of a test system provided in yet another embodiment of the present disclosure.
[0027] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0029] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0030] In the field of automobile interactive control, especially in the field of new energy vehicles, the widespread application of intelligent network technology in automobiles has made the software functions related to the vehicle electronic control system more and more complex, and the connection between each controller and the base station outside the vehicle has become closer and closer. As a result, new challenges have been raised for the testing of vehicle-based intelligent network functions. Due to the changeable use environment and corresponding network environment of new energy vehicles, it is necessary to conduct multiple tests on the intelligent network functions of the vehicle under complex network scenarios and changing environmental conditions to ensure the availability and reliability of the intelligent network functions of the vehicle. Among them, through the interaction between applications in terminals such as mobile phones and vehicles, the function of controlling the vehicle status is realized, such as controlling the locking and unlocking of the vehicle, the air conditioning switch in the car, etc. This type of interactive function is frequently used and also requires a lot of testing, and each specific interactive function requires testing in different environments, and the testing process is very cumbersome.
[0031] Since there are many types of tests required for vehicle interaction functions, most related technologies use manual testing methods, which requires a lot of manpower costs; however, due to the complex network environment and environmental conditions, the content that needs to be tested includes many low-probability problems, making the test difficult, time-consuming and inefficient.
[0032] In order to solve the above problems, the embodiments of the present disclosure provide a vehicle remote interactive testing method, device, test system and vehicle, which can test multiple target vehicles at the same time through automated test cases, significantly improve the testing efficiency, and can automatically complete a variety of different tests, significantly reducing the difficulty of testing.
[0033] The application scenarios of the embodiments of the present disclosure are explained below:
[0034] Figure 1 This is an application scenario diagram of a vehicle remote interactive test of the test system provided by the embodiment of the present disclosure. Figure 1 As shown, the control computer 100 is connected to the target vehicle 120 to be tested on the test bench through the test equipment 110, and interacts with the target vehicle 120 by controlling the intelligent terminal 130 to perform remote interactive testing.
[0035] It should be noted that Figure 1 In the scenario shown, only one or a specific number of control computers, test equipment, target vehicles and smart terminals are used as examples for illustration, but the present disclosure is not limited to this. That is, the number of control computers, test equipment, target vehicles and smart terminals can be arbitrary.
[0036] The vehicle remote interaction test method provided by the present disclosure is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0037] Figure 2 This is a flow chart of a vehicle remote interaction testing method provided by an embodiment of the present application. Figure 2 As shown, including but not limited to the following steps:
[0038] Step S201: Determine at least one target vehicle to be tested and an automated test case for testing the target vehicle.
[0039] Among them, the automated test cases include interactive actions to be tested.
[0040] Specifically, the test of vehicle interaction functions is mainly carried out in the form of bench testing. At this time, the target vehicle to be tested is usually tested in an unassembled state including the electronic and electrical architecture (at this time, the internal structure of the vehicle, such as seats, interior rearview mirrors, etc., have not been installed, but the devices for performing interactive functions have been installed, such as doors, windows, etc., which need to be tested. The devices have been installed), but it may also be an assembled vehicle.
[0041] The target vehicle to be tested will be moved to the test bench and connected to the test equipment on the test bench. The control computer will be connected to the test equipment to test the target vehicle on the test bench by controlling the test equipment.
[0042] The control computer can be connected to the test equipment in multiple test benches at the same time to test the target vehicles on multiple test benches at the same time.
[0043] The target vehicle to be tested can be selected from the vehicles on the test bench, which can be all the vehicles on the test bench (corresponding to the test equipment) connected to the control computer, or some of the vehicles can be selected from these vehicles through the control computer. For example, if the control computer is connected to the test equipment in ten test benches at the same time, there may be only eight of the ten test benches with vehicles to be tested. In this case, the target vehicle can be these eight vehicles, or five of them (or other numbers).
[0044] Compared with existing test cases, automated test cases (test cases are called Test Cases in English) can automatically execute the interactive actions corresponding to the functions to be tested, simulate the scene characteristics, and obtain the corresponding output results (the output results may be the output of the target vehicle according to the interactive actions, or the output of the server corresponding to the interactive actions). Existing test cases usually require manual execution of each interactive action and extraction of the corresponding output results. By using automated test cases, the test efficiency can be significantly improved.
[0045] For example, if the function that the automated test case needs to test is to control the target vehicle to unlock the door through an intelligent terminal (such as a mobile phone) APP, the interactive actions included therein may be sending a command to unlock the door to the target vehicle, executing the command to unlock the door in the target vehicle, and feedback the execution result information to the APP. The corresponding output results are whether the target vehicle receives the command, whether the command to unlock the door is executed successfully, and whether the APP receives the feedback result information.
[0046] By comparing the output results with the expected results, the test results corresponding to each interactive action can be obtained. For example, the test result corresponding to the interactive action of sending a command to the target vehicle to unlock the door can be that the target vehicle receives the command (which can also be recorded as the test passed) or the target vehicle does not receive the command (which can also be recorded as the test failed).
[0047] An automated test case may correspond to one interaction action to be tested, or may correspond to multiple interactions. For example, in the aforementioned example, the automated test case corresponds to three interaction actions at the same time.
[0048] Each automated test case corresponds to a certain test scenario, such as an environment with poor network communication conditions, and scenarios where the smart terminal where the APP is located is at different distances from the target vehicle (such as different scenarios where the smart terminal is next to the target vehicle and more than one hundred meters away).
[0049] Automated test cases can be stored in the control computer. Testers can select the automated test cases to be executed in the control computer to test the target vehicle. Testers can select multiple automated test cases at the same time and execute them in sequence to automatically complete multiple tests. In this way, the test bench can be tested continuously 24 hours a day without the need for testers to be on site all the time, which significantly saves human resources and maximizes vehicle testing efficiency.
[0050] In practical applications, the control computer can use the bus diagnostic simulation tool canoe to control the target vehicle equipped with the test device TCAM (Telematics & Connectivity Antenna Module) and gateway VGM (Vehicle gateway mode) on the test bench, and execute automated test cases through python software and CAPL language (a programming language supported by the vehicle's built-in program).
[0051] In some embodiments, the control computer may not be in the same area as the target vehicle. For example, the control computer may remotely control the test bench through network communication to perform interactive function tests between the smart terminal and the target vehicle at a longer distance (such as in the scenario of interactive function tests at a cross-border distance. In this case, it is only necessary to bind the test account information corresponding to the target vehicle to the program simulating the smart terminal in the control computer to simulate the cross-border interactive function test between the smart terminal and the target vehicle).
[0052] Step S202: Execute the automated test case and obtain the test result corresponding to the interactive action to be tested.
[0053] Specifically, after the control computer selects to execute the automated test case on the target vehicle, the control computer will execute the corresponding interactive actions on the target vehicle and its interactive device (such as a server) based on the interactive action corresponding code in the automated test case, and will record the output results fed back by the target vehicle and the interactive device, and then determine whether the test is passed based on whether the output results are consistent with the expected results in advance. The control computer will record whether the test is passed as the test result in the control computer.
[0054] Step S203: Generate a test report corresponding to the target vehicle based on the test results.
[0055] Specifically, after obtaining the test results corresponding to each automated test case, the control computer can integrate and obtain the test report corresponding to each target vehicle, so that the tester can quickly and conveniently determine whether each target vehicle has passed the test.
[0056] The vehicle remote interaction test method provided in the embodiment of the present application determines at least one target vehicle to be tested and an automated test case for testing the target vehicle, then executes the automated test case, obtains the test results corresponding to the interactive action to be tested, and then generates a test report corresponding to the target vehicle based on the test results. Thus, it is possible to perform interactive function tests on multiple vehicles at the same time, which significantly improves the test efficiency compared to manually testing each vehicle individually. At the same time, by integrating the content to be tested, including the interactive action to be tested, into the automated test case, the test difficulty is significantly reduced, and by selecting multiple automated test cases, multiple tests can be automatically performed on multiple vehicles, thereby significantly improving the efficiency of automated testing.
[0057] Figure 3a A flow chart of a vehicle remote interaction testing method provided in an embodiment of the present application. Figure 3a As shown, the vehicle remote interaction test method provided in this embodiment includes the following steps:
[0058] Step S301: Determine at least one target vehicle to be tested and an automated test case for testing the target vehicle.
[0059] Among them, the automated test cases include interactive actions to be tested.
[0060] Specifically, before conducting a vehicle remote interaction test, it is first necessary to determine the target vehicle to be tested and the test content to be performed, and then determine the automated test cases based on the test content.
[0061] In addition to testing interactive actions, automated test cases also include testing communication methods. Depending on the functions of the test, the test communication methods include remote communication methods of smart terminals (i.e. communication between the target vehicle and smart terminals such as mobile phone APP, such as sending a lock command to the vehicle through the APP and feedback of the current status of the vehicle to the APP), http protocol communication methods (i.e. communication between the target vehicle and the cloud server platform, such as the vehicle sending its own positioning information to the cloud server platform) and analog signal communication methods (i.e. communication within the target vehicle, such as confirming whether the command to turn on the air conditioner is executed, and confirming the execution result of the command to obtain the temperature inside the vehicle). The interactive actions to be tested include functional commands configured by smart terminals (usually the transmission of corresponding commands), server platform interactive actions (usually the transmission of vehicle-related information and platform logs), and analog signal transmission actions (usually the transmission of command signals and execution result signals in the CAPL language).
[0062] Furthermore, if Figure 3b As shown, it is a flow chart of a method for determining an automated test case, which includes the following steps:
[0063] Step S3011, determine the corresponding scenario information and function information in the use case information of the automated test case to be generated.
[0064] The use case information includes function code information.
[0065] Specifically, automated test cases can be directly configured by testers individually (i.e., the code required for automated test cases can be entered from scratch), or existing test cases can be converted into automated test cases.
[0066] Existing test cases usually record the test case information (i.e., the specific content in the test case) in the form of EXCEL files, etc., and record the code information and annotation information involved in the test case. The tester will select the part to be tested according to the needs, manually enter the code information into the code compiler in the control computer, compile it to obtain the execution program, and then run the execution program to implement the test. Automated test cases are directly stored in the control computer in the form of executable code programs (and real-time execution programs). By directly selecting and running the executable code program, the automated test cases can be executed and the corresponding test results can be obtained. Compared with existing test cases, it can significantly improve the test efficiency, reduce the amount of manual labor, and save human resources.
[0067] In the case where the tester configures the automated test case individually, the tester is required to enter the scenario information and function information corresponding to the automated test case while entering the corresponding code, so that the tester can identify and select it when conducting interactive function testing. Among them, the function information is the information of the code function required to implement the interactive action in the automated test case. Here it mainly refers to the function name or identification name of the code function, which is usually named by the tester for easy identification (such as the function information is "sending a simulated signal of successful door unlocking"). The relative concept is the function code information contained in the use case information, which is the code text and annotation text required for the specific implementation corresponding to the function information.
[0068] In the case of converting existing test cases into automated test cases, the tester is also required to determine the scenario information and function information corresponding to the existing test cases. However, at this time, the tester only needs to enter the scenario information and function information in the EXCEL file where the existing test cases are located.
[0069] Step S3012: Determine the function code information in the use case information corresponding to each function in the function function information.
[0070] Specifically, existing test cases usually include multiple specific interaction actions, and each interaction action needs to be implemented through one to multiple code functions. Therefore, it is necessary to determine the code function corresponding to each interaction action. By entering the function function information in the use case information, and then matching the function code information in the use case information with each function function information, the function code information corresponding to each function function information can be obtained.
[0071] Step S3013: Based on the function code information, obtain the execution program corresponding to each function in the function information.
[0072] Specifically, by extracting the code text in the function code information and converting it according to the format requirements corresponding to the code language type (such as python, java, etc.) of the code text, an executable code that can be run can be obtained. By compiling and outputting the executable code, the corresponding executable code program, i.e., the execution program, can be obtained.
[0073] The process of converting function code information into an execution program can be automatically implemented through a script program, and its principle is explained below.
[0074] like Figure 3c As shown, it is a flow chart of a method for obtaining an execution program based on function code information, which includes the following steps:
[0075] Step A1: based on the code format requirements of the execution program, convert the function code information into a code text of a corresponding format.
[0076] Specifically, different types of execution codes have corresponding format requirements. Taking Python as an example, different types of code elements and reference relationships have clear format requirements such as indentation and line breaks. You only need to adjust the format of the code text in the function code information according to the format requirements to obtain executable code text that can be run in the Python code compiler.
[0077] Step A2: Migrate the code text in the corresponding format to the code environment corresponding to the execution program, and compile to obtain the execution program.
[0078] Specifically, the executable code text is migrated to the corresponding code compiler (i.e., the code environment corresponding to the executable program), and then compiled and output, and the executable code program (i.e., the executable program) can be obtained. In specific implementation, the executable code text can be pasted (by copying or cutting) to the code compiler, or the file containing the executable code text can be converted into the format required by the executable code environment (e.g., if the code language is C language, the executable code text can be pasted into a txt document, and then its suffix name can be changed to .bat file to obtain the executable program), and the executable program can be obtained.
[0079] Depending on the different code languages used when developing existing test cases, testers can easily configure a script program that converts function code information into an execution program, which is not further limited here.
[0080] Step S3014: Based on all execution programs corresponding to the function function information, obtain the automated test cases corresponding to the use case information.
[0081] Specifically, all the function code information in the use case information is converted into execution programs, and all the execution programs are integrated according to the function information (such as arranging them according to the execution order in the use case information, and adjusting the naming of the execution programs according to the reference relationship recorded in the use case information), and an automated test case file can be obtained.
[0082] An automated test case may contain multiple execution programs. In this case, the automated test case may also include a control program that calls each execution program in a set order, but what is displayed on the control computer is usually in the form of a single file so that testers can select and execute it to ensure test efficiency.
[0083] In some embodiments, Figure 3d As shown, it is a flow chart of the method for selecting automated test cases. Considering the scenario information and function information contained in the automated test cases, the method for selecting automated test cases may also include the following steps:
[0084] Step B1: Determine at least one target vehicle to be tested.
[0085] Specifically, it is first necessary to determine the target vehicle to be tested on the test bench.
[0086] Step B2: Based on the target scenarios and functions to be tested, determine the scenario information requirements and function requirements that the automated test cases need to meet.
[0087] Specifically, since the automated test cases correspond to specific test scenarios, it is necessary to pre-determine the simulation scenarios to be tested as scenario information requirements to screen the automated test cases, and then combine them with the functions to be tested to obtain function requirements, and then combine the scenario information requirements and function requirements to screen the automated test cases.
[0088] Step B3: Determine automated test cases based on scenario information requirements and function requirements.
[0089] Specifically, by selecting scenario information requirements and function requirements, automated test cases for testing are screened.
[0090] There may be one or more automated test cases that meet the scenario information requirements and function requirements. When there are multiple automated test cases, usually all of the automated test cases that pass the screening are used for testing, or the tester can manually select some of them for testing.
[0091] In the actual testing process, automated test cases may be executed only once, or they may be run repeatedly multiple times to achieve repeated stress testing.
[0092] Step S302: Determine the database record corresponding to the automated test case based on the configuration information of the target vehicle.
[0093] Among them, the database records include prediction feedback results.
[0094] Specifically, for the same test case, target vehicles with different configurations may have different feedback results. For example, if a command to adjust the seat temperature is sent to a vehicle that is not equipped with a seat temperature adjustment function, the target vehicle should be unable to execute any corresponding function instead of erroneously enabling some other function. If the target vehicle is equipped with the corresponding function, it will be executed and the execution result will be correctly fed back.
[0095] Therefore, the target vehicle on the test bench is usually provided with corresponding configuration information to record the configuration of the vehicle.
[0096] For target vehicles with different configurations, when executing the same automated test case, the corresponding prediction feedback result records and other information are stored in the server database, i.e., database records (in addition to the prediction feedback results corresponding to the automated test case, the database records may also include the use case information of the test case), so as to generate the corresponding test report based on the prediction feedback results.
[0097] Step S303: Based on the remote communication mode of the smart terminal, the function command configured by the smart terminal is sent to the target vehicle to obtain the execution result of the target vehicle based on the function command.
[0098] Specifically, according to the different interactive actions and function functions contained in the automated test cases, different methods will be used when the automated test cases are specifically executed.
[0099] For the test of remote interaction between the smart terminal APP and the target vehicle, usually instructions (i.e., functional commands) are first sent to the target vehicle through the smart terminal remote communication method.
[0100] In actual applications, a control computer can be connected to a smart terminal to trigger the smart terminal to execute the action of sending a functional command through automated test cases in the control computer (such as connecting the smart terminal via USB and calling the APP interface of the smart terminal to automatically implement the action of sending the functional command in the APP). Alternatively, a program simulating the smart terminal can be configured in the control computer, and through the operation of the simulation program, the control computer can implement the action of sending a functional command to the target vehicle (in this case, the control computer is configured with a wireless communication module component similar to the smart terminal).
[0101] If the function command is executed successfully, the control computer can obtain the corresponding execution result through the intelligent terminal.
[0102] For example, the automated test case is to test the function of unlocking the target vehicle through the smart terminal APP, which includes the interactive action of sending the "unlock" command to the target vehicle through the smart terminal APP. During the specific execution, the control computer will call the interface in the remote vehicle interaction APP in the smart terminal through USB, so that the smart terminal automatically clicks the "unlock" button and sends the remote unlock control function command to the target vehicle.
[0103] If the function command is executed successfully, the control computer can call the APP interface through the USB to obtain the target vehicle status feedback received by the APP, and the target vehicle status changes to the "unlocked" icon status and the corresponding text reminder.
[0104] Step S304: Based on the http protocol communication mode, the server platform interaction action is sent to the server platform to obtain the interaction result returned by the server platform.
[0105] Specifically, some interactive actions involve the interaction between the smart terminal APP and the server platform, such as obtaining the average driving record information of the vehicle recorded by the server platform. At this time, it is necessary to test whether the interactive function between the smart terminal APP and the server platform is normal.
[0106] In some embodiments, in addition to the functional interaction between the smart terminal APP and the server platform, there will also be communication between the target vehicle and the server platform so that the server platform can record the vehicle status and execute commands, making it convenient to remotely obtain vehicle status information through the smart terminal APP.
[0107] For example, in the aforementioned automated test case of the function of unlocking the target vehicle through the smart terminal APP, the target vehicle will send corresponding status information to the server platform when it receives the "unlock" command and after executing the "unlock" command. At this time, based on the http protocol communication method, the corresponding log of the target vehicle in the server platform can be accessed to determine whether the target vehicle reports the information of receiving the "unlock" command and the status information after executing the "unlock" command. According to the log returned by the server platform, it can be determined whether the target vehicle interacts normally with the server platform.
[0108] Furthermore, the interaction actions between the smart terminal APP, the target vehicle, and the server platform usually occur more than once, and the order in which the interaction actions occur may be different depending on the functions to be tested. For example, step S304 may be exchanged with the execution order of step S305, or step S304 needs to be executed again after executing step S305. The specific relative order can be exchanged according to actual conditions and is not limited here.
[0109] Step S305: Based on the analog signal communication mode, input an analog signal transmission action to the target vehicle to obtain a signal transmission result returned by the target vehicle.
[0110] Specifically, for interactive actions that require the target vehicle to perform a certain state change (such as switching from a "locked" state to an "unlocked" state) or internal detection (such as obtaining real-time battery power), there are usually actions that need to be performed inside the target vehicle. At this time, the actions inside the target vehicle are usually transmitted through analog signal communication to transmit action instructions and execution results. Therefore, the control computer can access the target vehicle's vehicle system through analog signal communication to confirm the action execution result (that is, to obtain the signal transmission result returned by the target vehicle).
[0111] For example, in the aforementioned automated test case for testing the function of unlocking the target vehicle through a smart terminal APP, the control computer can call the simulation signal instruction of the CAPL language through the execution program of the python code to confirm whether the target vehicle receives the "unlock" instruction issued by the smart terminal APP, and whether the target vehicle sends an "unlock successful" signal to the smart APP.
[0112] Step S306: Determine the test result corresponding to the interaction action to be tested based on the execution result, the interaction result and / or the signal transmission result.
[0113] Specifically, by combining the output results corresponding to the automated test cases in the aforementioned steps (ie, execution results, interaction results and / or signal transmission results), the test results used to generate the test report can be obtained.
[0114] For example, in the automated test case in the aforementioned example, the output result includes that the target vehicle sends an "unlock successful" signal to the smart APP, but the smart terminal APP does not display the icon status of the target vehicle changed to "unlocked" and the corresponding text reminder, then the test report can mark that the interactive action test has failed, and the test of the function of unlocking the target vehicle through the smart terminal APP has failed.
[0115] Further, the test result can be obtained in combination with the prediction feedback result. If the execution result, interaction result and / or signal transmission result are consistent with the corresponding prediction feedback result, the test result is determined to be a test pass, or if the execution result, interaction result and / or signal transmission result are inconsistent with the corresponding prediction feedback result, the test result is determined to be a test fail.
[0116] Specifically, by comparing the output results with the predicted feedback results, the test results can be automatically determined, thereby realizing the automation of the entire process from the execution of automated test cases, the output of test results to the generation of test reports, significantly saving human resources.
[0117] Step S307: Generate a test report corresponding to the target vehicle based on the test results, execution results, interaction results and / or signal transmission results and the corresponding prediction feedback results.
[0118] Specifically, by integrating the test results corresponding to all automated test cases, a test report corresponding to each target vehicle can be generated.
[0119] Usually, for the sake of detail in the report, the execution results, interaction results and / or signal transmission results and the corresponding prediction feedback results are also listed in the test report to facilitate the determination of the specific test situation.
[0120] In some embodiments, in order to facilitate the query of test-related information, the control computer also obtains the in-vehicle log records of the target vehicle and the log information reported by the target vehicle to the server platform, and saves them in the control computer for subsequent viewing.
[0121] The vehicle remote interactive testing method provided by the embodiment of the present application determines at least one target vehicle to be tested and an automated test case for testing the target vehicle, and based on the configuration information of the target vehicle, determines the database record corresponding to the automated test case, then executes the automated test case, and obtains the test result based on the output result and the predicted feedback result in the database record, and generates a test report. Thus, after the tester selects the content to be tested, the test process can be automatically completed, and the corresponding test report can be automatically generated, which significantly saves human resources and improves test efficiency.
[0122] Figure 4 This is a schematic diagram of the structure of a vehicle remote interaction test device provided in an embodiment of the present application. Figure 4 As shown, the vehicle remote interaction test device 400 includes: a determination module 410, an execution module 420 and an output module 430. Among them:
[0123] A determination module 410, for determining at least one target vehicle to be tested and an automated test case for testing the target vehicle, wherein the automated test case includes an interactive action to be tested;
[0124] An execution module 420 is used to execute the automated test case and obtain the test result corresponding to the interaction action to be tested;
[0125] The output module 430 is used to generate a test report corresponding to the target vehicle based on the test results.
[0126] Optionally, the determination module 410 is also used to, after determining at least one target vehicle to be tested and an automated test case for testing the target vehicle, determine a database record corresponding to the automated test case based on configuration information of the target vehicle, the database record including a predicted feedback result.
[0127] Optionally, the execution module 420 is specifically used for: if the automated test case includes a test communication mode, the test communication mode includes a smart terminal remote communication mode, an http protocol communication mode and a simulated signal communication mode, and the interactive action to be tested includes a function command configured by the smart terminal, a server platform interactive action, and a simulated signal transmission action; based on the smart terminal remote communication mode, sending the function command configured by the smart terminal to the target vehicle to obtain the execution result of the target vehicle based on the function command; and / or, based on the http protocol communication mode, sending the server platform interactive action to the server platform to obtain the interactive result returned by the server platform; and / or, based on the simulated signal communication mode, inputting a simulated signal transmission action to the target vehicle to obtain the signal transmission result returned by the target vehicle; based on the execution result, the interaction result and / or the signal transmission result, determining the test result corresponding to the interactive action to be tested.
[0128] Optionally, the execution module 420 is specifically used to determine that the test result is a passed test if the execution result, interaction result and / or signal transmission result are consistent with the corresponding predicted feedback result; or, if the execution result, interaction result and / or signal transmission result are inconsistent with the corresponding predicted feedback result, determine that the test result is a failed test; the output module 430 is specifically used to generate a test report corresponding to the target vehicle based on the test result, execution result, interaction result and / or signal transmission result and the corresponding predicted feedback result.
[0129] Optionally, the determination module 410 is specifically used to obtain automated test cases in the following manner: determine the corresponding scenario information and function function information in the use case information of the automated test case to be generated, the use case information including function code information; determine the function code information in the use case information corresponding to each function in the function function information; based on the function code information, obtain the execution program corresponding to each function in the function function information; based on all the execution programs corresponding to the function function information, obtain the automated test case corresponding to the use case information.
[0130] Optionally, the determination module 410 is specifically used to convert the function code information into a code text of a corresponding format based on the code format requirements of the execution program; migrate the code text of the corresponding format to a code environment corresponding to the execution program, and compile the execution program.
[0131] Optionally, the determination module 410 is specifically used to determine at least one target vehicle to be tested; based on the target scenario and function to be tested, determine the scenario information requirements and function requirements that the automated test case needs to meet; based on the scenario information requirements and function requirements, determine the automated test case.
[0132] In this embodiment, the vehicle remote interaction test device can solve the problems of high testing difficulty and low efficiency in vehicle remote interaction testing in the prior art through the combination of various modules. It now automatically performs multiple tests on multiple vehicles, thereby significantly improving the efficiency of automated testing.
[0133] Figure 5 A schematic diagram of the structure of a test system provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the test system 500 includes: a test device 510 and a control computer 520 .
[0134] The control computer 520 is used to connect to the target vehicle to be tested through the test device 510 to execute the vehicle remote interaction test method provided in any of the above embodiments.
[0135] The relevant instructions can be understood by referring to the relevant descriptions and effects corresponding to the method embodiments, which will not be repeated here.
[0136] An embodiment of the present application provides a vehicle, which is tested based on the test system provided in the above embodiment.
[0137] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0138] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0139] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0140] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.
[0141] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. If not specifically stated, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. If not specifically stated, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc.
[0142] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0143] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0144] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0145] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A vehicle remote interaction testing method, characterized in that: The steps include: Determining at least one target vehicle to be tested and an automated test case for testing the target vehicle, wherein the automated test case includes an interactive action to be tested; Execute the automated test case and obtain the test result corresponding to the interactive action to be tested; Based on the test results, a test report corresponding to the target vehicle is generated.
2. The vehicle remote interactive testing method according to claim 1, characterized in that: The step of determining at least one target vehicle to be tested and an automated test case for testing the target vehicle further includes: Based on the configuration information of the target vehicle, a database record corresponding to the automated test case is determined, wherein the database record includes a prediction feedback result.
3. The vehicle remote interactive testing method according to claim 2, characterized in that: The automated test case includes a test communication mode, which includes a smart terminal remote communication mode, an HTTP protocol communication mode, and a simulated signal communication mode. The interactive actions to be tested include a function command configured by the smart terminal, a server platform interactive action, and a simulated signal transmission action. The executing the automated test case and obtaining the test result corresponding to the interaction action to be tested includes: Based on the remote communication mode of the intelligent terminal, a function command configured by the intelligent terminal is sent to the target vehicle to obtain an execution result of the target vehicle based on the function command; and / or, Based on the http protocol communication mode, sending the server platform interaction action to the server platform to obtain the interaction result returned by the server platform; and / or, Based on the analog signal communication mode, inputting an analog signal transmission action to the target vehicle to obtain a signal transmission result returned by the target vehicle; Based on the execution result, the interaction result and / or the signal transmission result, a test result corresponding to the interaction action to be tested is determined.
4. The vehicle remote interactive testing method according to claim 3, characterized in that: The determining, based on the execution result, the interaction result and / or the signal transmission result, a test result corresponding to the interaction action to be tested includes: If the execution result, interaction result and / or signal transmission result are consistent with the corresponding prediction feedback result, the test result is determined to be a test pass; Alternatively, if the execution result, the interaction result and / or the signal transmission result are inconsistent with the corresponding prediction feedback result, the test result is determined to be a test failure; The generating a test report corresponding to the target vehicle based on the test result includes: Based on the test results, the execution results, the interaction results and / or the signal transmission results and the corresponding prediction feedback results, a test report corresponding to the target vehicle is generated.
5. The vehicle remote interactive testing method according to any one of claims 1 to 4, characterized in that: The automated test cases are obtained in the following way: Determine the scenario information and function information corresponding to the use case information of the automated test case to be generated, wherein the use case information includes function code information; Determine the function code information in the use case information corresponding to each function in the function function information; Based on the function code information, obtaining an execution program corresponding to each function in the function information; Based on all execution programs corresponding to the function function information, an automated test case corresponding to the use case information is obtained.
6. The vehicle remote interactive testing method according to claim 5, characterized in that: The obtaining, based on the function code information, an execution program corresponding to each function in the function function information comprises: Based on the code format requirements of the execution program, converting the function code information into a code text of a corresponding format; The code text in the corresponding format is migrated to the code environment corresponding to the execution program, and compiled to obtain the execution program.
7. The vehicle remote interactive testing method according to claim 5, characterized in that: The step of determining at least one target vehicle to be tested and an automated test case for testing the target vehicle comprises: determining at least one target vehicle to be tested; Based on the target scenarios and functions to be tested, determine the scenario information requirements and function requirements that the automated test cases need to meet; Based on the scenario information requirements and function requirements, the automated test cases are determined.
8. A vehicle remote interaction test device, characterized in that: include: A determination module, used to determine at least one target vehicle to be tested and an automated test case for testing the target vehicle, wherein the automated test case includes an interactive action to be tested; An execution module, used to execute the automated test case and obtain the test result corresponding to the interactive action to be tested; The output module is used to generate a test report corresponding to the target vehicle based on the test results.
9. A testing system, characterized in that: include: test equipment and control computers; The control computer is used to connect to the target vehicle to be tested through the test equipment and execute the vehicle remote interaction test method as described in any one of claims 1 to 7.
10. A vehicle, characterized in that: include: The vehicle is tested based on the test system described in claim 9.
