CN111708348B - Diagnostic service test method, device, equipment and storage medium - Google Patents

Diagnostic service test method, device, equipment and storage medium Download PDF

Info

Publication number
CN111708348B
CN111708348B CN202010515096.0A CN202010515096A CN111708348B CN 111708348 B CN111708348 B CN 111708348B CN 202010515096 A CN202010515096 A CN 202010515096A CN 111708348 B CN111708348 B CN 111708348B
Authority
CN
China
Prior art keywords
test
diagnostic service
adaptive
function
tested
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.)
Active
Application number
CN202010515096.0A
Other languages
Chinese (zh)
Other versions
CN111708348A (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.)
FAW Group Corp
Original Assignee
FAW Group Corp
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 FAW Group Corp filed Critical FAW Group Corp
Priority to CN202010515096.0A priority Critical patent/CN111708348B/en
Publication of CN111708348A publication Critical patent/CN111708348A/en
Application granted granted Critical
Publication of CN111708348B publication Critical patent/CN111708348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Abstract

The invention discloses a diagnostic service test method, a diagnostic service test device, diagnostic service equipment and a storage medium. Wherein, the method comprises the following steps: according to the function test options of the electronic control unit to be tested under the adaptive diagnosis service, searching a target test case of the adaptive diagnosis service from a pre-constructed test case library; controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnostic service; and generating a function test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case. The technical scheme provided by the embodiment of the invention realizes the automatic function test of the diagnostic service, does not need a tester to manually compare the diagnostic result of each function under the diagnostic service, enables the tester to intensively analyze the content of the function test report, ensures the function test accuracy of the diagnostic service by adopting an automatic test mode, and improves the function test efficiency of the diagnostic service.

Description

Diagnostic service test method, device, equipment and storage medium
Technical Field
The present invention relates to diagnostic service function testing technologies, and in particular, to a diagnostic service testing method, apparatus, device, and storage medium.
Background
The diagnosis service of the automobile electric control unit has irreplaceable effects in the links of whole automobile production offline, after-sale maintenance and the like, and if the problem can be found early in the development process, the later maintenance cost can be greatly reduced and the product development life cycle can be shortened, so that the test on whether the function of the diagnosis service has a problem is very necessary.
At present, in the conventional diagnostic service function test, a tester executes each function under the diagnostic service by using an analog diagnostic instrument to display a diagnostic result of each function, then searches a standard diagnostic result predefined in a diagnostic specification by the tester, manually compares the displayed diagnostic result of each function, and sequentially judges whether each function under the diagnostic service has a problem or not, so that the test workload of the tester is greatly increased, and the diagnostic service function test has low working efficiency and is easy to make mistakes.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for testing diagnostic services, which are used for realizing automatic function testing of the diagnostic services and improving the function testing efficiency of the diagnostic services.
In a first aspect, an embodiment of the present invention provides a method for testing a diagnostic service, where the method includes:
according to the function test options of the electronic control unit to be tested under the adaptive diagnosis service, searching a target test case of the adaptive diagnosis service from a pre-constructed test case library;
controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnostic service;
and generating a function test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case.
In a second aspect, an embodiment of the present invention provides a test apparatus for diagnostic services, including:
the target test case searching module is used for searching a target test case of the adaptive diagnostic service from a pre-constructed test case library according to the function test options of the electric control unit to be tested under the adaptive diagnostic service;
the actual test result determining module is used for controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnostic service;
and the functional test report generating module is used for generating a functional test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case.
In a third aspect, an embodiment of the present invention provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for testing a diagnostic service according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements a method for testing a diagnostic service according to any embodiment of the present invention.
The embodiment of the invention provides a test method, a device, equipment and a storage medium of diagnostic service, which comprises the steps of firstly searching out a target test case of the adaptive diagnostic service from a pre-constructed test case library according to the function test options of an electric control unit to be tested under the adaptive diagnostic service, then controlling the electric control unit to be tested to execute the target test case to obtain the actual test result of the adaptive diagnostic service, finally generating a function test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case, realizing the automatic function test of the diagnostic service, avoiding the need of manually comparing the diagnostic result of each function under the diagnostic service by a tester, leading the tester to be capable of intensively analyzing the content of the function test report, and ensuring the accuracy of the function test of the diagnostic service by adopting an automatic test mode, the efficiency of functional testing of diagnostic services is improved.
Drawings
Fig. 1 is a flowchart of a method for testing a diagnostic service according to an embodiment of the present invention;
FIG. 2 is a flowchart of a diagnostic service testing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a testing apparatus for diagnostic services according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for testing a diagnostic service according to an embodiment of the present invention, where the present embodiment is applicable to a case where a function test is performed on any diagnostic service supported by each electronic control unit, and the method for testing a diagnostic service according to the present embodiment may be executed by a device for testing a diagnostic service according to an embodiment of the present invention, where the device may be implemented in a software and/or hardware manner and integrated into a device for executing the method.
Specifically, referring to fig. 1, the method specifically includes the following steps:
and S110, searching a target test case of the adaptive diagnosis service from a pre-constructed test case library according to the function test options of the electric control unit to be tested under the adaptive diagnosis service.
The electronic control unit to be tested in the embodiment can be any electronic control unit which is configured on the automobile and needs to perform the function test of the diagnostic service. Generally, the function of the diagnostic service may be tested through an automobile Open System Architecture (Autosar), or may be tested through other software, and in this embodiment, the function of the diagnostic service is tested through the Autosar basic software.
Optionally, when configuring different electronic control units for the vehicle, different diagnostic services are set for each electronic control unit, and different functions are configured under the diagnostic services, so when performing a function test on the diagnostic services under the electronic control unit to be tested, first, an adaptive diagnostic service oriented to the function test of this time is screened out from all the diagnostic services supported by the electronic control unit to be tested, and various function test options set for each adaptive diagnostic service in the function test of this time are determined, at this time, the adaptive diagnostic service may be one, multiple or all of the diagnostic services (that is, all the diagnostic services supported by the electronic control unit to be tested) matched with the electronic control unit to be tested. For example, the diagnostic services supported by the electronic control unit to be tested can be searched for according to a requirement document set by the electronic control standard, wherein the requirement document includes the diagnostic services supported by all the electronic control units to be tested.
Furthermore, after the adaptive diagnostic service oriented by the electronic control unit to be tested in the current function test is screened out, the sub-functions selected by each adaptive diagnostic service for the current function test and the parameters corresponding to the sub-functions can be used as the function test options under the adaptive diagnostic service, so that the target test case of the adaptive diagnostic service can be conveniently found out subsequently according to the function test options of the electronic control unit to be tested under the adaptive diagnostic service.
Specifically, the test case library in this embodiment is constructed for each function under all the diagnostic services supported by each electronic control unit configured on the vehicle, so that each function under all the diagnostic services supported by each electronic control unit in the test case library corresponds to a specific test case; at this time, according to the function test options of the electronic control unit to be tested under the adaptive diagnostic service, the test case corresponding to each sub-function selected by the electronic control unit to be tested under each adaptive diagnostic service for the current function test can be found from the test case library and used as the target test case of the adaptive diagnostic service.
The pre-constructed test case library is developed according to International Organization for Standardization (ISO) 14229-1 (road vehicle unified diagnosis service), so that the test coverage of the test case library is high.
The ISO 14229-1 standard is briefly described below with respect to specific services.
For example, under the ISO standard, all diagnostic service commands can only be maintained for 5s, for example, after 28 diagnostic service receives a command to prohibit communication, it is required that no bus message can be read within 5 seconds, and communication is automatically recovered after 5 seconds; 28 the diagnostic service receives the communication prohibition instruction, if the switching session instruction of the 11 diagnostic service or the 10 diagnostic service is received again within 5 seconds, the 28 diagnostic service resumes the communication.
Illustratively, some diagnostic services may only be effective under extended sessions, such as 27 diagnostic services; in this case, the 3E diagnostic service can be transmitted again after the 27 diagnostic service is transmitted, so that the 27 diagnostic service can be subjected to security authentication within 5 seconds and after 5 seconds.
Optionally, there may be 1 or more adaptive diagnostic services for the electronic control unit to be tested, and this embodiment is not particularly limited. Assuming that there are 3 diagnostic services corresponding to a certain to-be-tested electrical control unit, that is, diagnostic service 1, diagnostic service 2, and diagnostic service 3, all of the 3 diagnostic services may be used as adaptive diagnostic services for the to-be-tested electrical control unit, or 1 or 2 diagnostic services may be selected as adaptive diagnostic services for the to-be-tested electrical control unit, which is not limited herein.
And S120, controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnostic service.
The actual test result of the adaptive diagnostic service is also the response data of the electronic control unit to be tested to the target test case of the adaptive diagnostic service.
Specifically, after the target test case of the adaptive diagnostic service is found, the electronic control unit to be tested is controlled to execute the target test case, and at this time, each target test case obtains an execution result after being executed, and the execution result is the actual test result of the adaptive diagnostic service.
Optionally, the controlling the to-be-tested electronic control unit to execute the target test case to obtain an actual test result of the adaptive diagnostic service may specifically include: sending a test request carrying the target test case to the electric control unit to be tested; and receiving an actual test result replied after the target test case is executed by the electric control unit to be tested.
The test request includes information of a target test case to be executed by a specific electronic control unit to be tested, and the electronic control unit to be tested can execute corresponding operation through the information.
Specifically, after the target test case of the adaptive diagnostic service is determined, a corresponding test request command may be sent to the electronic control unit to be tested according to the target test case of the adaptive diagnostic service in the execution process, and after the electronic control unit to be tested receives the corresponding test request, in order to obtain a functional test result of the electronic control unit to be tested under the adaptive diagnostic service, the electronic control unit to be tested may execute each target test case carried in the test request, and after each target test case is executed, may feed back an actual test result, so as to analyze the actual test result subsequently.
And S130, generating a function test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case.
Specifically, the actual test result is compared with the standard test result of the target test case in the test case execution process, wherein the standard test result of the target test case refers to an expected test result after the target test case is executed, which is preset in the target test case. If the actual test result is consistent with the standard test result of the target test case, a functional test passing item report is automatically generated, if the actual test result is inconsistent with the standard test result of the target test case, a functional test failing item report is automatically generated, the functional test failing item report comprises the actual test result and the standard test result of the target test case, and the specific reason why the functional test fails can be judged by analyzing the difference between the actual test result and the standard test result of the target test case. According to the embodiment, by applying the automatic testing scheme, the test result is prevented from being compared manually, two specific functional test reports are generated automatically, and the functional test efficiency and reliability of the electronic control unit diagnosis service are improved.
The technical solution provided in this embodiment is to find out a target test case of the adaptive diagnostic service from a pre-constructed test case library according to a function test option of the electronic control unit under test under the adaptive diagnostic service, then the electric control unit to be tested is controlled to execute the target test case to obtain the actual test result of the adaptive diagnostic service, and finally a functional test report of the adaptive diagnostic service is generated according to the actual test result and the standard test result of the target test case, thereby realizing the automatic functional test of the diagnostic service without manually comparing the diagnostic result of each function under the diagnostic service by a tester, the method and the system enable the tester to analyze the content of the functional test report in a centralized manner, ensure the functional test accuracy of the diagnostic service in an automatic test mode, and improve the functional test efficiency of the diagnostic service.
Example two
Fig. 2 is a flowchart of a diagnostic service testing method according to a second embodiment of the present invention, which is optimized based on the second embodiment of the present invention. Optionally, the present embodiment explains the search process of the target test case adapted to the diagnostic service in detail.
Specifically, referring to fig. 2, the method of this embodiment may specifically include:
s210, obtaining a user test instruction facing the electric control unit to be tested, wherein the user test instruction carries a function test option of the electric control unit to be tested under the adaptive diagnosis service.
Optionally, the user fills the identifier of the electronic control unit to be tested in the display module, and then the test end can determine which electronic control unit performs the function test this time according to the filled identifier of the electronic control unit to be tested, and then fills the adaptive diagnostic service of the electronic control unit to be tested for the function test this time and the function test options under the adaptive diagnostic service, that is, the sub-functions under the adaptive diagnostic service and the parameters corresponding to the sub-functions.
And S220, determining the function to be tested of the adaptive diagnosis service according to the function test options of the electric control unit to be tested under the adaptive diagnosis service.
Specifically, after the user test instruction facing the electronic control unit to be tested is obtained, since the user test instruction carries the function test option of the electronic control unit to be tested under the adaptive diagnostic service, and the function test option is the sub-function of the electronic control unit to be tested under each adaptive diagnostic service and the parameter corresponding to the sub-function, which is filled by the user, the function test option includes the function to be tested of the adaptive diagnostic service, and thus the function to be tested of the electronic control unit to be tested under the adaptive diagnostic service is determined.
At this time, because there may be one or more sub-functions and parameters corresponding to the sub-functions of the electronic control unit under test under each adaptive diagnostic service, the number of target test cases of the adaptive diagnostic service should be consistent with the number of functions under test of the electronic control unit under test under the adaptive diagnostic service. For example, if the user test instruction for the electronic control unit to be tested is analyzed, it is found that the identifier of the electronic control unit to be tested is 01, the adaptive diagnostic service is diagnostic service 1 and diagnostic service 2, the sub-function and the parameter corresponding to the sub-function under the adaptive diagnostic service are the parameter corresponding to sub-function 1 and sub-function 1 under the diagnostic service 1, the parameter corresponding to sub-function 2 and sub-function 2 under the diagnostic service 1 and the parameter corresponding to sub-function 3 and sub-function 3 under the diagnostic service 2, the functional test option of the electronic control unit to be tested 01 under the adaptive diagnostic service is the parameter corresponding to sub-function 1 and sub-function 1 under the diagnostic service 1, the parameter corresponding to sub-function 2 and sub-function 2 under the diagnostic service 1 and the parameter corresponding to sub-function 3 and sub-function 3 under the diagnostic service 2, and the function to be tested of the corresponding adaptive diagnostic service is the sub-function 1 under the diagnostic service 1, the parameter corresponding to the sub-function under the diagnostic service 1, and the parameter corresponding to be tested, Sub-function 2 under diagnostic service 1 and sub-function 3 under diagnostic service 2.
For example, after the user selects the adaptive diagnostic service of the electronic control unit to be tested, since the adaptive diagnostic service includes a plurality of sub-functions and parameters corresponding to the sub-functions, the functions to be tested under the adaptive diagnostic service may also be multiple possible, for example, sub-function 1 and sub-function 2 under diagnostic service 1, and the sub-functions of the electronic control unit to be tested under all the adaptive diagnostic services may also be used as the functions to be tested of the electronic control unit to be tested.
It should be noted that the function under test of the adaptive diagnostic service may be one or more, and the embodiment is not particularly limited.
And S230, finding out the test case of each function to be tested under the adaptive diagnostic service in a pre-constructed test case library to serve as a target test case of the adaptive diagnostic service.
Specifically, since each function under all diagnostic services supported by each electronic control unit in the test case library corresponds to a specific test case, after each function to be tested under the adaptive diagnostic service is determined, the test case corresponding to each function to be tested under the adaptive diagnostic service can be found in the pre-constructed test case library to serve as a target test case for the adaptive diagnostic service. At the moment, the number of the target test cases is consistent with the number of the functions to be tested of the electric control unit to be tested under the adaptive diagnosis service.
Illustratively, if the adaptive diagnostic service is diagnostic service 1 and diagnostic service 2, the functions to be tested under the adaptive diagnostic service are subfunction 1 and subfunction 2 under the diagnostic service 1, and subfunction 3 under the diagnostic service 2, then the test case 1 matching the subfunction 1 under the diagnostic service 1, the test case 2 matching the subfunction 2 under the diagnostic service 1, and the test case 3 matching the subfunction 3 under the diagnostic service 2 are found in a pre-constructed test case library, and the 3 test cases are used as the target test cases of the adaptive diagnostic service.
S240, controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnosis service.
And S250, generating a function test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case.
Optionally, the functional test report of the adaptive diagnostic service includes a sub-functional test result of each function to be tested next by the adaptive diagnostic service. Because the electronic control unit to be tested may have one or more functions to be tested for adapting the diagnostic service, the number of target test cases for adapting the diagnostic service may also be one or more, and therefore the finally generated functional test report for adapting the diagnostic service includes the sub-functional test results of each function to be tested of the diagnostic service, and the sub-functional test results jointly form the functional test report for adapting the diagnostic service.
The present embodiment is further described below by the contents of some specific test cases.
For example, the order of the negative response codes returned by a certain service under a certain electronic control unit to be tested may also be used as a function test option under the service, and by executing the above steps S220 to S250, it may be determined whether the priority of the negative response codes returned by the service under the electronic control unit to be tested is correct according to the finally generated function test report.
For example, whether the function of a certain diagnostic service after supporting the positive response suppression bit is turned on is also used as a function test option, and by executing the above steps S220 to S250, it can be determined whether the function of the diagnostic service after supporting the positive response suppression bit is turned on is normal according to the finally generated function test report.
For example, the addressing mode of the sub-function under a certain diagnostic service under a certain electronic control unit to be tested may also be used as a function test option, and by executing the above steps S220 to S250, it may be determined whether the addressing mode of the sub-function under the diagnostic service is function addressing or physical addressing according to the finally generated function test report.
The technical solution provided in this embodiment is to first obtain a user test instruction facing the electronic control unit to be tested, where the user test instruction carries a function test option of the electronic control unit to be tested under an adaptive diagnostic service, then determine a function to be tested of the adaptive diagnostic service according to the function test option of the electronic control unit to be tested under the adaptive diagnostic service, then find a test case of each function to be tested under the adaptive diagnostic service in a pre-constructed test case library, as a target test case of the adaptive diagnostic service, control the electronic control unit to be tested to execute the target test case, obtain an actual test result of the adaptive diagnostic service, and finally generate a function test report of the adaptive diagnostic service according to the actual test result and a standard test result of the target test case, thereby implementing an automatic function test of the diagnostic service function, the diagnostic result of each function under the diagnostic service does not need to be compared manually by a tester, so that the tester can analyze the content of the functional test report in a centralized manner, the functional test accuracy of the diagnostic service is ensured by adopting an automatic test mode, and the functional test efficiency of the diagnostic service is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a testing apparatus for diagnostic services according to a third embodiment of the present invention, as shown in fig. 3, the testing apparatus may include:
the target test case searching module 310 is configured to search a target test case of the adaptive diagnostic service from a pre-constructed test case library according to a function test option of the electronic control unit to be tested under the adaptive diagnostic service;
an actual test result determining module 320, configured to control the electronic control unit to be tested to execute the target test case, so as to obtain an actual test result of the adaptive diagnostic service;
a functional test report generating module 330, configured to generate a functional test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case.
The technical solution provided in this embodiment is to find out a target test case of the adaptive diagnostic service from a pre-constructed test case library according to a function test option of the electronic control unit under test under the adaptive diagnostic service, then the electric control unit to be tested is controlled to execute the target test case to obtain the actual test result of the adaptive diagnostic service, and finally a function test report of the adaptive diagnostic service is generated according to the actual test result and the standard test result of the target test case, thereby realizing the automatic function test of the diagnostic service function without manually comparing the diagnostic result of each function under the diagnostic service by a tester, the method and the system enable the tester to analyze the content of the functional test report in a centralized manner, ensure the functional test accuracy of the diagnostic service in an automatic test mode, and improve the functional test efficiency of the diagnostic service.
Further, the target test case searching module 310 may be specifically configured to:
determining a function to be tested of the adaptive diagnostic service according to a function test option of the electronic control unit to be tested for the adaptive diagnostic service;
and finding out the test case of each function to be tested under the adaptive diagnostic service in a pre-constructed test case library to serve as a target test case of the adaptive diagnostic service.
Further, the function test report of the adaptive diagnostic service includes a sub-function test result of each function to be tested next by the adaptive diagnostic service.
Further, the diagnostic service test apparatus may further include:
and the user test instruction acquisition module is used for acquiring a user test instruction facing the electric control unit to be tested, and the user test instruction carries the function test options of the electric control unit to be tested under the adaptive diagnosis service.
Further, the actual test result determining module 320 may be specifically configured to:
sending a test request carrying the target test case to the electric control unit to be tested;
and receiving an actual test result replied after the target test case is executed by the electric control unit to be tested.
The test device for the diagnostic service provided by the embodiment of the invention can execute the test method for the diagnostic service provided by any embodiment of the invention, and has corresponding functions and beneficial effects.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the apparatus includes a processor 410, a storage device 420, and a communication device 430; the number of the processors 410 in the device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the storage 420 and the communication means 430 in the device may be connected by a bus or other means, which is exemplified in fig. 4.
The storage device 420, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as the modules corresponding to the test method of the diagnostic service in the embodiment of the present invention (for example, the target test case searching module 310, the actual test result determining module 320, and the functional test report generating module 330). The processor 410 executes various functional applications of the device and data processing, i.e., the test method of the diagnostic service described above, by executing software programs, instructions, and modules stored in the storage 420.
The storage device 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 420 may further include memory located remotely from the processor 410, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And a communication device 430 for implementing a network connection or a mobile data connection between the servers.
The device provided by the embodiment can be used for executing the test method of the diagnostic service provided by any of the above embodiments, and has corresponding functions and beneficial effects.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for testing a diagnostic service, the method including:
according to the function test options of the electronic control unit to be tested under the adaptive diagnosis service, searching a target test case of the adaptive diagnosis service from a pre-constructed test case library;
controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnostic service;
and generating a function test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the test method for diagnostic services provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the test apparatus for diagnostic services, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A method of testing a diagnostic service, comprising:
according to the function test options of the electronic control unit to be tested under the adaptive diagnosis service, searching a target test case of the adaptive diagnosis service from a pre-constructed test case library;
controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnostic service;
generating a function test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case;
before finding out the target test case of the adaptive diagnosis service from the pre-constructed test case library, the method further comprises the following steps:
acquiring a user test instruction facing the electric control unit to be tested, wherein the user test instruction carries a function test option of the electric control unit to be tested under the adaptive diagnosis service;
the function test options are sub-functions of the electronic control unit to be tested under each adaptive diagnosis service and parameters corresponding to the sub-functions, which are filled by a user;
the method for finding out the target test case of the adaptive diagnostic service from the pre-constructed test case library according to the function test options of the electronic control unit to be tested under the adaptive diagnostic service comprises the following steps:
determining a function to be tested of the adaptive diagnostic service according to a function test option of the electronic control unit to be tested for the adaptive diagnostic service;
finding out a test case of each function to be tested under the adaptive diagnostic service in a pre-constructed test case library to serve as a target test case of the adaptive diagnostic service;
the function test report of the adaptive diagnostic service comprises a sub-function test result of each function to be tested under the adaptive diagnostic service;
the step of controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnostic service includes:
sending a test request carrying the target test case to the electric control unit to be tested;
and receiving an actual test result replied after the target test case is executed by the electric control unit to be tested.
2. A diagnostic service testing apparatus, comprising:
the target test case searching module is used for searching a target test case of the adaptive diagnostic service from a pre-constructed test case library according to the function test options of the electric control unit to be tested under the adaptive diagnostic service;
the actual test result determining module is used for controlling the electric control unit to be tested to execute the target test case to obtain an actual test result of the adaptive diagnostic service;
a functional test report generating module, configured to generate a functional test report of the adaptive diagnostic service according to the actual test result and the standard test result of the target test case;
the user test instruction acquisition module is used for acquiring a user test instruction facing the electric control unit to be tested, and the user test instruction carries a function test option of the electric control unit to be tested under the adaptive diagnosis service;
the function test options are sub-functions of the electronic control unit to be tested under each adaptive diagnosis service and parameters corresponding to the sub-functions, which are filled by a user;
the target test case searching module is specifically configured to:
determining a function to be tested of the adaptive diagnostic service according to a function test option of the electronic control unit to be tested for the adaptive diagnostic service;
finding out a test case of each function to be tested under the adaptive diagnostic service in a pre-constructed test case library to serve as a target test case of the adaptive diagnostic service;
the function test report of the adaptive diagnostic service comprises a sub-function test result of each function to be tested under the adaptive diagnostic service;
the actual test result determining module is specifically configured to: sending a test request carrying the target test case to the electric control unit to be tested; and receiving an actual test result replied after the target test case is executed by the electric control unit to be tested.
3. An electronic device, characterized in that the device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of testing a diagnostic service as in claim 1.
4. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out a method of testing a diagnostic service as claimed in claim 1.
CN202010515096.0A 2020-06-08 2020-06-08 Diagnostic service test method, device, equipment and storage medium Active CN111708348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010515096.0A CN111708348B (en) 2020-06-08 2020-06-08 Diagnostic service test method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010515096.0A CN111708348B (en) 2020-06-08 2020-06-08 Diagnostic service test method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111708348A CN111708348A (en) 2020-09-25
CN111708348B true CN111708348B (en) 2022-03-15

Family

ID=72539873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010515096.0A Active CN111708348B (en) 2020-06-08 2020-06-08 Diagnostic service test method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111708348B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064823B (en) * 2021-03-30 2024-04-09 奇瑞汽车股份有限公司 Method and device for testing functions of parts of automobile and computer storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102608993A (en) * 2012-03-09 2012-07-25 北京经纬恒润科技有限公司 Network automation test method, cabinet and test host

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6434455B1 (en) * 1999-08-06 2002-08-13 Eaton Corporation Vehicle component diagnostic and update system
US6694235B2 (en) * 2001-07-06 2004-02-17 Denso Corporation Vehicular relay device, in-vehicle communication system, failure diagnostic system, vehicle management device, server device and detection and diagnostic program
US8239094B2 (en) * 2008-04-23 2012-08-07 Spx Corporation Test requirement list for diagnostic tests
CN104298224A (en) * 2014-09-12 2015-01-21 中国第一汽车股份有限公司 Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system
CN104267715A (en) * 2014-09-12 2015-01-07 中国第一汽车股份有限公司 Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system
CN104865948B (en) * 2014-12-19 2018-05-11 北京宝沃汽车有限公司 A kind of automobile controller automatic diagnostic device and method
CN107491061B (en) * 2017-08-31 2019-09-03 中国第一汽车股份有限公司 A kind of the network automatically test macro and its method of commercial vehicle OBD diagnostic device
CN111026096B (en) * 2019-12-30 2020-10-30 华人运通(江苏)技术有限公司 Vehicle diagnosis method, apparatus, system, device and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102608993A (en) * 2012-03-09 2012-07-25 北京经纬恒润科技有限公司 Network automation test method, cabinet and test host

Also Published As

Publication number Publication date
CN111708348A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN110719199B (en) Network automatic testing and fault positioning method and device
CN112202639B (en) Performance test method for realizing Internet of vehicles remote control service through LoadRunner tool
WO2019128299A1 (en) Test system and test method
CN110908909A (en) Automatic testing method and device, storage medium and equipment
CN111708348B (en) Diagnostic service test method, device, equipment and storage medium
CN113672441A (en) Method and device for testing intelligent equipment
CN110618853B (en) Detection method, device and equipment for zombie container
CN108595195B (en) Application program updating method, device, terminal and storage medium
CN113535262A (en) Method, device, equipment and storage medium for controlling starting of proxy node
CN112462727A (en) Vehicle-mounted part testing method and device
CN112835598A (en) Automobile ECU (electronic control Unit) flashing method and system and computer readable storage medium
CN111045616A (en) Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium
CN115080507A (en) Vehicle fault snapshot data storage method, system, equipment and storage medium
CN106844073B (en) Method for diagnosing application, diagnosis client and system
CN109960657B (en) Test environment deployment method and related device
CN113296945A (en) Continuous integration method, system, equipment and computer readable storage medium
US20200394129A1 (en) Self healing software utilizing regression test fingerprints
CN111400057A (en) Method, device and medium for remotely controlling test process
CN107465762B (en) Testing method and system for distributed storage system
CN111338926A (en) Patch testing method and device and electronic equipment
CN113268348B (en) Switching method and device of distributed lock server, computer equipment and medium
CN111343042B (en) DNS analysis test method and test system
CN114090040A (en) Configuration change method, device, equipment, server, storage medium and product
CN115733629A (en) Safety testing method, device and medium for narrow-band Internet of things equipment

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