CN114326677A - Vehicle machine testing method and device - Google Patents

Vehicle machine testing method and device Download PDF

Info

Publication number
CN114326677A
CN114326677A CN202111650955.8A CN202111650955A CN114326677A CN 114326677 A CN114326677 A CN 114326677A CN 202111650955 A CN202111650955 A CN 202111650955A CN 114326677 A CN114326677 A CN 114326677A
Authority
CN
China
Prior art keywords
test
vehicle machine
tested
vehicle
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111650955.8A
Other languages
Chinese (zh)
Inventor
李洁辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Rox Intelligent Technology Co Ltd
Original Assignee
Shanghai Rox Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Rox Intelligent Technology Co Ltd filed Critical Shanghai Rox Intelligent Technology Co Ltd
Priority to CN202111650955.8A priority Critical patent/CN114326677A/en
Publication of CN114326677A publication Critical patent/CN114326677A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a vehicle machine testing method and a device, comprising the following steps: acquiring test configuration parameters corresponding to a vehicle machine to be tested; wherein the test configuration parameters at least comprise test item description parameters and expected feedback values; according to the test item description parameters, executing simulation trigger operation aiming at a target operation position in the graphical user interface so as to trigger the vehicle machine to be tested to execute a vehicle machine function corresponding to the target operation position; when the function execution of the car machine is finished, analyzing a feedback signal generated by the car machine to be tested to obtain a test feedback value; and determining a test result corresponding to the vehicle machine to be tested based on the expected feedback value and the test feedback value. The invention can effectively improve the vehicle machine testing efficiency, reduce the vehicle machine testing cost and improve the reliability of the vehicle machine testing result.

Description

Vehicle machine testing method and device
Technical Field
The invention relates to the technical field of vehicle testing, in particular to a vehicle machine testing method and device.
Background
To meet the needs of different consumers, it is generally necessary to configure the vehicle with more abundant and various functions, and to put the vehicle on the market after each function of the vehicle passes the test. At present, a vehicle machine test usually adopts a manual test mode, namely, a tester manually clicks a button to control a vehicle machine to execute relevant functions and observe corresponding vehicle control equipment change, and the manual test mode has the problems of low test efficiency, high test cost, poor reliability of test results and the like.
Disclosure of Invention
In view of the above, the present invention provides a vehicle testing method and device, which can effectively improve vehicle testing efficiency, reduce vehicle testing cost, and improve reliability of vehicle testing results.
In a first aspect, an embodiment of the present invention provides a car machine testing method, where the method is applied to a car machine testing system, the car machine testing system is in communication connection with a car networking terminal of a car machine to be tested, and a graphical user interface is provided through the car networking terminal, and the method includes: acquiring test configuration parameters corresponding to the vehicle machine to be tested; wherein the test configuration parameters include at least test item description parameters and expected feedback values; according to the test item description parameters, executing simulation trigger operation aiming at a target operation position in the graphical user interface so as to trigger the vehicle machine to be tested to execute a vehicle machine function corresponding to the target operation position; when the function execution of the car machine is finished, analyzing a feedback signal generated by the car machine to be tested to obtain a test feedback value; and determining a test result corresponding to the vehicle machine to be tested based on the expected feedback value and the test feedback value.
In one embodiment, the test item description parameters include a control identifier corresponding to at least one vehicle machine function, an interface identifier where the control is located, and a control operation type; the step of executing a simulation trigger operation aiming at a target operation position in the graphical user interface according to the test item description parameters comprises the following steps: triggering the graphical user interface to provide a target interface corresponding to the interface identification where the control is located; determining a target operation position from the target interface according to the control identification and a preset mapping relation; the preset mapping relation comprises a mapping relation between a control identification and an operation position; and executing the simulation trigger operation corresponding to the control operation type aiming at the target operation position.
In an embodiment, the step of determining a test result corresponding to the car machine under test based on the expected feedback value and the test feedback value includes: judging whether the expected feedback value is consistent with the test feedback value; if so, determining that the test result corresponding to the vehicle machine to be tested is successful; and if not, determining that the test result corresponding to the vehicle machine to be tested is test failure.
In one embodiment, the method further comprises: judging whether a feedback signal generated by the vehicle machine to be tested is acquired within a preset time length; wherein the feedback signal comprises a CAN message; if so, determining that the test result corresponding to the vehicle machine to be tested is successful; and if not, determining that the test result corresponding to the vehicle machine to be tested is test failure.
In an embodiment, the step of determining whether to acquire the feedback signal generated by the vehicle testing machine within a preset time period includes: recording the operation execution time of the simulation trigger operation and the acquisition time of a feedback signal; calculating the time difference between the operation execution time and the acquisition time to obtain the function execution duration required by the vehicle machine to be tested to execute the vehicle machine function; and if the function execution time length is less than or equal to a preset time length, determining that the feedback signal is acquired within the preset time length.
In one embodiment, the method further comprises: calculating the duration and the value of the function execution duration of each vehicle machine function executed by the vehicle machine to be tested; and determining a target execution performance grade corresponding to the vehicle machine to be tested from preset execution performance grades according to the duration and the value.
In one embodiment, the test configuration parameters further include a number of tests per test item; the method further comprises the following steps: for each vehicle machine function, determining the execution overtime frequency according to the preset time length and the function execution time length of the vehicle machine to be tested for executing the vehicle machine function each time; and determining a target pressure performance grade corresponding to the vehicle machine to be tested from preset pressure performance grades according to the execution overtime times.
In one embodiment, the car networking terminal is configured with at least one processing logic corresponding to the car machine function, each processing logic is added with a test embedded point, and the test embedded point is used for indicating the car networking terminal to generate a test log corresponding to the processing logic when the execution of the processing logic is finished; the method further comprises the following steps: judging whether a test log corresponding to each processing logic is received; if yes, determining the logic execution duration of each processing logic according to the test log corresponding to each processing logic; determining target processing logic influencing the performance of the vehicle machine to be tested from the processing logic according to the logic execution duration; and if not, determining the processing logic as target processing logic influencing the performance of the vehicle machine to be tested.
In one embodiment, the method further comprises: monitoring an operation execution result of the simulation trigger operation; and if the operation execution result is execution failure, determining the reason of the execution failure of the simulation trigger operation.
In a second aspect, an embodiment of the present invention further provides a car machine testing device, where the device is applied to a car machine testing system, the car machine testing system is in communication connection with a car networking terminal of a car machine to be tested, and provides a graphical user interface through the car networking terminal, and the device includes: the parameter configuration module is used for acquiring test configuration parameters corresponding to the vehicle machine to be tested; wherein the test configuration parameters include at least test item description parameters and expected feedback values; the function triggering module is used for executing simulation triggering operation aiming at a target operation position in the graphical user interface according to the test item description parameters so as to trigger the vehicle machine to be tested to execute the vehicle machine function corresponding to the target operation position; the signal analysis module is used for analyzing a feedback signal generated by the vehicle machine to be tested to obtain a test feedback value when the execution of the vehicle machine function is finished; and the result determining module is used for determining a test result corresponding to the vehicle machine to be tested based on the expected feedback value and the test feedback value.
In a third aspect, an embodiment of the present invention further provides a car machine test system, which includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any one of the methods provided in the first aspect.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement any one of the methods provided in the first aspect.
The vehicle testing method and device provided by the embodiment of the invention are applied to a vehicle testing system, the vehicle testing system is in communication connection with a vehicle networking terminal of a vehicle to be tested, a graphical user interface is provided through the vehicle networking terminal, first, testing configuration parameters (at least including testing item description parameters and expected feedback values) corresponding to the vehicle to be tested are obtained, then, simulation trigger operation is executed aiming at a target operation position in the graphical user interface according to the testing item description parameters so as to trigger the vehicle to be tested to execute vehicle functions corresponding to the target operation position, when the execution of the vehicle functions is finished, feedback signals generated by the vehicle to be tested are collected and analyzed to obtain testing feedback values, and finally, the testing result corresponding to the vehicle to be tested is determined based on the expected feedback values and the testing feedback values. Compared with the manual test mode in the prior art, the method provided by the embodiment of the invention has the advantages that the simulation trigger operation is used for triggering the vehicle machine to be tested to execute the corresponding vehicle machine function, the manual participation in the vehicle machine test is not needed, the labor cost required by the vehicle machine test is remarkably saved, the vehicle machine test efficiency can be effectively improved, the vehicle machine test cost is reduced, and the reliability of the vehicle machine test result is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of a vehicle-mounted device testing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a vehicle testing system according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another in-vehicle testing method according to an embodiment of the present invention;
fig. 4 is an application scenario diagram of a car machine testing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a vehicle testing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another in-vehicle testing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the embodiments, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, a manual testing mode needs a lot of vehicle control equipment hardware support, pressure testing cannot be achieved, and the problems of low testing efficiency, high testing cost, poor reliability of testing results and the like exist.
To facilitate understanding of the embodiment, a car machine testing method disclosed in the embodiment of the present invention is first described in detail, where the method is applied to a car machine testing system, the car machine testing system is in communication connection with a car networking terminal of a car machine to be tested, and a graphical User Interface is provided through the car networking terminal, where the graphical User Interface is also UI (User Interface Design), and the graphical User Interface may provide multiple virtual controls, and the virtual controls may be menu controls or function controls, and the car machine testing method provided in the embodiment of the present invention may be applied to any vehicle equipped with a car networking terminal, and refer to a flowchart of the car machine testing method shown in fig. 1, where the method mainly includes the following steps S102 to S108:
and S102, acquiring test configuration parameters corresponding to the vehicle machine to be tested. The test configuration parameters at least include test item description parameters and expected feedback values, the test item description parameters may include a test item name corresponding to at least one vehicle machine function, a control identifier, an interface identifier where the control is located, and a control operation type, the control operation type may include clicking, moving, and the like, and the expected feedback values are used for representing object states expected to be fed back by the vehicle machine to be tested. In an embodiment, a parameter configuration table may be provided for a tester, the tester may fill test configuration parameters in the parameter configuration table, and the in-vehicle test system may further provide an upload channel for the tester, so as to obtain the parameter configuration table uploaded by the tester, and read the test configuration parameters in the parameter configuration table.
And step S104, according to the test item description parameters, executing simulation trigger operation aiming at the target operation position in the graphical user interface so as to trigger the vehicle machine to be tested to execute the vehicle machine function corresponding to the target operation position. And the target operation position can display a function control corresponding to the car machine function. In an implementation manner, a target interface corresponding to an interface identifier where a control is located may be provided through a graphical user interface, a function control corresponding to the control identifier is displayed on the target interface, and if the control operation type corresponding to the function control is a click, it may be determined that the simulated trigger operation is a click operation, and an automatic click program is used to click a target operation position where the function control is located, so as to trigger the vehicle machine to be tested to execute a corresponding vehicle machine function.
And S106, when the function execution of the car machine is finished, analyzing a feedback signal generated by the car machine to be tested to obtain a test feedback value. The feedback signal may be a Controller Area Network (CAN) signal, the CAN signal at least includes a CAN message, and the test feedback value is used to represent an object state fed back by the vehicle device under test. In an implementation mode, the CAN signal generated by the vehicle machine to be tested CAN be monitored and collected in real time, and the CAN message is analyzed by using a preset communication protocol to obtain a test feedback value.
And S108, determining a test result corresponding to the vehicle machine to be tested based on the expected feedback value and the test feedback value. The test result may include test success or test failure, and may also include a reason for the test failure, an execution performance level, a stress performance level, and the like, and the test result may be provided to a tester in a report form. In an embodiment, whether the expected feedback value is consistent with the test feedback value or not can be compared, and if not, the test failure of the vehicle machine to be tested is determined. In addition, a time condition can be set, for example, timing is started from the execution of the simulation trigger operation on the target operation position, and the timing is stopped when the feedback signal is acquired, and if the timing duration is longer than the preset duration, even if the expected feedback value is consistent with the test feedback value, the test failure of the vehicle machine to be tested can be determined.
According to the car machine testing method provided by the embodiment of the invention, the simulation trigger operation can be executed according to the test item description parameters aiming at the target operation position in the graphical user interface, the feedback signal generated by the car machine to be tested is analyzed to obtain the test feedback value, and the test result is obtained on the basis of the expected feedback value and the test feedback value.
In an embodiment, the vehicle testing method is applied to a vehicle testing system, and for convenience of understanding, referring to a schematic structural diagram of the vehicle testing system shown in fig. 2, the vehicle testing system includes a testing cloud platform, an automatic testing platform and a vehicle monitoring platform, both the automatic testing platform and the vehicle monitoring platform are in communication connection with the testing cloud platform, and the automatic testing platform and the vehicle monitoring platform are also in communication connection with a vehicle networking terminal. The test cloud platform is used for acquiring test configuration parameters corresponding to the vehicle machine to be tested and determining a test result corresponding to the vehicle machine to be tested based on the expected feedback value and the test feedback value; the automatic test platform is used for executing simulation trigger operation aiming at a target operation position in the graphical user interface; the vehicle monitoring platform is used for acquiring and analyzing a feedback signal generated by the vehicle machine to be tested to obtain a test feedback value.
On the basis, when the vehicle testing system executes the step of obtaining the test configuration parameters corresponding to the vehicle to be tested, the parameter configuration table can be provided through the testing cloud platform, the parameter configuration table can be provided by software developers, the testers can conveniently and quickly fill the test configuration parameters on the testing cloud platform, and the test configuration parameters are sent to the automatic testing platform through the testing cloud platform after being filled. Illustratively, the test configuration parameters include a test item name corresponding to at least one test item (which may be understood as a car machine function), a control identifier (i.e., an Identity Document (ID), a button/ID), an interface identifier where the control is located (i.e., an object package name, an interface name, a package name/. avidity), a control operation type (i.e., move/click), an expected feedback value (i.e., an object state), and a test number of each test item, as shown in table 1 below:
TABLE 1
Name of test item button/id Package name/. availability move/click Object state Number of tests
Air conditioner on B1 A1 click Is opened 10
Air conditioner temperature regulation B2 A2 move 26℃ 10
After receiving the test configuration parameters, the automated testing platform will execute a simulation trigger operation for the target operation position in the graphical user interface according to the test item description parameters, and in an embodiment, the automated testing platform may execute step S104 according to the following (1) to (3):
(1) and triggering the graphical user interface to provide a target interface corresponding to the interface identification where the control is located. Taking table 1 as an example, the automated testing platform may trigger a graphical user interface of the car networking terminal to provide a target interface corresponding to an interface identifier a1 where a control is located, where a virtual control displayed on the target interface at least includes an air conditioner on-off control.
(2) And determining a target operation position from the target interface according to the control identification and the preset mapping relation. The preset mapping relation comprises a mapping relation between the control identification and the operation position. Continuing with table 1 as an example, a target operation position corresponding to the control identifier B1 may be searched in the preset mapping relationship, an air conditioner on-off control is displayed at the target operation position of the target interface, and the target operation position may be represented by coordinates (x, y).
(3) And executing the simulation trigger operation corresponding to the control operation type aiming at the target operation position. Continuing with table 1 as an example, the automatic test platform may use an automation program to click the target operation position to trigger the vehicle under test to control the air conditioner to be turned on.
Considering that the execution of the analog trigger operation may fail, in order to facilitate a tester to know the reason for the execution failure, the operation execution result of the analog trigger operation may be monitored, and the reason for the execution failure of the analog trigger operation may be determined when the operation execution result is the execution failure. The reason for the failure of execution may include that there is no corresponding virtual control in the target interface, the virtual control is inoperable, the automation program crashes, an execution timeout, or others. For example, when the control identifier is not matched with the interface identifier where the control is located, a situation that there is no corresponding virtual control in the target interface may occur; when the virtual control is in a locked state, such as when the air conditioner is not turned on, the air conditioner temperature adjusting control is in a locked state, and the situation that the virtual control is not operable occurs.
Please refer to fig. 2, when the simulation trigger operation is successfully executed, the car machine to be tested executes the car machine function, and generates a CAN signal when the car machine function is completely executed, the vehicle monitoring platform CAN collect the CAN signal of the car networking terminal through the CAN bus, analyze the CAN message according to the preset communication protocol to obtain a test feedback value, and send the test feedback value to the cloud testing platform, and the cloud testing platform determines whether the car machine test is successful.
When the cloud test platform judges whether the vehicle machine test is successful, whether the expected feedback value is consistent with the test feedback value can be judged; if so, determining that the test result corresponding to the vehicle machine to be tested is successful; and if not, determining that the test result corresponding to the vehicle machine to be tested is test failure. For example, when the expected feedback value is "air conditioner on", if the analyzed test feedback value is also "air conditioner on", it may be determined that the test is successful, and if the analyzed test feedback value is also "air conditioner off", it may be determined that the test is failed.
In addition, the testing cloud platform can also judge whether the vehicle machine test is successful or not based on the function execution duration (namely, the timing duration). For exemplary purposes, see steps 1 through 3 below:
step 1, judging whether a feedback signal generated by a vehicle machine to be tested is collected within a preset time length. If yes, executing step 2; if not, step 3 is executed. In an embodiment, whether a feedback signal generated by a vehicle machine to be tested is collected within a preset time period can be judged according to the following steps 1.1 to 1.2:
and 1.1, recording the operation execution time of the simulation trigger operation and the acquisition time of the feedback signal. In one embodiment, the operation execution time t1 of the simulation trigger operation may be recorded by the automated testing platform and sent to the testing cloud platform, and the collection time t2 of the CAN signal is collected by the vehicle monitoring platform and returned to the testing cloud platform.
And step 1.2, calculating the time difference between the operation execution time and the acquisition time to obtain the function execution duration required by the vehicle machine to be tested to execute the vehicle machine function. In one embodiment, the cloud test platform may calculate the time difference t 0-t 2-t1, which is the time duration of the function execution, t 0. If the function execution time period t0 is less than or equal to the preset time period, determining that the feedback signal is acquired within the preset time period; otherwise, it is determined that the feedback signal is not acquired within the preset time.
And 2, determining that the test result corresponding to the vehicle machine to be tested is successful. For example, assuming that the preset time duration is 10 seconds, if the function execution time duration is less than or equal to 10 seconds, the test result is determined to be successful.
And step 3, determining that the test result corresponding to the vehicle machine to be tested is test failure. For example, assuming that the preset time duration is 10 seconds, if the function execution time duration exceeds 10 seconds, the test result is determined to be successful.
For convenience of understanding, an embodiment of the present invention further provides an application example of a car machine testing method, and referring to a flow diagram of another car machine testing method shown in fig. 3, the method mainly includes the following steps S302 to S318:
step S302, test configuration parameters are obtained through the test cloud platform.
And step S304, simulating and triggering a target operation position in a graphical user interface of the Internet of vehicles terminal through the automatic test platform.
And step S306, checking whether the click operation is successfully executed through the automatic test platform. If yes, go to step S308; if not, step S316 is performed.
And step S308, collecting the CAN signal through the vehicle monitoring platform, and judging whether the function execution time is overtime or not through the test cloud platform. If yes, go to step S316; if not, step S310 is performed.
And step S310, analyzing the CAN message through the vehicle monitoring platform to obtain a test feedback value.
Step S312, determining whether the test feedback value is consistent with the expected feedback value through the test cloud platform. If yes, go to step S314; if not, step S316 is performed.
Step S314, determining that the test is successful.
Step S316, it is determined that the test failed.
And step S318, generating a test report through the test cloud platform and storing a test log. In practical application, by generating the test report and storing the test log, the tester can conveniently check and analyze the problems of the vehicle machine to be tested, so that the problem solving efficiency of the tester is improved.
In an embodiment, the function execution duration may also be used to evaluate the execution performance and the pressure performance of the car machine to be tested, and embodiments of the present invention respectively provide an implementation manner for evaluating the execution performance and the pressure performance, which is as follows:
in a first mode, the execution performance is evaluated: (1) calculating the duration and the value of the function execution duration of each vehicle machine function executed by the vehicle machine to be tested; (2) and determining a target execution performance grade corresponding to the vehicle machine to be tested from preset execution performance grades according to the duration and the value. In specific implementation, a software performance standard may be configured in advance, and the software performance standard may embody the performance of the single function executed by the vehicle machine to be tested, for example, the software performance standard specifies that the function execution duration of a certain vehicle machine function is in a range of 0 to 3s corresponding to an excellent level, the function execution duration is in a range of 3s to 5s corresponding to a qualified level, and the function execution duration is greater than 5s corresponding to an unqualified level.
In one embodiment, the automatic test platform is used for continuously testing a plurality of vehicle machine functions, counting the function execution time of each vehicle machine function, and evaluating the execution performance of the vehicle machine integrated service to be tested according to the time length and the value of the function execution time length. For example, assuming that two functions of "air conditioner on" and "air conditioner temperature adjustment" are continuously executed, the corresponding relationship between the total time consumption of the two functions and the execution performance level is pre-configured according to the software performance standard, and the target execution performance level corresponding to the time duration and the value is found out based on the corresponding relationship, and the target execution performance level can embody the execution performance of the integrated service of the vehicle machine to be tested.
Mode two, the pressure performance was evaluated: (1) for each car machine function, determining the execution overtime times according to the preset time length and the function execution time length of the car machine to be tested for executing the car machine function each time; (2) and determining a target pressure performance grade corresponding to the vehicle machine to be tested from the preset pressure performance grades according to the execution overtime times. The pressure performance can represent the stability of the hardware of the vehicle to be tested, and the execution overtime times, namely the times that the function execution duration is greater than the preset time, are obtained. In an embodiment, the test configuration parameters further include the number of times of testing each car machine function, and the target pressure performance level corresponding to the car machine to be tested is detected through a large number of repetitive operations. For example, whether the function execution time length for executing the vehicle machine function each time exceeds the preset time length or not can be judged, the times exceeding the preset time length are counted to obtain the execution overtime times, and the corresponding target pressure performance grade can be found based on the corresponding relation between the preset execution overtime times and the pressure performance grade.
For example, according to the design life of the car machine to be tested for m years, the number of times of use of the car machine to be tested per day n is estimated, the car machine function of the car machine to be tested is subjected to life pressure test for m times of 365 times of n times of 5 times, and the automatic test platform can analyze the reason of test failure through the buried points according to the pressure stability test, so that a tester can solve the stability problem of the car machine to be tested before mass production. Compared with a manual testing mode in the prior art, the method and the device for testing the vehicle network terminal can test the functions of a single vehicle machine for thousands of times through the automatic testing platform, and can detect the stability of the vehicle network terminal in long-time running.
In order to facilitate a tester to find a reason for a test failure, the car networking terminal provided in the embodiment of the present invention is configured with at least one processing logic corresponding to a car machine function, each processing logic is added with a test embedded point, and the test embedded point is configured to instruct the car networking terminal to generate a test log corresponding to the processing logic when execution of the processing logic is completed. For example, referring to an application scenario diagram of a car machine testing method shown in fig. 4, fig. 4 illustrates that the car machine function includes N processing logics, test embedded points are added between each processing logic, and the number of the test embedded points is N.
On the basis of fig. 4, an embodiment of the present invention further provides an implementation manner of determining a target processing logic that affects performance of a vehicle device under test, which is shown in the following (a) to (d):
and (I) judging whether a test log corresponding to each processing logic is received. If yes, executing (two); if not, (IV) is performed. With continuing reference to fig. 4, fig. 4 illustrates that the automated testing platform simulates clicking or sliding a target operation position in a graphical user interface, the car networking terminal executes processing logic corresponding to the car machine function, a test log corresponding to the corresponding processing logic is generated each time the processing logic is executed to a test burying point, and the vehicle monitoring platform receives the test log through the CAN bus, so as to determine whether the test log corresponding to each processing logic is received through the vehicle monitoring terminal. Optionally, the vehicle monitoring platform and the vehicle networking terminal may establish a communication connection through a PCAN (CAN to USB interface).
And secondly, determining the logic execution time length of each processing logic according to the test log corresponding to each processing logic. In a specific implementation, the test log records the execution start time and the execution end time of the corresponding processing logic, so that the logic execution time length to each processing logic can be determined.
And thirdly, determining target processing logic influencing the performance of the vehicle machine to be tested from the processing logic according to the logic execution duration. For example, if the logic execution duration of processing logic 1 is greater than the specified duration, then processing logic 1 may be determined as the target processing logic; or selecting one or more processing logics with longer logic execution time length as the target processing logic according to the sequence of the logic execution time lengths from large to small.
And (IV) if the test log corresponding to the processing logic is not received, determining the processing logic as the target processing logic influencing the performance of the vehicle machine to be tested. For example, if the processing logic 2 fails to execute, which results in that the test log is not successfully generated, at this time, the vehicle monitoring platform cannot acquire the test log corresponding to the processing logic 2, and at this time, the processing logic 2 may be directly determined as the target processing logic.
The target processing logic, namely the influence factors of the vehicle machine performance, can determine the processing logic influencing the execution performance in the vehicle machine function by analyzing the test logs corresponding to the test embedded points. In an optional implementation mode, a function report, a performance report, a stability report and a related log can be generated, so that testers can optimize the functions of the vehicle machine and improve the soundness of software functions conveniently, and can also optimize the performance of software and the stability of the software conveniently, and the service life of the software is prolonged.
For the car machine testing method provided by the foregoing embodiment, an embodiment of the present invention provides a car machine testing apparatus, which is applied to a car machine testing system, the car machine testing system is in communication connection with a car networking terminal of a car machine to be tested, and a graphical user interface is provided through the car networking terminal, referring to a schematic structural diagram of the car machine testing apparatus shown in fig. 5, the apparatus includes the following parts:
a parameter configuration module 502, configured to obtain a test configuration parameter corresponding to the vehicle device under test; wherein the test configuration parameters at least comprise test item description parameters and expected feedback values;
the function triggering module 504 is configured to execute a simulated triggering operation for a target operation position in the graphical user interface according to the test item description parameter, so as to trigger the vehicle machine to be tested to execute a vehicle machine function corresponding to the target operation position;
the signal analysis module 506 is configured to analyze a feedback signal generated by the vehicle device under test to obtain a test feedback value when the execution of the vehicle device function is finished;
and a result determining module 508, configured to determine a test result corresponding to the vehicle device under test based on the expected feedback value and the test feedback value.
The vehicle machine testing device provided by the embodiment of the invention can execute the simulation trigger operation aiming at the target operation position in the graphical user interface according to the description parameters of the test items, analyze the feedback signal generated by the vehicle machine to be tested to obtain the test feedback value, and obtain the test result on the basis of the expected feedback value and the test feedback value.
In one embodiment, the test item description parameters include a control identifier corresponding to at least one vehicle machine function, an interface identifier where the control is located, and a control operation type; the function triggering module 504 is further configured to: triggering a graphic user interface to provide a target interface corresponding to the interface identifier where the control is located; determining a target operation position from a target interface according to the control identification and a preset mapping relation; the preset mapping relation comprises a mapping relation between a control identification and an operation position; and executing the simulation trigger operation corresponding to the control operation type aiming at the target operation position.
In one embodiment, the result determination module 508 is further configured to: judging whether the expected feedback value is consistent with the test feedback value; if so, determining that the test result corresponding to the vehicle machine to be tested is successful; and if not, determining that the test result corresponding to the vehicle machine to be tested is test failure.
In one embodiment, the result determination module 508 is further configured to: judging whether a feedback signal generated by the vehicle machine to be tested is acquired within a preset time length; wherein, the feedback signal comprises a CAN message; if so, determining that the test result corresponding to the vehicle machine to be tested is successful; and if not, determining that the test result corresponding to the vehicle machine to be tested is test failure.
In one embodiment, the result determination module 508 is further configured to: recording operation execution time of the simulation trigger operation and acquisition time of the feedback signal; calculating the time difference between the operation execution time and the acquisition time to obtain the function execution duration required by the vehicle machine to be tested to execute the vehicle machine function; and if the function execution time length is less than or equal to the preset time length, determining that the feedback signal is acquired within the preset time length.
In one embodiment, the apparatus further includes an execution level determining module configured to: calculating the duration and the value of the function execution duration of each vehicle machine function executed by the vehicle machine to be tested; and determining a target execution performance grade corresponding to the vehicle machine to be tested from the preset execution performance grades according to the duration and the value.
In one embodiment, the test configuration parameters further include a number of tests per test item; the apparatus further comprises a pressure level determination module configured to: for each car machine function, determining the execution overtime times according to the preset time length and the function execution time length of the car machine to be tested for executing the car machine function each time; and determining a target pressure performance grade corresponding to the vehicle machine to be tested from the preset pressure performance grades according to the execution overtime times.
In one embodiment, at least one processing logic corresponding to the car machine function is configured in the car networking terminal, a test embedded point is added to each processing logic, and the test embedded point is used for indicating the car networking terminal to generate a test log corresponding to the processing logic when the execution of the processing logic is finished; the apparatus further comprises a logic determination module configured to: judging whether a test log corresponding to each processing logic is received; if yes, determining the logic execution duration of each processing logic according to the test log corresponding to each processing logic; determining target processing logic influencing the performance of the vehicle machine to be tested from the processing logic according to the logic execution duration; and if not, determining the processing logic as the target processing logic influencing the performance of the vehicle machine to be tested.
In one embodiment, the apparatus further includes an operation monitoring module configured to: monitoring an operation execution result of the simulation trigger operation; and if the execution result of the operation is execution failure, determining the reason of the execution failure of the simulation trigger operation.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention provides a vehicle machine test system, which particularly comprises a processor and a storage device, wherein the processor is used for processing a vehicle test signal; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above described embodiments.
Fig. 6 is a schematic structural diagram of another car machine test system according to an embodiment of the present invention, where the car machine test system 100 includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, wherein the processor 60, the communication interface 63 and the memory 61 are connected through the bus 62; the processor 60 is arranged to execute executable modules, such as computer programs, stored in the memory 61.
The Memory 61 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 62 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
The memory 61 is used for storing a program, the processor 60 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 60, or implemented by the processor 60.
The processor 60 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 60. The Processor 60 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 61, and the processor 60 reads the information in the memory 61 and, in combination with its hardware, performs the steps of the above method.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The vehicle machine testing method is applied to a vehicle machine testing system, the vehicle machine testing system is in communication connection with a vehicle networking terminal of a vehicle machine to be tested, a graphical user interface is provided through the vehicle networking terminal, and the method comprises the following steps:
acquiring test configuration parameters corresponding to the vehicle machine to be tested; wherein the test configuration parameters include at least test item description parameters and expected feedback values;
according to the test item description parameters, executing simulation trigger operation aiming at a target operation position in the graphical user interface so as to trigger the vehicle machine to be tested to execute a vehicle machine function corresponding to the target operation position;
when the function execution of the car machine is finished, analyzing a feedback signal generated by the car machine to be tested to obtain a test feedback value;
and determining a test result corresponding to the vehicle machine to be tested based on the expected feedback value and the test feedback value.
2. The method according to claim 1, wherein the test item description parameters include a control identifier corresponding to at least one vehicle machine function, an interface identifier where the control is located, and a control operation type;
the step of executing a simulation trigger operation aiming at a target operation position in the graphical user interface according to the test item description parameters comprises the following steps:
triggering the graphical user interface to provide a target interface corresponding to the interface identification where the control is located;
determining a target operation position from the target interface according to the control identification and a preset mapping relation; the preset mapping relation comprises a mapping relation between a control identification and an operation position;
and executing the simulation trigger operation corresponding to the control operation type aiming at the target operation position.
3. The method according to claim 1, wherein the step of determining the corresponding test result of the car machine under test based on the expected feedback value and the test feedback value comprises:
judging whether the expected feedback value is consistent with the test feedback value;
if so, determining that the test result corresponding to the vehicle machine to be tested is successful; and if not, determining that the test result corresponding to the vehicle machine to be tested is test failure.
4. The method of claim 1, further comprising:
judging whether a feedback signal generated by the vehicle machine to be tested is acquired within a preset time length; wherein the feedback signal comprises a CAN message;
if so, determining that the test result corresponding to the vehicle machine to be tested is successful; and if not, determining that the test result corresponding to the vehicle machine to be tested is test failure.
5. The method according to claim 4, wherein the step of determining whether the feedback signal generated by the vehicle machine under test is collected within a preset time period comprises:
recording the operation execution time of the simulation trigger operation and the acquisition time of a feedback signal;
calculating the time difference between the operation execution time and the acquisition time to obtain the function execution duration required by the vehicle machine to be tested to execute the vehicle machine function;
and if the function execution time length is less than or equal to a preset time length, determining that the feedback signal is acquired within the preset time length.
6. The method of claim 5, further comprising:
calculating the duration and the value of the function execution duration of each vehicle machine function executed by the vehicle machine to be tested;
and determining a target execution performance grade corresponding to the vehicle machine to be tested from preset execution performance grades according to the duration and the value.
7. The method of claim 5, wherein the test configuration parameters further include a number of tests per test item;
the method further comprises the following steps:
for each vehicle machine function, determining the execution overtime frequency according to the preset time length and the function execution time length of the vehicle machine to be tested for executing the vehicle machine function each time;
and determining a target pressure performance grade corresponding to the vehicle machine to be tested from preset pressure performance grades according to the execution overtime times.
8. The method according to claim 1, wherein at least one processing logic corresponding to the car machine function is configured in the car networking terminal, each processing logic is added with a test embedded point, and the test embedded point is used for instructing the car networking terminal to generate a test log corresponding to the processing logic when the execution of the processing logic is finished;
the method further comprises the following steps:
judging whether a test log corresponding to each processing logic is received;
if so, determining the logic execution duration of each processing logic according to the test log corresponding to each processing logic, and determining a target processing logic influencing the performance of the vehicle machine to be tested from the processing logic according to the logic execution duration;
and if not, determining the processing logic as target processing logic influencing the performance of the vehicle machine to be tested.
9. The method of claim 1, further comprising:
monitoring an operation execution result of the simulation trigger operation;
and if the operation execution result is execution failure, determining the reason of the execution failure of the simulation trigger operation.
10. The utility model provides a car machine testing arrangement, its characterized in that, the device is applied to car machine test system, car machine test system and the car networking terminal communication connection of the car machine that awaits measuring, through car networking terminal provides graphical user interface, the device includes:
the parameter configuration module is used for acquiring test configuration parameters corresponding to the vehicle machine to be tested; wherein the test configuration parameters include at least test item description parameters and expected feedback values;
the function triggering module is used for executing simulation triggering operation aiming at a target operation position in the graphical user interface according to the test item description parameters so as to trigger the vehicle machine to be tested to execute the vehicle machine function corresponding to the target operation position;
the signal analysis module is used for analyzing a feedback signal generated by the vehicle machine to be tested to obtain a test feedback value when the execution of the vehicle machine function is finished;
and the result determining module is used for determining a test result corresponding to the vehicle machine to be tested based on the expected feedback value and the test feedback value.
CN202111650955.8A 2021-12-30 2021-12-30 Vehicle machine testing method and device Pending CN114326677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111650955.8A CN114326677A (en) 2021-12-30 2021-12-30 Vehicle machine testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111650955.8A CN114326677A (en) 2021-12-30 2021-12-30 Vehicle machine testing method and device

Publications (1)

Publication Number Publication Date
CN114326677A true CN114326677A (en) 2022-04-12

Family

ID=81018750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111650955.8A Pending CN114326677A (en) 2021-12-30 2021-12-30 Vehicle machine testing method and device

Country Status (1)

Country Link
CN (1) CN114326677A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022219A (en) * 2022-05-19 2022-09-06 宁波波导易联电子有限公司 Vehicle machine system testing method and system based on CAN network protocol
CN115267379A (en) * 2022-06-30 2022-11-01 中国第一汽车股份有限公司 ETC vehicle-mounted unit automatic testing device and method and vehicle testing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022219A (en) * 2022-05-19 2022-09-06 宁波波导易联电子有限公司 Vehicle machine system testing method and system based on CAN network protocol
CN115267379A (en) * 2022-06-30 2022-11-01 中国第一汽车股份有限公司 ETC vehicle-mounted unit automatic testing device and method and vehicle testing system

Similar Documents

Publication Publication Date Title
CN114326677A (en) Vehicle machine testing method and device
CN106874187B (en) Code coverage rate collection method and device
CN110908888B (en) Server testing method and device
CN111045879B (en) Method, device and storage medium for generating pressure test report
CN109359032B (en) Test data collection method, device and system and electronic equipment
CN109218136B (en) WIFI connection performance test method and device, computer equipment and storage medium
CN111124911A (en) Automatic testing method, device, equipment and readable storage medium
CN111522725A (en) SSD performance automatic evaluation method, device, equipment and medium
CN113079061B (en) Internet of things performance testing method and system
CN113839825A (en) Equipment fault detection method, system, device, computer equipment and storage medium
CN113535538A (en) Application full-link automatic testing method and device, electronic equipment and storage medium
CN111190801A (en) Recommendation system testing method and device and electronic equipment
CN108196992B (en) Automatic performance testing method and device
CN112131128B (en) Data testing method and device, storage medium and electronic device
CN114564381A (en) Complete machine production and test method for Internet of things equipment
CN112948276A (en) Fuzzy test method and device and electronic equipment
CN112148621A (en) Test method and device and electronic equipment
CN107102938B (en) Test script updating method and device
CN114168432B (en) Application program power consumption detection method and device, electronic equipment and storage medium
CN112988498B (en) Power consumption-based anomaly detection method and device, computer equipment and storage medium
CN116909800B (en) Method and device for locating crash information and storage medium
CN115827461A (en) Warning system and method for vehicle software
CN116431412A (en) Method and device for testing power consumption performance of hard disk and electronic equipment
CN117649047A (en) Virtual power generation terminal testing method and device and electronic equipment
CN115470124A (en) Test scene detection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination