CN111026640A - Vehicle-mounted equipment testing method and system, mobile terminal and storage medium - Google Patents

Vehicle-mounted equipment testing method and system, mobile terminal and storage medium Download PDF

Info

Publication number
CN111026640A
CN111026640A CN201911084005.6A CN201911084005A CN111026640A CN 111026640 A CN111026640 A CN 111026640A CN 201911084005 A CN201911084005 A CN 201911084005A CN 111026640 A CN111026640 A CN 111026640A
Authority
CN
China
Prior art keywords
test
target vehicle
mounted equipment
vehicle
instruction
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.)
Granted
Application number
CN201911084005.6A
Other languages
Chinese (zh)
Other versions
CN111026640B (en
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.)
XIAMEN LENZ COMMUNICATION Inc
Original Assignee
XIAMEN LENZ COMMUNICATION Inc
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 XIAMEN LENZ COMMUNICATION Inc filed Critical XIAMEN LENZ COMMUNICATION Inc
Priority to CN201911084005.6A priority Critical patent/CN111026640B/en
Publication of CN111026640A publication Critical patent/CN111026640A/en
Application granted granted Critical
Publication of CN111026640B publication Critical patent/CN111026640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)

Abstract

The invention is suitable for the technical field of vehicle-mounted equipment, and provides a method and a system for testing vehicle-mounted equipment, a mobile terminal and a storage medium, wherein the method comprises the following steps: receiving a test instruction, and connecting with target vehicle-mounted equipment according to the test instruction; building a test model, and carrying out function test on the target vehicle-mounted equipment according to the test model; and comparing the test result with an expected result prestored locally to generate a test result report. According to the invention, through the design of automatically connecting with the target vehicle-mounted equipment and automatically building the test model, the function test can be automatically carried out on the target vehicle-mounted equipment, the manual workload is effectively reduced, and the test efficiency and the test accuracy of the vehicle-mounted equipment are improved.

Description

Vehicle-mounted equipment testing method and system, mobile terminal and storage medium
Technical Field
The invention belongs to the technical field of vehicle-mounted equipment, and particularly relates to a vehicle-mounted equipment testing method, a vehicle-mounted equipment testing system, a mobile terminal and a storage medium.
Background
With the development of the automotive electronics industry, people have higher and higher requirements on vehicle-mounted equipment, such as vehicle-mounted entertainment multimedia. Vehicle-mounted equipment embedded with an operating system is widely popularized and is favored by the automotive electronics industry. In various embedded operating systems, Linux is widely applied to vehicle-mounted devices by virtue of various advantages such as code disclosure, stable performance, strong network function and the like. With the continuous development of vehicle-mounted systems and automatic driving, it is not difficult to predict that Linux systems will be more and more common in the future automobile market. In order to guarantee the use stability of each piece of vehicle-mounted equipment, the performance of the vehicle-mounted equipment needs to be tested at intervals, so that the vehicle-mounted equipment can be maintained or replaced timely, and the running safety of an automobile is improved.
In the existing vehicle-mounted equipment testing process, the performance of the vehicle-mounted equipment is tested in a manual mode, but the manual testing consumes a long time and has a fatigue testing period, so that the testing efficiency of the vehicle-mounted equipment is low, and the testing accuracy is low.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is that the existing vehicle-mounted equipment has low testing efficiency.
The embodiment of the invention is realized in such a way that a vehicle-mounted equipment testing method comprises the following steps:
receiving a test instruction, and connecting with target vehicle-mounted equipment according to the test instruction;
building a test model, and carrying out function test on the target vehicle-mounted equipment according to the test model;
and comparing the test result with an expected result prestored locally to generate a test result report.
Further, the step of building a test model comprises:
the method comprises the steps of obtaining locally pre-stored test parameters, and correspondingly building a simulation operation screen, a simulation GPS server, a simulation video server and a remote upgrading server according to the test parameters.
Further, the step of performing the function test on the target vehicle-mounted device according to the test model includes:
connecting the simulated GPS server with the target vehicle-mounted equipment according to a login protocol;
controlling the simulated GPS server to send a test instruction to the target vehicle-mounted equipment according to a locally pre-stored test case;
controlling the simulation operation screen to detect instruction information received by the target vehicle-mounted equipment and judging whether the instruction information is the same as the test instruction or not;
and when the instruction information is judged to be different from the test instruction, judging that the test case of the target vehicle-mounted equipment fails.
And when the instruction information is judged to be the same as the test instruction, judging that the test case of the target vehicle-mounted equipment passes.
Further, after the step of determining whether the instruction information is the same as the test instruction, the method further includes:
controlling the simulation operation screen to send instruction information to the target vehicle-mounted equipment according to the test case so as to control the target vehicle-mounted equipment to send corresponding instruction information to the simulation GPS server;
controlling the simulated GPS server to analyze the received instruction information to obtain analysis information, and judging whether the analysis information is the same as the test instruction information;
if so, judging that the test case of the target vehicle-mounted equipment is successful;
and if not, judging that the test case of the target vehicle-mounted equipment fails.
Further, the step of performing the function test on the target vehicle-mounted device according to the test model includes:
connecting the analog video server with the target vehicle-mounted equipment according to a login protocol;
controlling the simulation operation screen to send video instruction information to the target vehicle-mounted equipment according to the test case so as to control the target vehicle-mounted equipment to send corresponding instruction information to the simulation video server;
controlling the analog video server to analyze the received instruction information to obtain video analysis information, and judging whether the video analysis information is the same as the video instruction information;
if so, judging that the video test of the target vehicle-mounted equipment is successful;
and if not, judging that the video test of the target vehicle-mounted equipment fails.
Further, the step of performing the function test on the target vehicle-mounted device according to the test model includes:
connecting the remote upgrading server with the target vehicle-mounted equipment according to a login protocol;
the remote upgrading server is controlled to send an upgrading instruction to the target vehicle-mounted equipment so as to control the target vehicle-mounted equipment to download a version upgrading package according to the upgrading instruction and correspondingly upgrade the version;
controlling the simulation operation screen to obtain the current version number of the target vehicle-mounted equipment, and judging whether the current version number is a preset version number or not;
if so, judging that the version upgrading test of the target vehicle-mounted equipment is successful;
and if not, judging that the version upgrading test of the target vehicle-mounted equipment fails.
Further, the step of performing the function test on the target vehicle-mounted device according to the test model includes:
connecting the simulation operation screen with the target vehicle-mounted equipment through a serial port;
controlling the simulation operation screen to send a test instruction to the target vehicle-mounted equipment according to the test case, and after receiving the instruction, the vehicle-mounted equipment responds to the instruction and returns a result to the simulation operation screen;
the simulation operation screen analyzes the received result and judges whether the test result is an expected result;
if so, judging that the test case of the target vehicle-mounted equipment passes;
if not, judging that the test case of the target vehicle-mounted equipment fails;
another object of an embodiment of the present invention is to provide a vehicle-mounted device testing system, where the system includes:
the connection control module is used for receiving a test instruction and connecting the test instruction with target vehicle-mounted equipment according to the test instruction;
the test module is used for building a test model and carrying out function test on the target vehicle-mounted equipment according to the test model;
and the test comparison module is used for comparing the test result with an expected result which is prestored locally so as to generate a test result report.
Still further, the test module is further configured to:
the method comprises the steps of obtaining locally pre-stored test parameters, and correspondingly building a simulation operation screen, a simulation GPS server, a simulation video server and a remote upgrading server according to the test parameters.
Another objective of an embodiment of the present invention is to provide a mobile terminal, including a storage device and a processor, where the storage device is used to store a computer program, and the processor runs the computer program to make the mobile terminal execute the above vehicle-mounted device testing method.
Another object of an embodiment of the present invention is to provide a storage medium, which stores a computer program used in the mobile terminal, wherein the computer program, when executed by a processor, implements the steps of the method for testing a vehicle-mounted device.
According to the embodiment of the invention, through the design of automatically connecting with the target vehicle-mounted equipment and automatically building the test model, the function test can be automatically carried out on the target vehicle-mounted equipment, the manual workload is effectively reduced, and the test efficiency and the test accuracy of the vehicle-mounted equipment are improved.
Drawings
Fig. 1 is a flowchart of a vehicle-mounted device testing method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a vehicle-mounted device testing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an on-board device testing system according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, a flowchart of a vehicle-mounted device testing method according to a first embodiment of the present invention includes:
step S10, receiving a test instruction, and connecting with a target vehicle-mounted device according to the test instruction;
the test instruction stores a test identifier which can be stored in a digital and character mode, and the test identifier is used for pointing to the corresponding target vehicle-mounted equipment so as to ensure the connection with the target vehicle-mounted equipment;
preferably, in the step, the vehicle-mounted devices to be tested are electrically connected with each other in advance in a wire harness serial port mode, and when the test instruction is received, the test channel is correspondingly opened by acquiring the test identifier carried in the test instruction, so that the subsequent performance test aiming at the target vehicle-mounted device is effectively ensured;
step S20, building a test model, and performing function test on the target vehicle-mounted equipment according to the test model;
the test model is used for performing a function test on the target vehicle-mounted device after being simulated into a server, preferably, a plurality of test cases are stored in the test model, and the test cases can be set in quantity and parameters according to user requirements, for example, the test cases can be used for performing a test on the device state on the target vehicle-mounted device, a test on a GPS function, a test on a video function or a test on a version upgrading and updating function, and the like, and the video function is a test for a video self-checking function;
step S30, comparing the test result with the expected result pre-stored locally to generate a test result report;
the test result stores a plurality of test conclusions of the functional parameters, so that the current performance of the target vehicle-mounted equipment is objectively evaluated and evaluated through the design of comparing the test result with an expected result in the step;
according to the embodiment, the design that the test model is automatically built and automatically connected with the target vehicle-mounted equipment is adopted, so that the target vehicle-mounted equipment can be automatically subjected to function test, the manual workload is effectively reduced, and the test efficiency and the test accuracy of the vehicle-mounted equipment are improved.
Example two
Referring to fig. 2, a flowchart of a vehicle-mounted device testing method according to a second embodiment of the present invention includes the steps of:
step S11, receiving a test instruction, and connecting with a target vehicle-mounted device according to the test instruction;
the test instruction stores a test identifier which can be stored in a digital and character mode, and the test identifier is used for pointing to the corresponding target vehicle-mounted equipment so as to ensure the connection with the target vehicle-mounted equipment;
preferably, in the step, the vehicle-mounted devices to be tested are electrically connected with each other in advance in a wire harness serial port mode, and when the test instruction is received, the test channel is correspondingly opened by acquiring the test identifier carried in the test instruction, so that the subsequent performance test aiming at the target vehicle-mounted device is effectively ensured;
step S21, acquiring locally pre-stored test parameters, and correspondingly building a simulation operation screen, a simulation GPS server, a simulation video server and a remote upgrade server according to the test parameters;
the simulation operation screen, the simulation GPS server, the simulation video server and the remote upgrade server are used for respectively carrying out equipment state test, GPS function test, video function test and version upgrade function test on target vehicle-mounted equipment, and specifically, the simulation operation screen in the step is built in a serial port communication protocol mode; the simulation GPS server, the simulation video server and the remote upgrading server are all built in a TCP (transmission control protocol) manner;
step S31, connecting the simulation operation screen with the target vehicle-mounted equipment according to a serial port communication protocol, and respectively connecting the simulation GPS server, the simulation video server and the remote upgrade server with the target vehicle-mounted equipment according to a login protocol;
step S41, carrying out GPS test on the target vehicle-mounted equipment according to the simulation operation screen and the simulation GPS server to obtain a GPS test result;
specifically, the step of performing the GPS test on the target vehicle-mounted device according to the simulation operation screen and the simulation GPS server includes:
controlling the simulated GPS server to send a test instruction to the target vehicle-mounted equipment according to a locally pre-stored test case;
controlling the simulation operation screen to detect instruction information received by the target vehicle-mounted equipment and judging whether the instruction information is the same as the test instruction or not;
when the instruction information is judged to be different from the test instruction, judging that the test case of the target vehicle-mounted equipment fails;
and when the instruction information is judged to be the same as the test instruction, judging that the test case of the target vehicle-mounted equipment passes.
Controlling the simulation operation screen to send instruction information (abnormal scheduling instruction information and key alarm instruction information) to the target vehicle-mounted equipment according to the test case so as to control the target vehicle-mounted equipment to send corresponding instruction information to the simulation GPS server;
controlling the simulated GPS server to analyze the received response information to obtain analysis information, and judging whether the analysis information is the same as the test instruction information;
if so, judging that the test case of the target vehicle-mounted equipment is successful;
if not, judging that the test case of the target vehicle-mounted equipment fails;
step S51, performing video test on the target vehicle-mounted equipment according to the simulation operation screen and the simulation video server to obtain a video test result;
specifically, the step of performing a video test on the target vehicle-mounted device according to the simulation operation screen and the simulation video server includes:
controlling the simulation operation screen to send video instruction information to the target vehicle-mounted equipment according to the test case so as to control the target vehicle-mounted equipment to send corresponding instruction information to the simulation video server;
controlling the analog video server to analyze the received instruction information to obtain video analysis information, and judging whether the video analysis information is the same as the video instruction information;
if so, judging that the video test of the target vehicle-mounted equipment is successful;
and if not, judging that the video test of the target vehicle-mounted equipment fails.
Step S61, carrying out version upgrading test on the target vehicle-mounted equipment according to the simulation operation screen and the remote upgrading server to obtain a version upgrading test result;
specifically, the step of performing the version upgrade test on the target vehicle-mounted device according to the simulation operation screen and the remote upgrade server includes:
the remote upgrading server is controlled to send an upgrading instruction to the target vehicle-mounted equipment so as to control the target vehicle-mounted equipment to download a version upgrading package according to the upgrading instruction and correspondingly upgrade the version;
controlling the simulation operation screen to obtain the current version number of the target vehicle-mounted equipment, and judging whether the current version number is a preset version number or not;
if so, judging that the version upgrading test of the target vehicle-mounted equipment is successful;
and if not, judging that the version upgrading test of the target vehicle-mounted equipment fails.
Step S71, carrying out equipment state test on the target vehicle-mounted equipment according to the simulation operation screen to obtain an equipment state test result;
specifically, the step of performing the device state test on the target vehicle-mounted device according to the simulation operation screen includes:
connecting the simulation operation screen with the target vehicle-mounted equipment through a serial port;
controlling the simulation operation screen to send a test instruction to the target vehicle-mounted equipment according to the test case, and after receiving the instruction, the vehicle-mounted equipment responds to the instruction and returns a result to the simulation operation screen;
the simulation operation screen analyzes the received result and judges whether the test result is an expected result;
if so, judging that the test case of the target vehicle-mounted equipment passes;
if not, judging that the test case of the target vehicle-mounted equipment fails;
step S81, comparing the equipment state result, the GPS test result, the video test result and the version upgrading test result with an expected result prestored locally to generate a test result report;
the test result stores a plurality of test conclusions of the functional parameters, so that the current performance of the target vehicle-mounted equipment is objectively evaluated and evaluated through the design of comparing the test result with an expected result in the step;
specifically, the step may generate a test result report based on the execution result of the test items in the detection result, that is, display the total number of test items, the number of pass items, the number of fail items, and the pass rate, and simultaneously display the result (pass/fail) of each test case, where the fail item may correspondingly display the expected result and the test result, so as to facilitate the user to perform problem troubleshooting on the fail item;
in the embodiment, the protocol message of the target vehicle-mounted device is issued and received through the serial port, the function of the target vehicle-mounted device is tested, and the protocol of the target vehicle-mounted device is issued and received by each test server in a simulated mode, so that the effect of automatically testing the target vehicle-mounted device is achieved, namely, the test model is automatically set up through the design of automatically connecting with the target vehicle-mounted device, so that the function of the target vehicle-mounted device can be automatically tested, the manual workload is effectively reduced, the test efficiency and the test accuracy of the vehicle-mounted device are improved, and the test result is automatically judged and a result report is formed by automatically acquiring the result after the use case is executed.
EXAMPLE III
Referring to fig. 3, a schematic structural diagram of a vehicle-mounted device testing system 100 according to a third embodiment of the present invention is shown, including: connect control module 10, test module 11 and test and compare module 12, wherein:
and the connection control module 10 is used for receiving the test instruction and connecting the test instruction with the target vehicle-mounted equipment according to the test instruction.
And the test module 11 is used for building a test model and carrying out function test on the target vehicle-mounted equipment according to the test model.
Wherein the test module 11 is further configured to: the method comprises the steps of obtaining locally pre-stored test parameters, and correspondingly building a simulation operation screen, a simulation GPS server, a simulation video server and a remote upgrading server according to the test parameters.
Preferably, the test module 11 is further configured to: connecting the simulated GPS server with the target vehicle-mounted equipment according to a login protocol;
controlling the simulated GPS server to send a test instruction to the target vehicle-mounted equipment according to a locally pre-stored test case;
controlling the simulation operation screen to detect instruction information received by the target vehicle-mounted equipment and judging whether the instruction information is the same as the test instruction or not;
and when the instruction information is judged to be different from the test instruction, judging that the test case of the target vehicle-mounted equipment fails.
And when the instruction information is judged to be the same as the test instruction, judging that the test case of the target vehicle-mounted equipment is successful.
Further, the test module 11 is further configured to: controlling the simulation operation screen to send instruction information (abnormal scheduling instruction information and key alarm instruction information) to the target vehicle-mounted equipment according to the test case so as to control the target vehicle-mounted equipment to send corresponding instruction information to the simulation GPS server;
controlling the simulated GPS server to analyze the received instruction information to obtain analysis information, and judging whether the analysis information is the same as the test instruction information;
if so, judging that the test case of the target vehicle-mounted equipment passes;
and if not, judging that the test case of the target vehicle-mounted equipment fails.
Further, the test module 11 is further configured to: connecting the analog video server with the target vehicle-mounted equipment according to a login protocol;
controlling the simulation operation screen to send video instruction information to the target vehicle-mounted equipment according to the test case so as to control the target vehicle-mounted equipment to send corresponding instruction information to the simulation video server;
controlling the analog video server to analyze the received instruction information to obtain video analysis information, and judging whether the video analysis information is the same as the video instruction information;
if so, judging that the video test of the target vehicle-mounted equipment passes;
and if not, judging that the video test of the target vehicle-mounted equipment fails.
In addition, in this embodiment, the test module 11 is further configured to: connecting the remote upgrading server with the target vehicle-mounted equipment according to a login protocol;
the remote upgrading server is controlled to send an upgrading instruction to the target vehicle-mounted equipment so as to control the target vehicle-mounted equipment to download a version upgrading package according to the upgrading instruction and correspondingly upgrade the version;
controlling the simulation operation screen to obtain the current version number of the target vehicle-mounted equipment, and judging whether the current version number is a preset version number or not;
if so, judging that the version upgrading test of the target vehicle-mounted equipment passes;
and if not, judging that the version upgrading test of the target vehicle-mounted equipment fails.
In addition, in this embodiment, the test module 11 is further configured to: connecting the simulation operation screen with the target vehicle-mounted equipment through a serial port;
controlling the simulation operation screen to send a test instruction to the target vehicle-mounted equipment according to the test case, and after receiving the instruction, the vehicle-mounted equipment responds to the instruction and returns a result to the simulation operation screen;
the simulation operation screen analyzes the received result and judges whether the test result is an expected result;
if so, judging that the test case of the target vehicle-mounted equipment passes;
if not, judging that the test case of the target vehicle-mounted equipment fails;
and the test comparison module 12 is configured to compare the test result with an expected result pre-stored locally to generate a test result report.
According to the embodiment, the design that the test model is automatically built and automatically connected with the target vehicle-mounted equipment is adopted, so that the target vehicle-mounted equipment can be automatically subjected to function test, the manual workload is effectively reduced, and the test efficiency and the test accuracy of the vehicle-mounted equipment are improved.
Example four
Referring to fig. 4, a mobile terminal 101 according to a fourth embodiment of the present invention includes a storage device and a processor, where the storage device is used to store a computer program, and the processor runs the computer program to make the mobile terminal 101 execute the above-mentioned vehicle-mounted device testing method.
The present embodiment also provides a storage medium on which a computer program used in the above-mentioned mobile terminal 101 is stored, which when executed, includes the steps of:
receiving a test instruction, and connecting with target vehicle-mounted equipment according to the test instruction;
building a test model, and carrying out function test on the target vehicle-mounted equipment according to the test model;
and comparing the test result with an expected result prestored locally to generate a test result report. The storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
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 used as an example, in practical applications, the above-mentioned function distribution may be performed by different functional units or modules according to needs, that is, the internal structure of the storage device is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated unit may be implemented in a form of hardware, or may be implemented in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application.
Those skilled in the art will appreciate that the component structure shown in fig. 3 is not intended to limit the on-board unit testing system of the present invention and may include more or fewer components than those shown, or some of the components in combination, or a different arrangement of components, and that the on-board unit testing method of fig. 1-2 may be implemented using more or fewer components than those shown in fig. 3, or some of the components in combination, or a different arrangement of components. The units, modules, etc. referred to herein are a series of computer programs that can be executed by a processor (not shown) in the target vehicle-mounted device testing system and that can perform specific functions, and may be stored in a storage device (not shown) of the target vehicle-mounted device testing system.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (11)

1. A vehicle-mounted device testing method is characterized by comprising the following steps:
receiving a test instruction, and connecting with target vehicle-mounted equipment according to the test instruction;
building a test model, and carrying out function test on the target vehicle-mounted equipment according to the test model;
and comparing the test result with an expected result prestored locally to generate a test result report.
2. The vehicle-mounted equipment testing method according to claim 1, wherein the step of building a test model comprises:
the method comprises the steps of obtaining locally pre-stored test parameters, and correspondingly building a simulation operation screen, a simulation GPS server, a simulation video server and a remote upgrading server according to the test parameters.
3. The vehicle-mounted device testing method according to claim 2, wherein the step of performing the functional test on the target vehicle-mounted device according to the test model comprises:
connecting the simulated GPS server with the target vehicle-mounted equipment according to a login protocol;
controlling the simulated GPS server to send a test instruction to the target vehicle-mounted equipment according to a locally pre-stored test case;
controlling the simulation operation screen to detect instruction information received by the target vehicle-mounted equipment and judging whether the instruction information is the same as the test instruction or not;
and when the instruction information is judged to be different from the test instruction, judging that the test case of the target vehicle-mounted equipment fails.
And when the instruction information is judged to be the same as the test instruction, judging that the test case of the target vehicle-mounted equipment passes.
4. The in-vehicle device testing method according to claim 3, wherein after the step of determining whether the instruction information is the same as the test instruction, the method further comprises:
controlling the simulation operation screen to send instruction information to the target vehicle-mounted equipment according to the test case so as to control the target vehicle-mounted equipment to send corresponding instruction information to the simulation GPS server;
controlling the simulated GPS server to analyze the received instruction information to obtain analysis information, and judging whether the analysis information is the same as the test instruction information;
if so, judging that the test case of the target vehicle-mounted equipment passes;
and if not, judging that the test case of the target vehicle-mounted equipment fails.
5. The vehicle-mounted device testing method according to claim 2, wherein the step of performing the functional test on the target vehicle-mounted device according to the test model comprises:
connecting the analog video server with the target vehicle-mounted equipment according to a login protocol;
controlling the simulation operation screen to send video instruction information to the target vehicle-mounted equipment according to the test case so as to control the target vehicle-mounted equipment to send corresponding instruction information to the simulation video server;
controlling the analog video server to analyze the received instruction information to obtain video analysis information, and judging whether the video analysis information is the same as the video instruction information;
if so, judging that the video test of the target vehicle-mounted equipment passes;
and if not, judging that the video test of the target vehicle-mounted equipment fails.
6. The vehicle-mounted device testing method according to claim 2, wherein the step of performing the functional test on the target vehicle-mounted device according to the test model comprises:
connecting the remote upgrading server with the target vehicle-mounted equipment according to a login protocol;
the remote upgrading server is controlled to send an upgrading instruction to the target vehicle-mounted equipment so as to control the target vehicle-mounted equipment to download a version upgrading package according to the upgrading instruction and correspondingly upgrade the version;
controlling the simulation operation screen to obtain the current version number of the target vehicle-mounted equipment, and judging whether the current version number is a preset version number or not;
if so, judging that the version upgrading test of the target vehicle-mounted equipment passes;
and if not, judging that the version upgrading test of the target vehicle-mounted equipment fails.
7. The vehicle-mounted device testing method according to claim 2, wherein the step of performing the functional test on the target vehicle-mounted device according to the test model comprises:
connecting the simulation operation screen with the target vehicle-mounted equipment through a serial port;
controlling the simulation operation screen to send a test instruction to the target vehicle-mounted equipment according to the test case, and after receiving the instruction, the vehicle-mounted equipment responds to the instruction and returns a result to the simulation operation screen;
the simulation operation screen analyzes the received result and judges whether the test result is an expected result;
if so, judging that the test case of the target vehicle-mounted equipment passes;
and if not, judging that the test case of the target vehicle-mounted equipment fails.
8. An in-vehicle device testing system, the system comprising:
the connection control module is used for receiving a test instruction and connecting the test instruction with target vehicle-mounted equipment according to the test instruction;
the test module is used for building a test model and carrying out function test on the target vehicle-mounted equipment according to the test model;
and the test comparison module is used for comparing the test result with an expected result which is prestored locally so as to generate a test result report.
9. The vehicle device testing system of claim 8, wherein the testing module is further to:
the method comprises the steps of obtaining locally pre-stored test parameters, and correspondingly building a simulation operation screen, a simulation GPS server, a simulation video server and a remote upgrading server according to the test parameters.
10. A mobile terminal characterized by comprising a storage device for storing a computer program and a processor that runs the computer program to cause the mobile terminal to execute the in-vehicle device testing method according to any one of claims 1 to 7.
11. A storage medium characterized by storing a computer program for use in the mobile terminal of claim 10, the computer program, when executed by a processor, implementing the steps of the in-vehicle device testing method of any one of claims 1 to 7.
CN201911084005.6A 2019-11-07 2019-11-07 Vehicle-mounted equipment testing method, system, mobile terminal and storage medium Active CN111026640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911084005.6A CN111026640B (en) 2019-11-07 2019-11-07 Vehicle-mounted equipment testing method, system, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911084005.6A CN111026640B (en) 2019-11-07 2019-11-07 Vehicle-mounted equipment testing method, system, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111026640A true CN111026640A (en) 2020-04-17
CN111026640B CN111026640B (en) 2022-11-25

Family

ID=70201166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911084005.6A Active CN111026640B (en) 2019-11-07 2019-11-07 Vehicle-mounted equipment testing method, system, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111026640B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241160A (en) * 2020-10-20 2021-01-19 广州小鹏汽车科技有限公司 Vehicle testing method and device, vehicle detection system and test board card
CN112286805A (en) * 2020-10-27 2021-01-29 上海埃维汽车技术股份有限公司 Automatic test system based on Linux vehicle-mounted software
CN112596972A (en) * 2020-12-23 2021-04-02 文思海辉智科科技有限公司 Vehicle-mounted equipment testing method, device and system and computer equipment
CN113064823A (en) * 2021-03-30 2021-07-02 奇瑞汽车股份有限公司 Method and device for testing functions of automobile parts and computer storage medium
CN113079054A (en) * 2021-06-07 2021-07-06 智道网联科技(北京)有限公司 Monitoring method, device and system of vehicle-mounted terminal
CN113495844A (en) * 2021-07-22 2021-10-12 上汽通用五菱汽车股份有限公司 Automatic testing method, device and system based on virtual click and storage medium
CN113891381A (en) * 2021-10-08 2022-01-04 安徽江淮汽车集团股份有限公司 Test method for simulating data transmission between vehicle-mounted terminal and platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180078764A (en) * 2016-12-30 2018-07-10 (주) 블루테크솔루션 Method for providing validation procedure for automated test of application runnable on vehicle terminal, thereby supporting registeration of said application to market portal server, and developer portal server and application management server using the same
CN108769226A (en) * 2018-06-05 2018-11-06 北京智行者科技有限公司 The OAT upgrade methods and car-mounted terminal of vehicle
CN108829608A (en) * 2018-07-09 2018-11-16 北京首汽智行科技有限公司 A kind of automatization test system and method for the Intelligent vehicle-mounted terminal equipment based on automobile simulator
CN108920372A (en) * 2018-07-09 2018-11-30 北京首汽智行科技有限公司 Shared automobile intelligent car-mounted terminal automatization test system and method based on serial ports
CN110377307A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 A kind of car body controller firmware upgrade method, terminal, system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180078764A (en) * 2016-12-30 2018-07-10 (주) 블루테크솔루션 Method for providing validation procedure for automated test of application runnable on vehicle terminal, thereby supporting registeration of said application to market portal server, and developer portal server and application management server using the same
CN108769226A (en) * 2018-06-05 2018-11-06 北京智行者科技有限公司 The OAT upgrade methods and car-mounted terminal of vehicle
CN108829608A (en) * 2018-07-09 2018-11-16 北京首汽智行科技有限公司 A kind of automatization test system and method for the Intelligent vehicle-mounted terminal equipment based on automobile simulator
CN108920372A (en) * 2018-07-09 2018-11-30 北京首汽智行科技有限公司 Shared automobile intelligent car-mounted terminal automatization test system and method based on serial ports
CN110377307A (en) * 2019-07-18 2019-10-25 上海擎感智能科技有限公司 A kind of car body controller firmware upgrade method, terminal, system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241160A (en) * 2020-10-20 2021-01-19 广州小鹏汽车科技有限公司 Vehicle testing method and device, vehicle detection system and test board card
CN112286805A (en) * 2020-10-27 2021-01-29 上海埃维汽车技术股份有限公司 Automatic test system based on Linux vehicle-mounted software
CN112596972A (en) * 2020-12-23 2021-04-02 文思海辉智科科技有限公司 Vehicle-mounted equipment testing method, device and system and computer equipment
CN112596972B (en) * 2020-12-23 2024-05-03 文思海辉智科科技有限公司 Test method, device and system of vehicle-mounted equipment and computer equipment
CN113064823A (en) * 2021-03-30 2021-07-02 奇瑞汽车股份有限公司 Method and device for testing functions of automobile parts and computer storage medium
CN113064823B (en) * 2021-03-30 2024-04-09 奇瑞汽车股份有限公司 Method and device for testing functions of parts of automobile and computer storage medium
CN113079054A (en) * 2021-06-07 2021-07-06 智道网联科技(北京)有限公司 Monitoring method, device and system of vehicle-mounted terminal
CN113495844A (en) * 2021-07-22 2021-10-12 上汽通用五菱汽车股份有限公司 Automatic testing method, device and system based on virtual click and storage medium
CN113891381A (en) * 2021-10-08 2022-01-04 安徽江淮汽车集团股份有限公司 Test method for simulating data transmission between vehicle-mounted terminal and platform

Also Published As

Publication number Publication date
CN111026640B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN111026640B (en) Vehicle-mounted equipment testing method, system, mobile terminal and storage medium
CN109740222B (en) Testing device and system for automobile networking scene
CN108829608B (en) Simulator-based automatic test system and method for vehicle-mounted terminal equipment
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN105205003A (en) Automated testing method and device based on clustering system
CN105512044B (en) Update method and system for the library of object of keyword driving test
CN110928567A (en) Vehicle system upgrading method, terminal device and computer-readable storage medium
US20160283356A1 (en) Event-driven automation testing for mobile devices
CN112202639B (en) Performance test method for realizing Internet of vehicles remote control service through LoadRunner tool
CN105389263A (en) Method, system and equipment for monitoring application software permissions
CN106776243B (en) Monitoring method and device for monitoring software
CN111897724A (en) Automatic testing method and device suitable for cloud platform
CN113672441B (en) Method and device for testing intelligent equipment
CN112492052A (en) Remote debugging method and device for intelligent networked vehicle data
CN111026410A (en) Method and device for automatically deploying software of upper computer, electronic equipment and storage medium
CN113760774A (en) OTA simulation test method, platform and system
CN115934263A (en) Data processing method and device, computer equipment and storage medium
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
US20230384750A1 (en) Efficient controller data generation and extraction
CN116303069A (en) Test method, device, upper computer, system and medium of vehicle-mounted terminal
CN107205241B (en) Wireless communication detection method and equipment thereof
CN116263866B (en) Automatic burning method and equipment
CN113254113A (en) Vehicle safety defect verification method and system
CN116668432A (en) Vehicle OTA method taking performance test into consideration and storage medium
CN105045734A (en) Mobile terminal and method for quickly connecting mobile terminal with computer

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
GR01 Patent grant
GR01 Patent grant