CN113532872A - Vehicle-mounted machine road testing method, device, system and storage medium - Google Patents

Vehicle-mounted machine road testing method, device, system and storage medium Download PDF

Info

Publication number
CN113532872A
CN113532872A CN202010299940.0A CN202010299940A CN113532872A CN 113532872 A CN113532872 A CN 113532872A CN 202010299940 A CN202010299940 A CN 202010299940A CN 113532872 A CN113532872 A CN 113532872A
Authority
CN
China
Prior art keywords
test
vehicle
testing
script
machine
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
CN202010299940.0A
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.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group 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 Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202010299940.0A priority Critical patent/CN113532872A/en
Publication of CN113532872A publication Critical patent/CN113532872A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M17/00Testing of vehicles
    • G01M17/007Wheeled or endless-tracked vehicles

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention discloses a vehicle machine road testing method, device and system, wherein the method comprises the steps of receiving a preset testing script set sent by a cloud management platform, wherein the preset testing script set comprises a plurality of testing scripts correspondingly executing different vehicle machine testing tasks, controlling a vehicle machine to execute different vehicle machine testing tasks according to the preset testing script set, acquiring automatic road testing data of the vehicle machine according to vehicle machine testing task execution results, and uploading the automatic road testing data to the cloud management platform; according to the invention, the cloud management platform and the computer are combined, the vehicle is controlled to automatically execute different vehicle testing tasks according to the pre-programmed preset testing script set, all operations needing to be manually completed in the road test are automatically completed by the scripts, the testing efficiency is improved, a tester does not need to go to a testing site to test the vehicle, the potential safety hazard caused by manual testing in the vehicle road testing process is reduced, and the testing safety is improved.

Description

Vehicle-mounted machine road testing method, device, system and storage medium
Technical Field
The invention relates to the technical field of vehicle entertainment systems, in particular to a vehicle-mounted machine road testing method, device and system and a storage medium.
Background
The stability of the vehicle machine and the safety of running vehicles in relation to the reliability of the vehicle machine cause problems in the vehicle running process, and certain potential safety hazards may be caused. Therefore, in order to ensure the safety of the vehicle in the driving process, a tester needs to perform road testing and complete the vehicle machine according to the road testing data of the vehicle machine.
However, in the prior art, a method of simply manually testing a car machine is generally adopted for road testing of the car machine, or a semi-automatic testing method which requires manual assistance is adopted for road testing, and in the two methods, manual intervention is required for testers on site in the road testing process, so that the problems of low testing efficiency, high labor cost, influence on driving of a driver, certain potential safety hazard and the like are caused. Particularly, a method for completely manually testing a car machine needs a tester to go to a road test site and travel for a long distance along with a test vehicle, the car machine on the vehicle is manually operated according to test requirements in the vehicle running process, then test data of the car machine is obtained according to a large number of repeated manual operations, and abnormal problems of the car machine are manually recorded, so that in the road test process of the car machine, the tester can generate mental fatigue due to long-time manual operation, the test efficiency of road test is influenced, a driver is influenced, and potential safety hazards are caused.
Disclosure of Invention
The invention provides a vehicle-mounted machine road testing method, device, system and storage medium, which aim to solve the problems of low efficiency and low safety caused by the fact that the vehicle-mounted machine road testing needs manual participation in the testing process in the prior art.
A vehicle-mounted machine road testing method comprises the following steps:
receiving a preset test script set sent by a cloud management platform, wherein the preset test script set comprises a plurality of test scripts for correspondingly executing different vehicle machine test tasks;
controlling the car machine to execute the different car machine test tasks according to the preset test script set;
acquiring automatic road test data of the vehicle machine according to a vehicle machine test task execution result;
and uploading the automatic road test data to the cloud management platform.
Further, the preset test script set comprises a script list and a version thereof, and the script list comprises the test scripts and corresponding script serial numbers.
Further, the preset test script set further includes an operation user and an operation time, the operation user includes a user who creates the test script and a user who modifies the test script last time, and the operation time includes a time when the test script is created and a time when the test script is modified last time.
Further, the controlling the car machine to execute the different car machine test tasks according to the preset test script set includes:
receiving a remote test instruction sent by the cloud management platform;
and controlling the car machine to execute different car machine test tasks according to the remote test instruction and the preset test script set.
Further, the remote test instruction includes a target device serial number and a target script serial number, and the controlling the car machine to execute the different car machine test tasks according to the remote test instruction and the preset test script set includes:
determining target equipment for executing a test task according to the serial number of the target equipment;
extracting a corresponding target script in the preset test script set according to the target script serial number;
and controlling the target equipment to carry out automatic road test according to the target script.
Further, the automated road test data comprises:
testing the running log of the script;
running an error reporting screenshot of the test script, wherein the error reporting screenshot is a screenshot of a report error when an error occurs in the running process of the test script;
running an audio file of the test script, wherein the audio file is recorded according to the requirement of the vehicle test task in the running process of the test script;
and the passing state of the test script is used for indicating whether the test script runs successfully or not.
The utility model provides a car machine road testing arrangement, includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a preset test script set sent by a cloud management platform, and the preset test script set comprises a plurality of test scripts for correspondingly executing different vehicle machine test tasks;
the control module is used for controlling the car machine to execute the different car machine test tasks according to the preset test script set;
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring automatic road test data of a vehicle machine according to a vehicle machine test task execution result;
and the uploading module is used for uploading the automatic road test data to the cloud management platform.
The road testing device for the car machine comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the steps of the road testing method are realized when the processor executes the computer program.
The utility model provides a car machine road test system which characterized in that, includes the car machine and foretell car machine road testing arrangement of high in the clouds management platform, vehicle.
A readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned road testing method.
In one scheme implemented by the vehicle-mounted machine road testing method, the vehicle-mounted machine road testing device, the cloud management platform is combined with the vehicle-mounted machine road testing device, the corresponding testing scripts are compiled according to different vehicle-mounted machine testing tasks to obtain the preset testing script set, the vehicle-mounted machine is controlled to execute different vehicle-mounted machine testing tasks according to the preset testing script set, all vehicle-mounted machine testing tasks needing to be completed manually in the vehicle-mounted machine road testing are completed automatically by the scripts, the testing efficiency is greatly improved in a full-automatic vehicle-mounted machine testing mode by the scripts, testers can complete all the testing tasks through the cloud management platform without testing the vehicle-mounted machine at a testing site, potential safety hazards caused by manual testing in the vehicle-mounted machine road testing process are reduced, and the testing safety is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of a vehicle road testing system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a vehicle-mounted road testing method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a predetermined test script set according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a vehicle road testing device according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of the on-board unit road testing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, 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.
The car machine road testing method provided by the embodiment of the invention can be applied to a car machine road testing system shown in fig. 1, and the car machine road testing system comprises a cloud management platform 101, a car machine 102 of a vehicle and a car machine road testing device 103. The cloud management platform 101 is in communication with the vehicle machine road testing device 103 through a network, the vehicle machine road testing device 103 is in communication with a vehicle machine 102 of a vehicle through a vehicle bus, the vehicle machine road testing device 103 receives a preset testing script set sent by the cloud management platform 101, the preset testing script set comprises a plurality of corresponding testing scripts for executing different vehicle machine testing tasks, the vehicle machine is controlled to execute different vehicle machine testing tasks according to the preset testing script set, automatic road testing data of the vehicle machine are obtained according to vehicle machine testing task execution results, and finally the automatic road testing data are uploaded to the cloud management platform to generate a vehicle machine testing report.
The cloud management platform 101 may be implemented by an independent server or a server cluster formed by a plurality of servers. The vehicle road testing device 103 is a computer device, and may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In this embodiment, the in-vehicle road testing device is taken as an example of a computer for illustration, and in other embodiments, the in-vehicle road testing device may also be other computer equipment, which is not described herein again.
In an embodiment, as shown in fig. 2, a car road testing method is provided, which is described by taking the car road testing device in fig. 1 as an example, and includes the following steps:
s10: and receiving a preset test script set sent by the cloud management platform, wherein the preset test script set comprises a plurality of test scripts which correspondingly execute different vehicle machine test tasks.
And receiving a preset test script set sent by the cloud management platform so that a subsequent computer controls the vehicle machine to complete a test task according to the received preset test script set, wherein the preset test script set comprises a plurality of test scripts which correspondingly execute different vehicle machine test tasks.
Before a vehicle-mounted device test task is performed, a user submits operation information on a cloud management platform, for example, the operation information comprises a computer and a preset test script set which are connected in an appointed mode, the cloud management platform is connected with the computer in the appointed mode through a socket according to the operation information, and after the computer is connected with the computer in the appointed mode successfully, the preset test script set is sent to the socket associated with the computer, so that the computer receives the preset test script set sent by the cloud management platform.
The test script is compiled according to the vehicle-mounted test task, and the test script compiling method mainly comprises the following steps: the script is written by using Java language, Python language and XML language.
For example, in an actual vehicle test environment, a tester needs to manually test a single use case of a vehicle navigation module, and the manual operation steps of searching for a GQ in vehicle navigation and obtaining search contents are as follows:
clicking to enter vehicle navigation; clicking a search box in the vehicle navigation; inputting a keyword (for example, the keyword is GQ) in a search box; clicking a search button; judging whether the current interface information accords with expectations or not; it is determined whether a search listing is present.
According to the manual operation steps, through an Android studio coding environment, an API (application programming interface) with an open source of Android can be used for compiling scripts, a car navigation module search case is converted into a car navigation module search java test script, and the implementation mode of the scripts for searching GQ in the car navigation module is as follows:
@Test//pass
public void test001amaptest_001()throws UiObjectNotFoundException,RemoteException,IOException{
mUiautomator.clickByid(GdRetrievalApiid.GD_M AP_BEACON);
mUiautomator.clickByid(GdRetrievalApiid.GD_MAP_SEARCH_INPUT);
mUiautomator.setTextByidGdRetrievalApiid.GD_MAP_SEARCH_AROUND,"GQ");
mUiautomator.clickByid(GdRetrievalApiid.GD_MAP_SEARCH_BTN);mUiautomator.findUiObjectByid(GdRetrievalApiid.GD_MAP_STV_SEARCH_RESULT_BTN,timeMax);
mUiautomator.findUiObjectByid(GdRetrievalApiid.GD_MAP_LIST,timeMax);}
in the embodiment, a set of user operation simulation method is packaged through a UI Automator library in java, ID, coordinates and the like in an Android system of a vehicle machine are clicked to realize case test conversion, and the GQ content can be searched in a case by running a test script in a real vehicle test environment. On the basis, the pressure test of the car navigation module can be carried out through running the test script for multiple times so as to determine the input stability of the car navigation module.
In this embodiment, the encapsulation of a set of simulated user operation methods by the UI automation library in java is only an exemplary description, and in other embodiments, a set of simulated user operation methods may also be encapsulated by other means, which is not described herein again.
S20: and controlling the vehicle machine to execute different vehicle machine test tasks according to the preset test script set.
And after receiving a preset test script set sent by the cloud management platform, controlling the vehicle machine to execute different vehicle machine test tasks according to the preset test script set.
The computer controls the automatic test tasks of the vehicle machine according to a preset test script set, and the automatic test tasks include running, stopping and collecting information of the test script, and functions of starting, closing, restarting and the like of the vehicle machine equipment, so that execution of different vehicle machine test tasks is realized. And recording the abnormal conditions in the process of controlling the running of the test script so as to inquire the abnormal conditions through the subsequent time, wherein the abnormal conditions comprise script abnormal conditions and vehicle machine abnormal conditions.
In one embodiment, in the process of controlling the computer to run the test scripts, all the test scripts are not run at the same time, but run one test script after another according to requirements, so that in the process of operating the car machine according to the test scripts, interference caused by simultaneous multiple operations on car machine testing is avoided, further, influence on car machine test task execution results is avoided, and accuracy of the car machine test task execution results is improved.
For example, after receiving a preset test script set sent by the cloud management platform, matching the test script with the corresponding vehicle equipment according to the test script sequence in the preset test script set, and controlling the corresponding vehicle equipment to execute a vehicle equipment test task according to the test script sequence in the preset test script set; and controlling the car navigation module to execute the car navigation module search task to obtain an execution result of the car navigation module search task, wherein the execution result is used as automatic road test data of the car navigation module search task.
In addition, before controlling the car machine to execute the car machine test task according to the preset test script set, the successful connection between the car machine of the vehicle and the computer needs to be ensured.
For example, the Android system vehicle machine can be connected to a computer through an ABD communication protocol: the method comprises the steps that a vehicle machine enters a developer mode after being connected with a computer, a USB debugging mode is started, then the computer can automatically start to install and connect a required driver, after the driver is installed, an adb devices command is executed on the computer, after the adb devices command is executed, the computer can display a feedback interface for successful execution of the command, and at the moment, the vehicle machine is determined to be successfully connected with the computer.
After the computer is connected and the test script is compiled through the means, the cloud management platform can be used for leading the preset test script set into the vehicle machine through the computer, then the cloud management platform controls the test script to start running, and at the moment, the vehicle machine starts a vehicle machine test task automatically completed according to the test script.
In this embodiment, the car machine is connected to the computer through the ABD communication protocol for illustration only, and in other embodiments, the car machine may also be connected to the computer through other methods, for example, the car machine may be connected to the computer through a serial protocol, which is not described herein again.
S30: and acquiring the automatic road test data of the vehicle machine according to the execution result of the vehicle machine test task.
And obtaining automatic road test data of the vehicle machine according to the vehicle machine test task execution result, recording events occurring in the running process of the test scripts, and taking the recorded data as the vehicle machine test task execution result after the running of each test script is finished, so that the automatic road test data of the vehicle machine is obtained according to the vehicle machine test task execution result, and a basis is provided for a subsequent vehicle machine test report.
After the running of each test script is finished, the computer can display that the testing of the vehicle-mounted equipment corresponding to the test script is finished, and close the small window of the running script, and the state of the vehicle-mounted equipment is set to be idle.
S40: and uploading the automatic road test data to a cloud management platform.
After the automatic road test data of the vehicle machine are obtained according to the vehicle machine test task execution result, the automatic road test data are packaged and uploaded to the cloud management platform, and a vehicle machine test report is generated.
Specifically, after each test script is run, the computer can call the data request interface after running one test script and acquiring the automatic road test data, and the automatic road test data is transmitted to the cloud management platform, so that the cloud management platform can perform a plurality of secondary processes according to the automatic road test data to generate the vehicle machine test report.
For example, before the computer runs the test scripts to execute the vehicle-mounted device test task, a test uploading interface is called to insert a line of information of the test, an index ID is obtained, after each test script runs, the index ID, the specific running result of the test script and the associated file are used as automatic road test data and submitted to a single script test uploading interface, and the cloud management platform constructs a one-to-many data storage structure for the automatic road test data according to the uploading form to store the automatic road test data, so that a user can inquire the test result conveniently.
The cloud management platform can directionally monitor and display each test script in the process of executing each test script, automatically recover the running state of each test script, take the corresponding vehicle machine test task execution result as automatic road test data, and display the test state in the details of the vehicle machine single test case corresponding to the test script by the cloud management platform after the test script runs.
The existing method for testing the road of the car machine by only manually testing the car machine is generally adopted, a tester needs to travel for a long distance to a road test site along with a test vehicle, the car machine on the vehicle is manually operated according to test requirements in the vehicle traveling process, then test data of the car machine is obtained according to a large number of repeated manual operations, and abnormal problems of the car machine are manually recorded, so that the tester can generate mental fatigue due to long-time manual operation in the road test process of the car machine, the test efficiency of road testing is influenced, a driver can be influenced, and potential safety hazards are caused.
In this embodiment, through writing different car machine test tasks into the test script, through the combination of high in the clouds management platform and computer, according to predetermineeing test script set control car machine operation test script alright with accomplish different test tasks, with the artifical test operation of tester in the road test all by the automatic completion of script to can accomplish artifical complex scene that can't accomplish, reduce the potential safety hazard in the road test, reduce the test cost, full automation's operation has improved efficiency of software testing greatly.
In one embodiment, the preset test script set includes a script list, an operation user, an operation time and a version thereof. The script list comprises a test script and a corresponding script serial number, the operation users comprise a user for creating the test script and a user for modifying the test script last time, the operation time comprises the time for creating the test script and the time for modifying the test script last time, and the version of the preset test script set can comprise a plurality of versions.
The preset test script set is a set of test scripts and related description information to which a plurality of items belong, as shown in fig. 3, the entity structure of the preset test script set is a package, and the package includes a script list, an operation user, operation time and a version to which the script list belongs.
In this embodiment, the entity structure of the preset test script set is a package, which is only an exemplary illustration, and in other embodiments, the entity structure of the preset test script set may be other structures, which are not described herein again.
In this embodiment, the entity structure of the preset test script set is a package, and includes a script list, an operating user, operating time and a version to which the preset test script set belongs, so that the user can perform operations such as creation, use, modification and deletion of the test script, even the preset test script set, by entering a package under a certain existing project, and keep the operation records, so that the preset test script set can record some test scripts which need frequent testing, thereby facilitating different users to submit the same test requirements, and meanwhile, the entity structure of the preset test script set can adapt to different test requirements in a certain period and record operation conditions by modifying the content of the package.
In an embodiment, after receiving the preset test script set sent by the cloud management platform, in step S20, the vehicle device is controlled to execute different vehicle device test tasks according to the preset test script set, which specifically includes the following steps:
s21: and receiving a remote test instruction sent by the cloud management platform.
After receiving the preset test script set sent by the cloud management platform, the computer receives a remote test instruction sent by the cloud management platform so as to perform an in-vehicle machine test task according to the remote test instruction and the preset test script set.
For example, a remote test instruction of the cloud management platform is received, information such as a vehicle machine device to be tested and a test script is obtained according to analysis of the remote test instruction, the test script selected by the vehicle machine device operation instruction selected by each instruction is controlled to be operated differently according to the type of the test script, if the test script is a JAVA script, an ADB is directly called to execute an ADB command to operate the test script, if the test script is another script, a computer downloads and reads a file of the test script, and various operations are performed on the vehicle machine device by using data in the file.
S22: and controlling the vehicle machine to execute different vehicle machine test tasks according to the remote test instruction and the preset test script set.
After receiving a remote test instruction sent by the cloud management platform, controlling the vehicle machine to execute different vehicle machine test tasks according to the remote test instruction and a preset test script set, so as to obtain automatic road test data according to execution results of the different vehicle machine test tasks.
In this implementation, after receiving the preset test script set that high in the clouds management platform sent, through receiving the long-range test instruction that high in the clouds management platform sent, control the car machine to carry out different car machine test tasks according to long-range test instruction and preset test script set, the operation that the tester can send long-range test instruction through high in the clouds management platform in long-range controls the test script, and then carry out the task of car machine automated test, the tester only need operate high in the clouds management platform in the office alright in order to accomplish all car machine test tasks, the potential safety hazard in the road test has been reduced, the testing cost is reduced, full automation's operation has improved efficiency of software testing greatly.
In an embodiment, after receiving a remote test instruction sent by a cloud management platform, the cloud management platform needs to control a target device to start an automatic road test according to a target script within a specified time, otherwise, the cloud management platform disconnects a Socket connection with a computer, so that waste caused by the fact that the computer has a problem and cannot execute the automatic road test is reduced, and cost is saved.
In an embodiment, the remote test instruction includes a target device serial number and a target script serial number, and in step S22, the in-vehicle device is controlled to execute different in-vehicle device test tasks according to the remote test instruction and a preset test script set, which specifically includes the following steps:
s221: and determining the target equipment for executing the test task according to the serial number of the target equipment.
After a remote test instruction sent by the cloud management platform is received, the target equipment for executing the test task is determined according to the serial number of the target equipment.
S222: and extracting the corresponding target script in the preset test script set according to the target script serial number.
After a remote test instruction sent by the cloud management platform is received, corresponding target scripts are extracted from a preset test script set according to the target script serial numbers.
S223: and controlling the target equipment to perform automatic road test according to the target script.
And after the target equipment and the target script are determined, controlling the target equipment to perform automatic road test according to the target script.
For example, the target device corresponding to the target device serial number is a car navigation module, the target script corresponding to the target script serial number is a car navigation module search java test script, and the car navigation module is controlled to perform a car navigation module search case test according to the car navigation module search java test script to obtain search data of the car navigation module, so that the search performance of the car navigation module is determined.
In this embodiment, the remote test instruction including the target device serial number and the target script serial number is only an exemplary illustration, and in other embodiments, the remote test instruction further includes other components, such as the number of tests, which is not described again here.
In the embodiment, the remote test instruction comprises a target equipment serial number and a target script serial number, the target equipment for executing the test task is determined according to the target equipment serial number, the corresponding target script is extracted from the preset test script set according to the target script serial number, the target equipment is further controlled to perform the automatic road test according to the target script, the content of the remote test instruction is further refined, the step of controlling the vehicle machine to execute different vehicle machine test tasks according to the remote test instruction and the preset test script set is further refined according to the remote test instruction, the target equipment corresponds to the target script one by one, the possibility of errors in execution of the vehicle machine test tasks is reduced, and a reliable basis is provided for acquiring automatic road test data according to the execution result of the vehicle machine test tasks.
In one embodiment, the automated road test data comprises:
a. and testing the running log of the script.
And in the process of executing each test script, acquiring a running log of each test script so as to perform conditional query on the running condition of each test script through time, wherein the running log comprises the exception occurring when each test script is executed.
b. And running an error reporting screenshot of the test script, wherein the error reporting screenshot is a screenshot reporting an error when the error occurs in the running process of the test script.
And in the running process of each test script, automatically recovering the running state of the test script, reporting the error by the computer if the error occurs in the running process of the test script, and capturing the report error to obtain an error-reporting screenshot at the moment.
c. And running the audio file of the test script, wherein the audio file is recorded according to the requirement of the vehicle test task in the running process of the test script.
And in the running process of each test script, recording the audio file according to the requirement of the vehicle-mounted test task, and storing the audio file so as to inquire according to the requirement of a user in the following process.
d. And the pass state of the test script is used for indicating whether the test script runs successfully or not.
Wherein the pass status of each test script includes pass and fail after execution of each test script.
In this embodiment, the running log of the test script, the error reporting screenshot of the running test script, the audio file of the running test script and the audio file of the running test script are used as the automated road test data, so that the content of the automated road test data is further refined, after the automated road test data are uploaded to the cloud management platform, a tester can clearly know the specific situation that the test script controls the car machine to execute the car machine test task according to the automated road test data, and the reliability of utilizing the test script to automatically execute the car machine test task is improved.
In an embodiment, after step S40, that is, after acquiring the automated road test data of the car machine and uploading the data to the cloud management platform, the method further includes:
s41: and the cloud management platform generates a test report according to the automatic road test data of the vehicle machine and directionally displays the test report.
The test report at least comprises automatic road test data, script failure rate and script success rate. The cloud management platform receives the automatic road test data transmitted by the computer through the data request interface, performs a plurality of secondary processes according to the automatic road test data, extracts some more concise and clear statistical data, and renders the data in a chart form.
For example, the presentation form of the test report is list presentation, the running conditions of all the test scripts are all presented in a list form, and specific automatic road test data, including running logs, error reporting screenshots, audio files, car machine logs and associated pictures during running and the passing state of each script, are filled in a line where each test script is located, so that developers can refer to and analyze the running logs, the error reporting screenshots, the audio files, the car machine logs and the associated pictures, and the passing state of each script, so that the success number and the failure number of the test scripts are counted after the car machine test is completed, and the problems and the defects occurring in the car machine test process are counted.
S42: and the cloud management platform sends the test report to a specified user.
After the test report is obtained, the test report is sent to a designated user in real time on the cloud management platform, wherein the designated user is a user registered in the cloud management platform in advance.
For example, after the test report is acquired, the user who has registered information in the background is pushed the test report this time in real time.
In this embodiment, after the test report is obtained, the real-time pushing of the test report of this time to the user who has registered information in the background is merely an exemplary description, and in other embodiments, the manner of sending the test report to the specified user may be other, for example, the test report is sent to the specified user in the form of an email, which is not described herein again.
In this embodiment, after obtaining the automated road test data of the vehicle and uploading the automated road test data to the cloud management platform, the cloud management platform generates a test report according to the automated road test data of the vehicle, directionally displays the test report, and sends the test report to a designated user, so that a tester and a related designated person can obtain the vehicle test condition remotely and in real time without going to a vehicle test site.
The invention provides a vehicle machine road testing method, which is an automatic performance testing scheme of a vehicle machine in a road test, reduces the operation of people on the vehicle machine in the driving process, increases the running time of the vehicle machine in the road test, reduces the potential safety hazard in the driving process, improves the vehicle machine testing efficiency in the road test, and completes the complex scene that the manual work cannot test in the safe environment through the full-automatic operation. And the system of the vehicle machine is an Android system.
In the embodiment, a preset test script set sent by a cloud management platform is received, wherein the preset test script set comprises a plurality of test scripts for correspondingly executing different vehicle machine test tasks, the vehicle machine is controlled to execute the different vehicle machine test tasks according to the preset test script set, automatic road test data of the vehicle machine is obtained according to vehicle machine test task execution results, and the automatic road test data is uploaded to the cloud management platform; according to the vehicle-mounted machine road testing system and the vehicle-mounted machine road testing method, the cloud management platform and the computer are combined, the corresponding testing scripts are compiled according to different vehicle-mounted machine testing tasks to obtain the preset testing script set, the vehicle-mounted machine is controlled to execute different vehicle-mounted machine testing tasks according to the preset testing script set, so that all vehicle-mounted machine testing tasks needing to be completed manually in the vehicle-mounted machine road testing are completed automatically by the scripts, the testing efficiency is greatly improved in a full-automatic vehicle-mounted machine testing mode through the scripts, a tester can complete all testing tasks through the cloud management platform without testing the vehicle-mounted machine at a testing site, potential safety hazards caused by manual testing in the vehicle-mounted machine road testing process are reduced, and the testing safety is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a vehicle-mounted device road testing device is provided, and the vehicle-mounted device road testing device corresponds to the vehicle-mounted device road testing method in the embodiment one to one. As shown in fig. 4, the on-board unit road testing apparatus includes a receiving module 401, a control module 402, an obtaining module 403, and an uploading module 404. The functional modules are explained in detail as follows:
the system comprises a receiving module 401, a processing module and a processing module, wherein the receiving module 401 is used for receiving a preset test script set sent by a cloud management platform, and the preset test script set comprises a plurality of test scripts which correspondingly execute different vehicle machine test tasks;
a control module 402, configured to control the car machine to execute the different car machine test tasks according to the preset test script set;
an obtaining module 403, configured to obtain automated road test data of a vehicle machine according to a vehicle machine test task execution result;
an uploading module 404, configured to upload the automated road test data to the cloud management platform to generate a vehicle test report.
Further, the control module 402 has a function for:
receiving a remote test instruction sent by the cloud management platform;
and controlling the car machine to execute different car machine test tasks according to the remote test instruction and the preset test script set.
Further, the remote test instruction includes a target device serial number and a target script serial number, and the control module 402 further has a function of:
determining target equipment for executing a test task according to the serial number of the target equipment;
extracting a corresponding target script in the preset test script set according to the target script serial number;
and controlling the target equipment to carry out automatic road test according to the target script.
Further, the preset test script set comprises a script list and a version thereof, and the script list comprises the test scripts and corresponding script serial numbers.
Further, the preset test script set comprises an operation user and operation time, the operation user comprises a user for creating the test script and a user for modifying the test script last time, and the operation time comprises the time for creating the test script and the time for modifying the test script last time.
Further, the automated road test data comprises:
a running log of each test script;
an error reporting screenshot of each test script, wherein the error reporting screenshot is a screenshot of a report error when an error occurs in the running process of the test script;
running the audio file of each test script, wherein the audio file is recorded according to the requirement of the vehicle test task in the running process of the test script;
and running a pass state of each test script, wherein the pass state is used for indicating whether the test script is successfully run.
For specific limitations of the vehicle-mounted device road testing apparatus, reference may be made to the above limitations of the vehicle-mounted device road testing method, which is not described herein again. All or part of each module in the vehicle road testing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, the vehicle road testing device comprises a processor, a memory, a network interface and a display screen which are connected through a system bus. The processor of the vehicle road testing device is used for providing calculation and control capability. The memory of the on-board unit road testing device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the vehicle road testing device is used for being connected and communicated with an external server through a network. The computer program is executed by a processor to realize the vehicle-mounted road testing method.
In one embodiment, there is provided a vehicle road testing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the following steps:
receiving a preset test script set sent by a cloud management platform, wherein the preset test script set comprises a plurality of test scripts for correspondingly executing different vehicle machine test tasks;
controlling the vehicle machine to execute different vehicle machine test tasks according to the preset test script set;
acquiring automatic road test data of the vehicle machine according to a vehicle machine test task execution result;
and uploading the automatic road test data to the cloud management platform to generate a vehicle machine test report.
In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving a preset test script set sent by a cloud management platform, wherein the preset test script set comprises a plurality of test scripts for correspondingly executing different vehicle machine test tasks;
controlling the vehicle machine to execute different vehicle machine test tasks according to the preset test script set;
acquiring automatic road test data of the vehicle machine according to a vehicle machine test task execution result;
and uploading the automatic road test data to the cloud management platform to generate a vehicle machine test report.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. The utility model provides a car machine road test method which characterized in that includes:
receiving a preset test script set sent by a cloud management platform, wherein the preset test script set comprises a plurality of test scripts for correspondingly executing different vehicle machine test tasks;
controlling the car machine to execute the different car machine test tasks according to the preset test script set;
acquiring automatic road test data of the vehicle machine according to a vehicle machine test task execution result;
and uploading the automatic road test data to the cloud management platform.
2. The in-vehicle road testing method according to claim 1, wherein the preset testing script set comprises a script list and a version thereof, and the script list comprises the testing scripts and corresponding script serial numbers.
3. The in-vehicle road testing method according to claim 2, wherein the preset test script set further comprises an operating user and an operating time, the operating user comprises a user who creates the test script and a user who last modified the test script, and the operating time comprises a time when the test script was created and a time when the test script was last modified.
4. The vehicle-mounted machine road testing method according to claim 1, wherein the controlling the vehicle-mounted machine to execute the different vehicle-mounted machine testing tasks according to the preset testing script set comprises:
receiving a remote test instruction sent by the cloud management platform;
and controlling the car machine to execute different car machine test tasks according to the remote test instruction and the preset test script set.
5. The vehicle-mounted machine road testing method according to claim 4, wherein the remote testing instruction comprises a target device serial number and a target script serial number, and the controlling the vehicle-mounted machine to execute the different vehicle-mounted machine testing tasks according to the remote testing instruction and the preset testing script set comprises:
determining target equipment for executing a test task according to the serial number of the target equipment;
extracting a corresponding target script in the preset test script set according to the target script serial number;
and controlling the target equipment to carry out automatic road test according to the target script.
6. The on-board unit road testing method according to any one of claims 1 to 5, wherein the automated road testing data comprises:
testing the running log of the script;
running an error reporting screenshot of the test script, wherein the error reporting screenshot is a screenshot of a report error when an error occurs in the running process of the test script;
running an audio file of the test script, wherein the audio file is recorded according to the requirement of the vehicle test task in the running process of the test script;
and the passing state of the test script is used for indicating whether the test script runs successfully or not.
7. The utility model provides a car machine road testing arrangement which characterized in that includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a preset test script set sent by a cloud management platform, and the preset test script set comprises a plurality of test scripts for correspondingly executing different vehicle machine test tasks;
the control module is used for controlling the car machine to execute the different car machine test tasks according to the preset test script set;
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring automatic road test data of a vehicle machine according to a vehicle machine test task execution result;
and the uploading module is used for uploading the automatic road test data to the cloud management platform.
8. A vehicle road testing device, comprising a memory, a processor and a computer program stored in the memory and operable on the processor, wherein the processor implements the steps of the road testing method according to any one of claims 1 to 7 when executing the computer program.
9. The vehicle-mounted machine road testing system is characterized by comprising a cloud management platform, a vehicle-mounted machine of a vehicle and the vehicle-mounted machine road testing device according to claim 8.
10. A readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the steps of the car road testing method according to any one of claims 1 to 7.
CN202010299940.0A 2020-04-16 2020-04-16 Vehicle-mounted machine road testing method, device, system and storage medium Pending CN113532872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010299940.0A CN113532872A (en) 2020-04-16 2020-04-16 Vehicle-mounted machine road testing method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010299940.0A CN113532872A (en) 2020-04-16 2020-04-16 Vehicle-mounted machine road testing method, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN113532872A true CN113532872A (en) 2021-10-22

Family

ID=78088405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010299940.0A Pending CN113532872A (en) 2020-04-16 2020-04-16 Vehicle-mounted machine road testing method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN113532872A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900960A (en) * 2021-12-02 2022-01-07 中汽研软件测评(天津)有限公司 Intelligent vehicle mechanical arm test platform system
CN114913625A (en) * 2022-04-25 2022-08-16 岚图汽车科技有限公司 Processing method and device for vehicle road test
CN116361150A (en) * 2023-02-22 2023-06-30 广州汽车集团股份有限公司 Method, device and system for testing vehicle in whole vehicle simulation environment
CN116962243A (en) * 2023-08-03 2023-10-27 重庆蓝鲸智联科技有限公司 WIFI performance test method for vehicle-mounted device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1179776A1 (en) * 2000-08-11 2002-02-13 Sony Service Centre (Europe) N.V. Test automation framework
CN106649072A (en) * 2015-10-28 2017-05-10 惠州市德赛西威汽车电子股份有限公司 Test and accepting method and system for software on vehicle-mounted terminal, intelligent terminal and server
CN108415398A (en) * 2017-02-10 2018-08-17 上海辇联网络科技有限公司 Automobile information safety automation tests system and test method
CN108566323A (en) * 2018-03-21 2018-09-21 武汉乐庭软件技术有限公司 A kind of T-Box automated testing methods and system
CN108920372A (en) * 2018-07-09 2018-11-30 北京首汽智行科技有限公司 Shared automobile intelligent car-mounted terminal automatization test system and method based on serial ports
CN109039824A (en) * 2018-08-27 2018-12-18 汽解放汽车有限公司 A kind of car-mounted terminal wireless telecommunication protocol automation test macro and method
CN109165162A (en) * 2018-08-31 2019-01-08 北京车和家信息技术有限公司 A kind of test method and relevant device of onboard system
CN110162977A (en) * 2019-04-24 2019-08-23 北京邮电大学 A kind of Android vehicle-mounted terminal system leakage location and method
CN110688288A (en) * 2019-09-09 2020-01-14 平安普惠企业管理有限公司 Automatic testing method, device, equipment and storage medium based on artificial intelligence

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1179776A1 (en) * 2000-08-11 2002-02-13 Sony Service Centre (Europe) N.V. Test automation framework
CN106649072A (en) * 2015-10-28 2017-05-10 惠州市德赛西威汽车电子股份有限公司 Test and accepting method and system for software on vehicle-mounted terminal, intelligent terminal and server
CN108415398A (en) * 2017-02-10 2018-08-17 上海辇联网络科技有限公司 Automobile information safety automation tests system and test method
CN108566323A (en) * 2018-03-21 2018-09-21 武汉乐庭软件技术有限公司 A kind of T-Box automated testing methods and system
CN108920372A (en) * 2018-07-09 2018-11-30 北京首汽智行科技有限公司 Shared automobile intelligent car-mounted terminal automatization test system and method based on serial ports
CN109039824A (en) * 2018-08-27 2018-12-18 汽解放汽车有限公司 A kind of car-mounted terminal wireless telecommunication protocol automation test macro and method
CN109165162A (en) * 2018-08-31 2019-01-08 北京车和家信息技术有限公司 A kind of test method and relevant device of onboard system
CN110162977A (en) * 2019-04-24 2019-08-23 北京邮电大学 A kind of Android vehicle-mounted terminal system leakage location and method
CN110688288A (en) * 2019-09-09 2020-01-14 平安普惠企业管理有限公司 Automatic testing method, device, equipment and storage medium based on artificial intelligence

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈施杰;魏国亮;: "汽车总线自动化测试***设计", 电子科技, no. 09, 15 September 2015 (2015-09-15) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900960A (en) * 2021-12-02 2022-01-07 中汽研软件测评(天津)有限公司 Intelligent vehicle mechanical arm test platform system
CN114913625A (en) * 2022-04-25 2022-08-16 岚图汽车科技有限公司 Processing method and device for vehicle road test
CN116361150A (en) * 2023-02-22 2023-06-30 广州汽车集团股份有限公司 Method, device and system for testing vehicle in whole vehicle simulation environment
CN116361150B (en) * 2023-02-22 2024-03-01 广州汽车集团股份有限公司 Method, device and system for testing vehicle in whole vehicle simulation environment
CN116962243A (en) * 2023-08-03 2023-10-27 重庆蓝鲸智联科技有限公司 WIFI performance test method for vehicle-mounted device

Similar Documents

Publication Publication Date Title
CN113532872A (en) Vehicle-mounted machine road testing method, device, system and storage medium
CN110633209B (en) Automatic testing method and system for vehicle-mounted android multimedia navigator
CN112817872B (en) Development test system and method
CN112100080B (en) Control testing method and device, terminal equipment and computer readable storage medium
CN112596972A (en) Vehicle-mounted equipment testing method, device and system and computer equipment
CN110888414B (en) Test method for upgrading vehicle controller
CN110347085B (en) Automated test system, method, vehicle, and computer-readable medium
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN111506509A (en) Automatic testing method, device, equipment and storage medium for automobile software unit
CN111462811A (en) Automatic testing method and device, storage medium and electronic equipment
CN114880220A (en) Development system and method for vehicle automatic driving software
CN116841865A (en) Visual test method and device, electronic equipment and storage medium
CN115080299A (en) Software fault feedback processing method, device, medium and equipment
CN116108106A (en) Distributed management method, device and equipment for test vehicle and storage medium
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN112860559B (en) Upgrade test system and method
CN112230848A (en) NVM automatic configuration method, device and equipment
CN113094251A (en) Embedded system testing method and device, computer equipment and storage medium
CN113672505B (en) Multi-terminal interactive automatic regression testing method
CN113672516A (en) Automatic testing method and system for virtual screen interconnection interface control
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
US10545858B2 (en) Method for testing a graphical interface and corresponding test system
CN112306849A (en) Application program testing method and system, intelligent terminal and storage medium
CN111752823A (en) Method, device and equipment for testing vehicle-mounted power supply application software
AU2023201696B2 (en) Method and device for determining coverage in HIL testing, 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