CN114356766A - Vehicle machine testing method, related device, equipment, system and storage medium - Google Patents

Vehicle machine testing method, related device, equipment, system and storage medium Download PDF

Info

Publication number
CN114356766A
CN114356766A CN202111660182.1A CN202111660182A CN114356766A CN 114356766 A CN114356766 A CN 114356766A CN 202111660182 A CN202111660182 A CN 202111660182A CN 114356766 A CN114356766 A CN 114356766A
Authority
CN
China
Prior art keywords
test
test data
tested
data
vehicle
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
CN202111660182.1A
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.)
iFlytek Co Ltd
Original Assignee
iFlytek 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 iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN202111660182.1A priority Critical patent/CN114356766A/en
Publication of CN114356766A publication Critical patent/CN114356766A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a vehicle machine testing method, and a related device, equipment, system and storage medium, wherein the method comprises the following steps: detecting connection with a vehicle machine to be tested; reading test data for testing the test vehicle machine to be tested; and performing preset processing on the test data, wherein the preset processing comprises sending the test data to the car machine to be tested and verifying the integrity of the test data before and/or after sending the test data. Through the mode, the efficiency of the car machine test can be improved, and the test cost is reduced.

Description

Vehicle machine testing method, related device, equipment, system and storage medium
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a vehicle-mounted device testing method, and related apparatus, device, system, and storage medium.
Background
The car machine is a vehicle-mounted infotainment product installed in an automobile, and the car machine is required to be capable of realizing information communication between people and the automobile and between the automobile and the outside (the automobile and the automobile) in terms of functions. With the development of science and technology, car navigation has been developed from early CD and DVD navigation to intellectualization and informatization.
Most of the existing vehicle testing technologies rely on manual testing, so the testing cost is high, and errors occur in testing results easily due to human negligence.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a vehicle machine testing method, a related device, equipment, a system and a storage medium, which can improve the vehicle machine testing efficiency and reduce the testing cost.
In order to solve the above technical problem, a first aspect of the present application provides a car machine testing method, including: detecting connection with a vehicle machine to be tested; reading test data for testing the test vehicle machine to be tested; and performing preset processing on the test data, wherein the preset processing comprises sending the test data to the car machine to be tested and verifying the integrity of the test data before and/or after sending the test data.
In order to solve the above technical problem, a second aspect of the present application provides another car machine testing method, including: receiving test data sent by control equipment; after a test starting instruction of the control equipment is received, testing is carried out based on the test data, wherein the test starting instruction is sent after the control equipment detects that the integrity verification of the test data passes.
In order to solve the above technical problem, a third aspect of the present application provides a car machine testing device, which includes: the detection module is used for detecting whether the car is connected with a car machine to be detected; the reading module is used for reading test data for testing the vehicle testing machine to be tested; the processing module is used for carrying out preset processing on the test data, wherein the preset processing comprises the steps of sending the test data to the vehicle machine to be tested and verifying the integrity of the test data before and/or after the test data is sent.
In order to solve the above technical problem, a fourth aspect of the present application provides another testing apparatus for a vehicle machine, the apparatus comprising: the receiving module is used for receiving the test data sent by the control equipment; the test module is used for testing based on the test data after receiving a test starting instruction of the control equipment, wherein the test starting instruction is sent after the control equipment detects that the integrity verification of the test data passes.
In order to solve the above technical problem, a fifth aspect of the present application provides a car machine testing device, which includes a memory and a processor coupled to each other, where the memory stores program instructions; the processor is configured to execute program instructions stored in the memory to implement the method of the first aspect and/or the second aspect.
In order to solve the foregoing technical problem, a sixth aspect of the present application provides a car machine testing system, where the system includes a control device and a car machine to be tested, where the control device is configured to execute the method of the first aspect, and the car machine to be tested is configured to execute the method of the second aspect.
To solve the above technical problem, a seventh aspect of the present application provides a computer-readable storage medium for storing program instructions that can be executed to implement the method of the first aspect and/or the second aspect.
The beneficial effect of this application is: different from the situation in the prior art, after the test data is detected to be connected with the vehicle testing machine to be tested, the test data used for testing the vehicle testing machine to be tested is read, and the test data is subjected to preset processing, wherein the preset processing comprises the steps of sending the test data to the vehicle testing machine to be tested and verifying the integrity of the test data before and/or after sending the test data. The test data are pushed to the car machine to be tested actively, so that automatic testing can be realized, the testing cost is saved, the car machine testing efficiency is improved, and the accuracy of the test data can be ensured when the car machine to be tested is tested based on the test data by verifying the integrity of the test data; and thirdly, when the test result is wrong, the condition that the test data is missing or wrong can be eliminated, so that the detection personnel can quickly find the abnormal items for testing, and the efficiency of the vehicle-mounted device test is further improved.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a vehicle testing method according to the present application;
fig. 2 is a schematic flowchart of an embodiment of step S130 in a first embodiment of a vehicle testing method;
fig. 3 is a schematic flow chart of another embodiment of step S130 in the first embodiment of the in-vehicle testing method;
fig. 4 is a schematic flowchart of a second embodiment of a vehicle testing method according to the present application;
fig. 5 is a schematic flowchart of a third embodiment of a vehicle testing method according to the present application;
fig. 6 is a schematic flowchart of a fourth embodiment of a vehicle testing method according to the present application;
fig. 7 is a schematic flowchart of a fifth embodiment of a vehicle testing method according to the present application;
fig. 8 is a flowchart illustrating an embodiment of step S720 in a fifth embodiment of a vehicle testing method;
FIG. 9 is a flow chart of the testing of the in-vehicle device to be tested according to the present application;
FIG. 10 is a schematic diagram of a first embodiment of a testing apparatus for a vehicle;
FIG. 11 is a schematic diagram of a second embodiment of a testing apparatus for a vehicle;
FIG. 12 is a schematic diagram of a frame of an embodiment of a vehicle testing apparatus provided herein;
FIG. 13 is a block diagram of one embodiment of a test system provided herein;
FIG. 14 is a block diagram of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
The technical solutions in the embodiments of the present application are clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
It should be noted that, in the embodiments of the present application, there are descriptions related to "first", "second", etc., and the descriptions of "first", "second", etc. are only used for descriptive purposes and are not to be interpreted as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of a car machine testing method according to the present application, where the method includes:
s110: and detecting the connection with the car machine to be tested.
Specifically, the control equipment can be used for connecting a vehicle machine to be tested, and the control equipment can be a notebook computer, a server and the like; the car machine can be connected with the control equipment through Bluetooth, a data line or infrared rays, and the connection is not limited herein.
S120: and reading test data for testing the car machine to be tested.
In one embodiment, after detecting that the control device is successfully connected with the vehicle testing machine to be tested, reading test data for testing the vehicle testing machine to be tested; in another embodiment, the test data for testing the car machine to be tested may be read before the control device is connected to the car machine to be tested. The test data for testing the car machine to be tested can be pre-established by a tester and stored in the control equipment, or can be transmitted into the control equipment by other equipment.
The test data may include a plurality of test item data, and each test item data is used for testing a test item of the in-vehicle machine system.
S130: and carrying out preset processing on the test data.
The preset processing comprises sending test data to the car machine to be tested and verifying the integrity of the test data before and/or after sending the test data. In one embodiment, after the test data is read, the integrity of the test data can be detected, and the test data is sent to a to-be-tested car machine after the detection is passed, wherein the to-be-tested car machine performs a test based on the received test data.
In another embodiment, the test data may be directly sent to the car machine to be tested after being read, the integrity of the test data is detected after the sending is completed, the car machine to be tested tests based on the received data after the detection is passed, and if the detection is not passed, the control device resends the test data.
In other embodiments, the integrity of the test data can be detected once after the test data is read, the test data is sent to the vehicle machine to be tested after the test data passes, the integrity of the test data is detected for the second time after the vehicle machine to be tested receives the test data, and the vehicle machine to be tested starts the test only after the two times of detection pass.
In the mode, the test data are actively pushed to the car machine for testing, so that automatic testing can be realized, the test cost is saved, the car machine test efficiency is improved, and the accuracy of the test data can be ensured when the car machine to be tested tests based on the test data by verifying the integrity of the test data; and thirdly, when the test result is wrong, the condition that the test data is missing or wrong can be eliminated, so that the detection personnel can quickly find the abnormal items for testing, and the efficiency of the vehicle-mounted device test is further improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating an embodiment of step S130 in a first embodiment of a car testing method, where the step of verifying the integrity of the test data before sending the test data includes:
s231: and verifying the integrity of the test data to obtain a first verification result.
In an embodiment, the size, number, content, format, and the like of the test file included in the test data may be verified, and the specific verification content may be determined according to the actual test situation, which is not limited herein.
S232: if the first verification result is that the verification is passed, executing a step of sending test data to the vehicle machine to be tested; or if the first verification result is that the verification is passed, the test data is converted into a data format supported by the vehicle to be tested, the integrity of the converted test data is verified to obtain a second verification result, and if the second verification result is that the verification is passed, the step of sending the test data to the vehicle to be tested is executed.
In an embodiment, if the verification result in step S231 is that the verification is passed, the test data is sent to the vehicle to be tested, and after the vehicle to be tested receives the test data, the integrity of the test data may be further detected, or the test may not be performed, and the test is started based on the received test data.
In another embodiment, the verification result in step S231 is that the verification is passed, but the system of the car machine to be tested is different from the system of the control device, that is, the car machine to be tested cannot support the format of the test data in the control device, so the test data needs to be converted into the data format supported by the car machine to be tested, the integrity of the converted test data is further verified after the conversion, and a second verification result is obtained, and when the second verification result passes, the converted test data can be sent to the car machine to be tested.
Referring to fig. 3, fig. 3 is a schematic flowchart of another embodiment of step S130 in the first embodiment of the in-vehicle testing method, where the step of verifying the integrity of the test data after sending the test data includes:
s331: and verifying the integrity of the test data to obtain a third verification result.
The integrity of the test data may be verified by verifying the size, number, content, format, and the like of the test file included in the test data, which is not limited herein.
S332: if the third verification result is that the verification fails, the step of performing preset processing on the test data is executed again; and/or if the third verification result is that the vehicle machine to be tested passes the verification, indicating the vehicle machine to be tested to test based on the test data, or verifying the test data again, and indicating the vehicle machine to be tested to test based on the test data after the vehicle machine to be tested passes the verification again.
In an embodiment, the test data is verified twice and passes before being sent to the car machine to be tested, the two verifications are respectively the first verification after reading and the second verification after converting into a data format supported by the car machine to be tested, after the car machine to be tested receives the test data, the control device conducts the third verification on the test data received by the car machine to be tested, if the verification result shows that the test data does not pass, the control device sends the test data passing the second verification to the car machine to be tested again, covers the test data failing the previous verification, conducts the third verification again, and knows that the verification result passes. In another embodiment, if the third verification result is that the vehicle to be tested passes the test data, the vehicle to be tested may be instructed to perform the test based on the test data; the test data can be verified again, and after the test data passes the verification again, the vehicle machine to be tested is indicated to be tested based on the test data.
Referring to fig. 4, fig. 4 is a schematic flow chart of a second embodiment of a vehicle testing method according to the present application, where the method includes:
s410: and detecting the connection with the car machine to be tested.
S420: and reading test data for testing the car machine to be tested.
S430: and carrying out preset processing on the test data.
The preset processing comprises sending test data to the car machine to be tested and verifying the integrity of the test data before and/or after sending the test data.
Please refer to steps S110 to S130 in the first embodiment for the above steps S410 to S430, which are not described herein again.
S440: and comparing a first log of the vehicle machine to be tested before receiving the test data with a second log of the vehicle machine to be tested after receiving the test data.
Specifically, the first log and the second log may be printed by the control device, and the contents in the logs may be compared.
S450: if the first log is consistent with the second log, indicating the car machine to be tested to test based on the test data; and if the first log is inconsistent with the second log, re-executing the step of performing preset processing on the test data.
In one embodiment, the test data is verified twice and passes before being sent to the vehicle machine to be tested, the two verifications are respectively the first verification after being read and the second verification after being converted into a data format supported by the vehicle machine to be tested, after the vehicle machine to be tested receives the test data, the control device verifies the test data received by the vehicle machine to be tested for the third time, the third verification result also passes, the fourth verification can be further performed by comparing the first log and the second log, and if the comparison results are consistent, the vehicle machine to be tested is indicated to be tested based on the test data; if the comparison result is not consistent, the control device may resend the test data that passes the second verification, and after receiving the data, the vehicle to be tested automatically covers the data that failed the previous verification, and performs the third verification and the fourth verification again until the verification results all pass, and then starts the test.
Referring to fig. 5, fig. 5 is a schematic flow chart diagram illustrating a third embodiment of a car machine testing method according to the present application, where the method includes:
s510: and detecting the connection with the car machine to be tested.
S520: test data for a number of test categories is read.
The plurality of test categories may include a function test, an effect test, and a performance test.
S530: and selecting test data of one test type as target test data according to a preset test sequence.
In one embodiment, the predetermined test sequence may be a function test, an effect test, and a performance test.
S540: and carrying out preset processing on the target test data.
The preset processing comprises the steps of sending target test data to a vehicle machine to be tested and verifying the integrity of the target test data before and/or after the target test data is sent. The integrity of the target test data is verified in a mode that whether the integrity of the target test data meets the integrity requirement corresponding to the target test data or not is verified; and if the integrity of the target test data meets the integrity requirement corresponding to the target test data, the target test data passes verification, and the integrity requirements corresponding to the test data of different test types are the same or different.
In an embodiment, if the test category is a functional test, the corresponding integrity requirement may be that the integrity of all target test data included in the functional test is 100%, that is, the target test data must include all files completely. In another embodiment, if the test type is an effect test, the corresponding integrity requirement may be that the integrity of all target test data included in the effect test is greater than a preset value, and the preset value may be 70%, 80% or other values, that is, only 70% or more than 80% of all files included in the target test data are complete.
The target test data may include a plurality of test item data, each test item data is used for testing one test item of the car machine system, and the test item data of the test data are respectively subjected to preset processing in sequence. The test items may be, but are not limited to, a test vehicle system, a test vehicle interface, a test vehicle performance, and the like.
In one embodiment, the target test data is test data included in the functional test, for example, the target test data may include 3 test item data, which are respectively a item data, B item data, and C item data. Each test item data may contain several sub-data, for example, A item data may contain an A functional test environment, an A functional test tool, and an A functional test set. The preset processing of the target test data may be performed to collectively pre-process all test data included in the item data a, the item data B, and the item data C, or may be performed to pre-process each sub-data included in the item data a, pre-process each sub-data included in the item data B, and pre-process each sub-data included in the item data C, respectively, according to a preset sequence. The preset sequence may be a test environment, a test tool, and a test set, or may also be a test tool, a test set, and a test environment, and the preprocessing sequence of each subdata may be changed at will, so that the preprocessing sequence is not limited herein.
In a specific embodiment, when a functional test is currently performed on an item to be subjected to a functional test, all test item data included in all items is preprocessed. In a specific embodiment, each subdata contained in the test item data can be preprocessed, if the test item data contains three subdata, namely a test environment, a test tool and a test set, the test environment can be preprocessed firstly, after the data of the test environment is read, first verification is carried out, after the data format of the test environment is changed, second verification is carried out, after the data of the test environment is sent to a vehicle machine to be tested, third verification is carried out, and when the third verification meets the preset requirement; reading the data of the test tool, and repeating the verification for three times; the data of the test set was read again and the validation was repeated three times as well. And after all the verification results meet the preset requirements, starting the vehicle machine to be detected to test based on the test environment data, the test tool data and the test set data. And when the test of one project is finished, starting the test of another project, and sequentially carrying out the tests until all the projects needing to be subjected to the function test are finished. Further, after completing the test on all items to be subjected to the function test, all items to be subjected to the effect test may be tested, and it should be understood that, if the effect test is performed, the effect test may also be performed in the same manner as the manner of performing the preprocessing on the test data of the function test, and details are not described here.
S550: when the vehicle machine to be tested completes the test based on the target test data or the test result of the vehicle machine to be tested completed based on the target test data meets the test requirement, the test data of one test type is selected as the target test data according to the preset test sequence and the subsequent steps are executed again until the test data of all test types are sent completely.
In one embodiment, the predetermined test sequence is a function test, an effect test and a performance test. And when the to-be-tested car machine receives all target test data contained in the function test and passes the verification, the to-be-tested car machine performs the function test based on the target test data to obtain a function test result, and if the function test result meets the preset requirement, the effect test is performed. At this time, the test data of the reading effect test can be executed, then the preset treatment is carried out, and the test is finished after the treatment; the effect test can also be directly performed based on the test data of the effect test that has completed the preset processing. After the effect test is completed and the preset requirement is met, the performance test can be performed, the test step and the preset processing step are the same as the function test and the effect test, and the detailed description is omitted here.
Referring to fig. 6, fig. 6 is a schematic flow chart diagram illustrating a fourth embodiment of a vehicle testing method according to the present application, where the method includes:
s610: and detecting the connection with the car machine to be tested.
S620: and reading test data for testing the car machine to be tested.
S630: and carrying out preset processing on the test data.
Please refer to steps S110 to S130 in the first embodiment for the above steps S610 to S630, which are not described herein again.
S640: and receiving a test log of the car machine to be tested, and storing the test log.
After the vehicle machine to be tested finishes one test type, a test log of the vehicle machine to be tested can be printed and stored in the control equipment. If the test result meets the preset requirement, the test is completed, and if the test result does not meet the requirement, the step S650 can be continuously executed.
S650: and determining test abnormal items based on the test log, and recording the test abnormal items.
And when the test result does not meet the preset requirement, checking the test log, finding out the abnormal test items and recording the abnormal test items.
In the embodiment, the integrity of the test data is ensured by verifying the test data for multiple times, and the accuracy of the test result can be further ensured. When the test result does not meet the preset requirement, the condition that the test result does not meet the preset requirement due to error or loss of the test data can be eliminated, and the tester can conveniently and quickly find the abnormal test items.
Referring to fig. 7, fig. 7 is a schematic flow chart diagram illustrating a fifth embodiment of a vehicle testing method according to the present application, where the method includes:
s710: and receiving test data sent by the control equipment.
In an embodiment, integrity verification is performed after test data sent by the control device is received, and after the verification is passed, the test can be started. In another embodiment, integrity verification is performed after test data sent by the control device is received, if the verification result fails, the control device will resend new test data, replace the original test data with the new test data, and re-verify the integrity of the new test data until the verification passes.
S720: and after receiving a test starting instruction of the control equipment, testing based on the test data.
The test data sent by the control equipment is received by the vehicle machine to be tested, and a test starting instruction is sent after the control equipment detects that the integrity of the test data is verified. In one embodiment, the control device verifies the integrity of the test data before sending the test data to the car machine to be tested, and after the verification is passed, the control device can simultaneously send the test start instruction and the test data to the car machine to be tested, and the car machine to be tested performs testing based on the test data. In another embodiment, the control device sends the test data to the vehicle to be tested and performs a verification, and sends the test start instruction to the vehicle to be tested to perform a test after the verification is passed. In other embodiments, after sending the test data to the car machine to be tested and carrying out the primary verification, the control device compares the first log before the car machine to be tested receives the test data with the second log after the car machine to be tested receives the test data again, and when the comparison result is consistent, the control device sends the test starting instruction to the car machine to be tested for testing.
Referring to fig. 8 and 9 in combination, fig. 8 is a schematic flowchart of an embodiment of step S720 in a fifth embodiment of a car testing method, fig. 9 is a flowchart of a test of a car to be tested in the application, and step S720 includes:
s821: and playing the test voice to test the voice function of the test vehicle machine to be tested.
Specifically, the test voice may be test data concentrated in the test, and the voice function test on the vehicle machine to be tested includes performing a voice interaction test and/or a voice wake-up test on the vehicle machine to be tested. The test data in the test set may comprise a first test voice, and/or text data, and/or a second test voice synthesized based on the text data in the test set.
In an embodiment, the test data in the test set may include a first test voice, and the first test voice may be played to test whether the car to be tested can perform corresponding operations according to the content of the first test voice, or to test whether the interface element of the car to be tested corresponds to the test content of the first test voice. If the first testing voice is 'open music player', whether the car machine to be tested opens the music player or not can be detected, the interface element of the car machine to be tested is detected, and whether the current display is the interface of the music player or not is confirmed.
S822: and carrying out preset operation on the interface of the vehicle machine to be tested so as to test the interface of the vehicle machine to be tested.
In an embodiment, a third testing voice in the testing set may be played, where the third testing voice is used to instruct to perform a preset operation on an interface of the car machine to be tested. As shown in fig. 9, the third test voice may be "click a certain id identifier of the interface", "double click a certain coordinate point", "open a log, close the log", and the like, and whether to enter the corresponding interface is detected according to the test content of the third test voice.
In another embodiment, a preset interface test instruction may be executed, where the preset interface test instruction is used to perform a preset operation on an interface of a to-be-tested vehicle. The preset interface test instruction may be id, a character string, or xpath (a language for determining a position of a certain part in an XML document), which is not limited herein.
Referring to fig. 10, fig. 10 is a schematic diagram of a frame of a testing apparatus for a vehicle on-board unit according to a first embodiment of the present application.
The in-vehicle device testing apparatus 100 includes: the system comprises a detection module 101, a reading module 102 and a processing module 103; the detection module 101 is used for detecting whether the car is connected with a car machine to be detected; the reading module 102 is configured to read test data for the testing of the in-vehicle device to be tested; the processing module is used for carrying out preset processing on the test data, wherein the preset processing comprises the steps of sending the test data to the vehicle machine to be tested and verifying the integrity of the test data before and/or after the test data is sent.
Wherein the step of verifying the integrity of the test data prior to sending the test data comprises: verifying the integrity of the test data to obtain a first verification result; if the first verification result is that the verification is passed, executing a step of sending test data to the vehicle machine to be tested; or if the first verification result is that the verification is passed, the test data is converted into a data format supported by the vehicle to be tested, the integrity of the converted test data is verified to obtain a second verification result, and if the second verification result is that the verification is passed, the step of sending the test data to the vehicle to be tested is executed.
Wherein the step of verifying the integrity of the test data after sending the test data comprises: verifying the integrity of the test data to obtain a third verification result; if the third verification result is that the verification fails, the step of performing preset processing on the test data is executed again; and/or if the third verification result is that the vehicle machine to be tested passes the verification, indicating the vehicle machine to be tested to test based on the test data, or verifying the test data again, and indicating the vehicle machine to be tested to test based on the test data after the vehicle machine to be tested passes the verification again.
After the test data is subjected to preset processing, the method further comprises the following steps of verifying the test data again: comparing a first log of the vehicle machine to be tested before receiving the test data with a second log of the vehicle machine to be tested after receiving the test data; if the first log is consistent with the second log, indicating the car machine to be tested to test based on the test data; and if the first log is inconsistent with the second log, re-executing the step of performing preset processing on the test data.
Wherein, read the test data that is used for to await measuring the car machine test, include: reading test data of a plurality of test types, wherein the test data of different test types are used for carrying out different tests on the vehicle machine to be tested; the method comprises the following steps of performing preset processing on test data, including: selecting test data of one test type as target test data according to a preset test sequence; presetting target test data; when the vehicle machine to be tested completes the test based on the target test data or the test result of the vehicle machine to be tested completed based on the target test data meets the test requirement, the test data of one test type is selected as the target test data according to the preset test sequence and the subsequent steps are executed again until the test data of all test types are sent completely.
The plurality of test categories comprise a function test and an effect test, and the preset test sequence is that the function test precedes the effect test.
The test data comprises a plurality of subdata, wherein the subdata comprises a test environment, a test tool and a test set; the method comprises the following steps of performing preset processing on test data, including: respectively presetting the subdata in the test data in sequence, or uniformly presetting all the subdata in the test data; and/or after the test data is subjected to preset processing, the method further comprises at least one of the following steps: receiving a test log of a vehicle machine to be tested, and storing the test log; and determining test abnormal items based on the test log, and recording the test abnormal items.
Referring to fig. 11, fig. 11 is a schematic diagram of a frame of a testing apparatus for a vehicle on-board unit according to a second embodiment of the present application.
The testing device 110 for the vehicle device includes: the receiving module 111 and the testing module 112 are configured, where the receiving module 111 is configured to receive test data sent by the control device, and the testing module 112 is configured to perform a test based on the test data after receiving a test start instruction of the control device, where the test start instruction is sent after the control device detects that the integrity verification of the test data passes.
After receiving the test data sent by the control device, the method further includes: receiving new test data retransmitted by the control equipment, and replacing the original test data with the new test data, wherein the new test data is retransmitted by the control equipment after the original test data is transmitted and the integrity verification of the original test data is detected to be failed; and/or, the performing a test based on the test data includes: playing a test voice to test the voice function of the vehicle machine to be tested; and carrying out preset operation on the interface of the to-be-tested car machine so as to test the interface of the to-be-tested car machine.
Wherein the voice function comprises at least one of voice interaction and voice wake-up; the test data includes a test set, and playing the test voice includes: playing the first test voice in the test set, and/or synthesizing a second test voice based on the text data in the test set, and playing the second test voice; the interface of the to-be-tested vehicle machine is subjected to preset operation, and the preset operation comprises the following steps: playing a third test voice in the test set, wherein the third test voice is used for indicating the interface of the vehicle machine to be tested to be subjected to preset operation; or executing a preset interface test instruction, wherein the preset interface test instruction is used for carrying out preset operation on the interface of the to-be-tested vehicle machine.
Referring to fig. 12, fig. 12 is a schematic diagram of a frame of an embodiment of a testing apparatus for a vehicle.
The in-vehicle testing apparatus 120 includes a memory 121 and a processor 122 coupled to each other, where the memory 121 stores program instructions, and the processor 122 is configured to execute the program instructions to implement the steps in any of the above-described method embodiments. Specifically, the in-vehicle testing device 120 may include, but is not limited to: notebook computers, servers, tablet computers, and the like, without limitation.
In particular, the processor 122 is configured to control itself and the memory 121 to implement the steps of any of the above-described method embodiments. Processor 122 may also be referred to as a CPU (Central Processing Unit). The processor 122 may be an integrated circuit chip having signal processing capabilities. The Processor 122 may also be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 122 may be commonly implemented by integrated circuit chips.
Referring to fig. 13, fig. 13 is a block diagram illustrating an embodiment of a test system according to the present application.
The test system 130 includes a control device 131 and a car machine to be tested 132, which are capable of performing connection, where the control device 131 is configured to perform the methods described in the first to fourth embodiments of the car machine test method, and the car machine to be tested 132 is configured to perform the method described in the fifth embodiment of the car machine test method.
Referring to fig. 14, fig. 14 is a block diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. The computer readable storage medium 140 stores program instructions 141, the program instructions 141 being executable by a processor to perform the steps of any of the above-described method embodiments.
The computer-readable storage medium 140 may be a medium that can store a computer program, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the computer program and can send the stored computer program to another device for running or can run the stored computer program by itself.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (18)

1. The utility model provides a car machine test method which characterized in that includes:
detecting connection with a vehicle machine to be tested;
reading test data for testing the vehicle machine to be tested;
and carrying out preset processing on the test data, wherein the preset processing comprises sending the test data to the vehicle machine to be tested and verifying the integrity of the test data before and/or after sending the test data.
2. The method of claim 1, wherein verifying the integrity of the test data prior to sending the test data comprises:
verifying the integrity of the test data to obtain a first verification result;
if the first verification result is that the verification is passed, the step of sending the test data to the vehicle machine to be tested is executed; or if the first verification result is that the verification is passed, converting the test data into a data format supported by the to-be-tested car machine, verifying the integrity of the converted test data to obtain a second verification result, and if the second verification result is that the verification is passed, executing the step of sending the test data to the to-be-tested car machine.
3. The method of claim 1, wherein verifying the integrity of the test data after sending the test data comprises:
verifying the integrity of the test data to obtain a third verification result;
if the third verification result is that the verification fails, re-executing the step of performing the preset processing on the test data; and/or the presence of a gas in the gas,
and if the third verification result is that the vehicle to be tested passes the verification, indicating the vehicle to be tested to test based on the test data, or verifying the test data again, and indicating the vehicle to be tested to test based on the test data after the vehicle to be tested passes the verification again.
4. The method according to claim 1, wherein after said pre-processing of said test data, said method further comprises the steps of, for re-verifying said test data:
comparing a first log of the to-be-tested vehicle before receiving the test data with a second log of the to-be-tested vehicle after receiving the test data;
if the first log is consistent with the second log, the to-be-tested car machine is indicated to be tested based on the test data;
and if the first log is inconsistent with the second log, re-executing the step of performing the preset processing on the test data.
5. The method of claim 1, wherein reading test data for testing the in-vehicle device under test comprises:
reading the test data of a plurality of test categories, wherein the test data of different test categories are used for carrying out different tests on the vehicle machine to be tested;
the preset processing of the test data comprises:
selecting the test data of one test type as target test data according to a preset test sequence;
the preset processing is carried out on the target test data;
and when the vehicle machine to be tested completes the test based on the target test data or the test result of the vehicle machine to be tested completed based on the target test data meets the test requirement, re-executing the test data of one test type as the target test data according to the preset test sequence and subsequent steps until all the test data of the test type are sent completely.
6. The method of claim 5, wherein the plurality of test categories include a functional test and an effect test, and wherein the predetermined test order is the functional test before the effect test.
7. The method according to claim 5, wherein the integrity of the target test data is verified in a manner of verifying whether the integrity of the target test data meets the integrity requirement corresponding to the target test data; and if the integrity of the target test data meets the integrity requirement corresponding to the target test data, the target test data passes verification, and the integrity requirements corresponding to the test data of different test types are the same or different.
8. The method according to claim 1, wherein the test data includes a plurality of test item data, each test item data is used for testing a test item of the in-vehicle machine system, and the performing the predetermined processing on the test data includes:
and sequentially performing the preset processing on each test item data of the test data.
9. The method of claim 8, wherein the test item data comprises a number of subdata, wherein the number of subdata comprises a test environment, a test tool, and a test set; the preset processing of the test data comprises:
and sequentially performing the preset processing on each subdata in the test data, or uniformly performing the preset processing on all the subdata in the test data.
10. The method according to claim 1, wherein after said pre-processing of said test data, said method further comprises at least one of the steps of:
receiving a test log of the vehicle machine to be tested, and storing the test log;
determining a test abnormal item based on the test log, and recording the test abnormal item.
11. The utility model provides a car machine test method which characterized in that includes:
receiving test data sent by control equipment;
after a test starting instruction of the control equipment is received, testing is carried out based on the test data, wherein the test starting instruction is sent after the control equipment detects that the integrity verification of the test data passes.
12. The method of claim 11, wherein after receiving the test data sent by the control device, the method further comprises:
receiving new test data retransmitted by the control equipment, and replacing the original test data with the new test data, wherein the new test data is retransmitted by the control equipment after the original test data is transmitted and the integrity verification of the original test data is detected to be failed;
and/or, the performing a test based on the test data includes:
playing a test voice to test the voice function of the vehicle machine to be tested;
and carrying out preset operation on the interface of the to-be-tested car machine so as to test the interface of the to-be-tested car machine.
13. The method of claim 12, wherein the voice function comprises at least one of a voice interaction and a voice wakeup;
the test data includes a test set, and playing the test voice includes:
playing the first test voice in the test set, and/or synthesizing a second test voice based on the text data in the test set, and playing the second test voice;
the interface of the to-be-tested vehicle machine is subjected to preset operation, and the preset operation comprises the following steps:
playing a third test voice in the test set, wherein the third test voice is used for indicating the interface of the vehicle machine to be tested to be subjected to preset operation; alternatively, the first and second electrodes may be,
and executing a preset interface test instruction, wherein the preset interface test instruction is used for carrying out preset operation on the interface of the to-be-tested vehicle machine.
14. The utility model provides a car machine testing arrangement which characterized in that includes:
the detection module is used for detecting whether the car is connected with a car machine to be detected or not;
the reading module is used for reading test data of the vehicle machine to be tested;
the processing module is used for carrying out preset processing on the test data, wherein the preset processing comprises the steps of sending the test data to the to-be-tested car machine and verifying the integrity of the test data before and/or after the test data is sent.
15. The utility model provides a car machine testing arrangement which characterized in that includes:
the receiving module is used for receiving test data sent by the control equipment;
the test module is used for testing based on the test data after receiving a test starting instruction of the control equipment, wherein the test starting instruction is sent after the control equipment detects that the integrity verification of the test data passes.
16. The in-vehicle machine test equipment is characterized by comprising a memory and a processor which are coupled with each other,
the memory stores program instructions;
the processor is configured to execute program instructions stored in the memory to implement the method of any of claims 1-13.
17. A test system comprising a control device and a vehicle under test capable of being connected, wherein the control device is configured to perform the method of any one of claims 1 to 10, and the vehicle under test is configured to perform the method of any one of claims 11 to 13.
18. A computer-readable storage medium for storing program instructions executable to implement the method of any one of claims 1-13.
CN202111660182.1A 2021-12-31 2021-12-31 Vehicle machine testing method, related device, equipment, system and storage medium Pending CN114356766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111660182.1A CN114356766A (en) 2021-12-31 2021-12-31 Vehicle machine testing method, related device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111660182.1A CN114356766A (en) 2021-12-31 2021-12-31 Vehicle machine testing method, related device, equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN114356766A true CN114356766A (en) 2022-04-15

Family

ID=81104814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111660182.1A Pending CN114356766A (en) 2021-12-31 2021-12-31 Vehicle machine testing method, related device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN114356766A (en)

Similar Documents

Publication Publication Date Title
CN107122297B (en) Method and equipment for generating request message of test interface
CN107122258B (en) Method and equipment for checking state code of test interface
CN107122296B (en) Method and apparatus for data assertion for test interface
US20220188313A1 (en) System and Method for Accessing Vehicle Communication Applications Requiring Vehicle Identification without Re-Entering Vehicle Identification
CN110445688B (en) Interface service function monitoring method and system based on data collection
CN109474488A (en) Interface test method, device and computer equipment
CN106502883B (en) The database synchronization method and system of client and server-side when automatic test
CN108803577B (en) Diagnosis method, upper computer and lower computer
US7797584B2 (en) SATA interface tester and testing method
WO2021169280A1 (en) Virtual disk check code generation method, apparatus and device, and storage medium
CN112990495A (en) Method, device and system for vehicle after-sale diagnosis and storage medium
CN114356766A (en) Vehicle machine testing method, related device, equipment, system and storage medium
CN111949537A (en) Interface test method, device, equipment and medium
CN111726260B (en) Method, device and system for testing format conversion of network request reply information
US7975177B2 (en) System and method for testing network performance
CN108334448B (en) Code verification method, device and equipment
CN115542125A (en) Chip testing method and related device
WO2018138816A1 (en) Test device, test method, and test program
CN111884856B (en) Transmission error positioning method of FC card and related device
CN113656301A (en) Interface testing method, device, equipment and storage medium
CN113792017A (en) Method and system for checking template content imported into excel
CN113010114A (en) Data processing method and device, computer equipment and storage medium
CN113225232A (en) Hardware testing method and device, computer equipment and storage medium
CN112000579B (en) Software interface testing method, system, equipment and medium
CN112947964A (en) Chip firmware updating method, device, equipment and storage medium

Legal Events

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