CN114218092A - Diagnostic management module test system, method and equipment - Google Patents
Diagnostic management module test system, method and equipment Download PDFInfo
- Publication number
- CN114218092A CN114218092A CN202111485294.8A CN202111485294A CN114218092A CN 114218092 A CN114218092 A CN 114218092A CN 202111485294 A CN202111485294 A CN 202111485294A CN 114218092 A CN114218092 A CN 114218092A
- Authority
- CN
- China
- Prior art keywords
- test
- management module
- tested
- output signal
- information
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 330
- 238000000034 method Methods 0.000 title claims abstract description 116
- 230000004044 response Effects 0.000 claims abstract description 130
- 238000003745 diagnosis Methods 0.000 claims abstract description 121
- 230000008569 process Effects 0.000 claims abstract description 85
- 238000004088 simulation Methods 0.000 claims abstract description 58
- 238000012545 processing Methods 0.000 claims abstract description 20
- 238000004458 analytical method Methods 0.000 claims abstract description 15
- 238000007726 management method Methods 0.000 claims description 159
- 238000004891 communication Methods 0.000 claims description 34
- 230000006870 function Effects 0.000 claims description 13
- 230000003993 interaction Effects 0.000 claims description 6
- 238000013500 data storage Methods 0.000 claims description 5
- 210000001503 joint Anatomy 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 6
- 230000003044 adaptive effect Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000002405 diagnostic procedure Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000000593 degrading effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a test system, a method and equipment for a diagnosis management module, the application configures a test case for the diagnosis management module to be tested by utilizing an upper computer, generates a test input signal according to the test case, so that the diagnosis management module to be tested responds to the test input signal to acquire test case associated information, carries out diagnosis processing according to the test case associated information, generates a test output signal corresponding to response process information and the test case, and analyzes a test result by utilizing the upper computer to carry out test result analysis on the response process information and the test output signal, thereby avoiding interference caused by instability of other modules of a platform on the test of the diagnosis management module and improving the accuracy of the test result of the diagnosis management module; and the function of the other modules of the simulation platform in butt joint with the diagnosis management module to be tested improves the test efficiency of the diagnosis management module to be tested.
Description
Technical Field
The invention relates to the field of vehicle communication, in particular to a diagnostic management module testing system, method and device.
Background
With the rapid development of automobile electronic intelligence and the exponential increase of vehicle-mounted application complexity, an adaptive automotive open system architecture (AdaptiveAUTOSAR) platform is introduced into the automobile software industry chain. The diagnostic management module under test in the platform can be used for providing indication of the current system state of the automobile, identifying bad conditions, providing driver warning, degrading functional degradation safety and the like. The to-be-tested diagnosis management module plays an irreplaceable role in software and hardware development, original equipment manufacturing and after-sale fault analysis. The diagnostic management module to be tested mainly has two functions: fault diagnostic event management and diagnostic communication management. The fault diagnosis event management is mainly responsible for diagnosis services related to diagnosis of fault codes, such as a server for reading the fault codes and clearing the fault codes; diagnostic communication management is primarily responsible for ensuring diagnostic communication data flow, and diagnostic state control including secure access. In the related art, the actual test of the diagnostic management module to be tested, such as white box test and black box test, needs to rely on other modules in the platform, but the modules have complex functions and cannot provide process logs for the test, so that the real problem of positioning is difficult.
Disclosure of Invention
In order to solve the technical problems, the invention provides a system, a method and equipment for testing a diagnosis management module, which can greatly improve the accuracy of the test result of the diagnosis management module and improve the test efficiency.
To achieve the above object, the present application provides a diagnostic management module testing system, comprising:
the system comprises an upper computer, a diagnostic management module to be tested and a simulation test system;
the simulation test system comprises: the system comprises a correlation information determining module and a simulation self-adaptive application module;
the upper computer is used for configuring a test case for the to-be-tested diagnosis management module;
the associated information determining module is used for obtaining test case associated information based on the test case; the simulation self-adaptive application module is used for generating a test input signal according to the test case so that the to-be-tested diagnosis management module calls the associated information determination module based on the test input signal and carries out diagnosis processing according to the test case associated information to generate response process information and a test output signal corresponding to the test case;
and the upper computer is also used for determining a test result according to the response process information and the test output signal.
In one possible implementation, the simulation test system further includes a simulation log and a tracking module;
the simulation log and tracking module is used for logging the to-be-tested diagnosis management module.
In one possible implementation, the simulation test system further includes a data communication module;
the data communication module is used for providing communication interface service and data reading or writing function for the to-be-tested diagnosis management module.
In one possible implementation manner, the data communication module comprises a communication interface, a simulation file system, a simulation key value pair database and a simulation data interaction module, wherein the communication interface is used for providing a protocol for communication between the upper computer and the simulation test system; the simulation file system, the simulation key value pair database and the simulation data interaction module are used for providing a data reading or writing function.
In another aspect, based on the system in any one of the above items, the present application further provides a diagnostic management module testing method, including:
configuring a test case for the to-be-tested diagnosis management module by utilizing the upper computer;
obtaining test case associated information and a test input signal based on the test case;
sending the test case correlation information and the test input signal to the to-be-tested diagnosis management module so that the to-be-tested diagnosis management module carries out diagnosis processing according to the test input signal and the test case correlation information to generate response process information and a test output signal corresponding to the test case;
and carrying out test analysis processing on the response process information and the test output signal by using the upper computer to obtain a test result.
In one possible implementation, the method further includes:
acquiring log information of the diagnosis management module to be tested by using the upper computer;
and determining whether the diagnostic management module to be tested normally operates based on the log information, the response process information and the test output signal.
In one possible implementation, the method further includes:
acquiring the reference response process information and the reference output signal;
the upper computer is used for carrying out test analysis processing on the response process information and the test output signal, and the test result obtaining comprises the following steps:
comparing the reference response process information with the response process information by using the upper computer to obtain a first comparison result;
comparing the reference output signal with the test output signal to obtain a second comparison result;
and obtaining the test result based on the first comparison result and the second comparison result.
In one possible implementation manner, the determining whether the diagnostic management module under test operates normally based on the log information, the response process information, and the test output signal includes:
detecting whether preset log information exists in the log information or not, and detecting whether the response process information and the test output signal are normal or not;
and if so, determining that the to-be-tested diagnosis management module operates normally.
In a possible implementation manner, the analyzing the test result of the response process information and the test output signal by using the upper computer includes:
determining the response times of the diagnostic management module to be tested based on the response process information when the test output signal is received;
if the response times are preset response times corresponding to the test cases, determining that the to-be-tested diagnosis management module operates normally;
and if the response times are not the preset response times corresponding to the test cases, determining the test problems of the to-be-tested diagnosis management module according to the response process information.
In another aspect, the present application further provides an electronic device, which includes a processor and a memory, where the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the diagnostic management module testing method of any one of the above items.
The application has the following beneficial effects:
the method comprises the steps that a test case is configured on a diagnosis management module to be tested by utilizing an upper computer, a test input signal is generated according to the test case, so that the diagnosis management module to be tested responds to the test input signal to obtain test case associated information, diagnosis processing is carried out according to the test case associated information, test output signals corresponding to response process information and the test case are generated, and test results are analyzed by utilizing the upper computer, so that the interference of instability of other modules of a platform on the test of the diagnosis management module can be avoided, and the accuracy of the test results of the diagnosis management module is improved; and the function of the other modules of the simulation platform in butt joint with the diagnosis management module to be tested improves the test efficiency of the diagnosis management module to be tested.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a block diagram of a diagnostic management module test system according to an embodiment of the present disclosure;
FIG. 2 is a block diagram of a diagnostic management module testing system according to another embodiment of the present application;
FIG. 3 is a block diagram of a diagnostic management module testing system according to another embodiment of the present application;
FIG. 4 is a block diagram of a diagnostic management module testing system according to another embodiment of the present application;
FIG. 5 is a flowchart illustrating a diagnostic management module testing method according to an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart illustrating a diagnostic management module testing method according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating a diagnostic management module testing method according to another embodiment of the present application;
fig. 8 is a schematic flowchart illustrating a process of determining whether a to-be-tested diagnosis management module operates normally according to an embodiment of the present application;
fig. 9 is a schematic flowchart of a test analysis processing method according to an embodiment of the present application;
fig. 10 is a block diagram of an electronic device for testing a diagnostic management module according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be 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 the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to implement the technical solution of the present application, so that more engineering workers can easily understand and apply the present application, the working principle of the present application will be further described with reference to specific embodiments.
The present application can be applied to the field of vehicle function testing, and an embodiment of a diagnostic management module testing system according to the present application is described below, fig. 1 is a structural diagram of a diagnostic management module testing system according to the present application, and specifically, as shown in fig. 1, the system may include an upper computer 11, a diagnostic management module to be tested 12, and a simulation testing system 13. The simulation test system 13 may include: a correlation information determination module 131 and a simulation adaptive application module 132.
In practical application, the upper computer 11 may be installed with upper computer management software for configuring a test case for the to-be-tested diagnosis management module. The test case refers to a specific file for testing 12 the management module to be diagnosed, and may include a test target, a test environment, input data, a test step, an expected result, a test script, and the like. The simulation adaptive application module 132 may be configured to generate a test input signal according to the test case, so that the to-be-tested diagnosis management module 12 invokes the persistence simulation module 131 based on the test input signal to obtain the test case related information, and performs diagnosis processing according to the test case related information to generate the response process information and a test output signal corresponding to the test case. The upper computer 11 is also used for determining a test result according to the response process information and the test output signal.
Optionally, the simulation test system 13 may further include a simulation communication management module. Specifically, the analog communication management module is used for providing communication services for the input signals, the test case associated information, the response process information and the test output signals. In this embodiment, the simulation adaptive application module 132 may parse the test case and execute the test script therein, so as to generate the test input signal of the to-be-tested diagnosis management module 12.
In this embodiment, the response process information generated by the to-be-tested diagnosis management module 12 refers to response information sequentially generated by the to-be-tested diagnosis management module 12 from the input of the test input signal to the output of the test output signal, for example, the to-be-tested diagnosis management module 12 calls the association information determination module 131 based on the test input signal, that is, an action performed in response to the test input signal. It should be noted that, the to-be-tested diagnosis management module 12 may perform at least one response from the input of the test input signal to the output of the test output signal; accordingly, the generated response procedure information may include response information corresponding to at least one response, which is not limited in this application.
In the embodiment, the upper computer configures the test case for the to-be-tested diagnosis management module, the simulation test system generates the test input signal according to the test case, so that the to-be-tested diagnosis management module carries out diagnosis processing based on the test input signal, generates the response process information and the test output signal corresponding to the test case, carries out test result analysis on the response process information and the test output signal generated by the to-be-tested diagnosis management module, and can provide an accurate and error-free test signal for the to-be-tested diagnosis management module, thereby carrying out accurate and reliable test on the to-be-tested diagnosis management module; in addition, the simulation test system only tests the diagnosis management module to be tested, so that the test efficiency of the diagnosis management module to be tested is greatly improved.
In one possible implementation, as shown in fig. 2, the simulation test system 13 may further include a data communication module 140. Specifically, the data communication module 140 may be used to provide communication interface services and data reading and writing functions for the to-be-tested diagnostic management module 12.
The embodiment improves the efficiency of data communication in the test process by providing the communication interface service and the data communication module with the data reading and writing functions.
In one possible implementation, as shown in fig. 3, the data communication module 140 may include a communication interface 141, a simulation file system 142, a simulation key-value pair database 143, and a simulation data interaction module 144.
In this embodiment, the communication interface 141 is used to provide a protocol for communication between the upper computer 11 and the simulation test system 13. Specifically, for example, the communication interface may establish communication between the simulation test system 13 and the to-be-tested diagnosis management module 12 by using the first interface, and establish communication between the simulation test system 13 and the upper computer 12 by using the second interface. The simulation file system 142, the simulation key value pair database 143 and the simulation data interaction module 144 are all used for providing data storage services. The emulated file system 142 may provide file storage services, the emulated key-value pair database 143 may provide storage services for key-value pairs, and the emulated data exchange module 144 may be used to perform exchanges of data.
The embodiment can provide the data storage service of the corresponding type for the to-be-tested diagnosis management module during the diversity test by providing the data storage service of the multiple types.
In some possible implementations, as shown in fig. 4, the simulation test system 13 may further include a simulation log tracking module 134.
Specifically, the simulation log tracking module 134 may be used for logging the to-be-tested diagnosis management module 12. It should be noted that, in the embodiment of the present disclosure, the log of the diagnostic management module 12 under test recorded by the simulation log tracking module 134 is different from the response process information. The log recorded by the simulation log tracking module 134 is trace data corresponding to any operation of the to-be-tested diagnosis management module 12 in the test process, for example, an object, time, and specific content of the operation performed by the to-be-tested diagnosis management module 12. The response process information may be trace data corresponding to the to-be-tested diagnosis management module 12 executing any action in response to a signal.
According to the embodiment, the log tracking module is arranged to log the to-be-tested diagnosis management module, so that all operation information of the to-be-tested diagnosis management module can be clearly displayed.
The application also provides a diagnostic management module testing method. The method adopts the diagnosis management module test system in any embodiment to test the diagnosis management module to be tested. The present specification provides method steps as described in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. As shown in fig. 5, the method may include:
in step S501, a test case is configured for the to-be-tested diagnosis management module by using the upper computer.
In the embodiment of the present specification, the test case refers to a specific file for testing the management module to be diagnosed, and the test case may include a test target, a test environment, input data, a test step, an expected result, a test script, and the like. For example, the test case may be a test that performs a "time-based debounce" function for the diagnostic management module under test.
In step S503, test case association information and a test input signal are obtained based on the test case.
In this embodiment of the present description, the test case related information may refer to specific parameters corresponding to the test case, and the test input signal may refer to a test instruction notifying the diagnostic management module to be tested. For example, when the test case is a time-based debounce function test performed on the to-be-tested diagnosis management module, the test case related information may be that a first diagnosis event is triggered at a first time, a second diagnosis event is continuously triggered at a second time, and a difference between the first diagnosis event and the second diagnosis event is 20 ms; the test input command may be a command to notify the diagnostic management module under test to debounce.
In step S505, the test case correlation information and the test input signal are sent to the to-be-tested diagnosis management module, so that the to-be-tested diagnosis management module performs diagnosis processing according to the test input signal and the test case correlation information, and generates response process information and a test output signal corresponding to the test case.
In this embodiment of the present specification, the response process information generated by the to-be-tested diagnosis management module refers to response information sequentially generated by the to-be-tested diagnosis management module from the input of the test input signal to the output of the test output signal, and the response process information may include response information corresponding to at least one response. And the test output result is the final output result corresponding to the test case.
Specifically, the diagnostic management module to be tested receives the test input signal, and can start the current diagnosis, for example, when the debounce function test is performed, the diagnostic management module to be tested receives the test input signal, that is, the diagnostic test is started; when a first diagnosis event is triggered, the to-be-tested diagnosis management module calls the correlation information determination module to acquire a first signal and diagnoses whether to remove jitter according to the first signal; when the second diagnosis event is triggered, the to-be-tested diagnosis management module calls the correlation information determination module to acquire a second signal and diagnoses whether to remove jitter according to the second signal. In order to ensure the comprehensiveness of the test, the test case may include a plurality of cases, for example, the first test case, where the first signal is actually a signal that is successfully debounced, and the second signal is actually a signal that is failed in debounce; a second test case, the first signal is actually a signal that is successfully debounced, and the second signal is actually a signal that is successfully debounced; in a third test example, the first signal was actually a de-jittering failed signal and the second signal was actually a de-jittering failed signal. The to-be-tested diagnosis management module can be used for respectively diagnosing the three test cases to obtain three test results. This is not a limitation of the present application.
In step S507, the upper computer is used to perform test analysis processing on the response process information and the test output signal, so as to obtain a test result.
In the embodiment of the specification, the upper computer can be used for comprehensively analyzing the response process information and the test output signal to obtain a test result. Specifically, when the response process information and the test output signal are both correct, it can be determined that the diagnostic management module to be tested is successfully operated.
The embodiment configures the test case for the diagnostic management module to be tested by using the upper computer, obtains the test case associated information and the test input signal based on the test case, and sends the test case associated information and the test input signal to the diagnostic management module to be tested, so that the diagnostic management module to be tested performs diagnostic processing according to the test input signal and the test case associated information, can provide an accurate and error-free test signal for the diagnostic management module to be tested, performs test result analysis on response process information and a test output signal by using the upper computer, can perform accurate and reliable test on the diagnostic management module to be tested, and can greatly improve the test efficiency of the diagnostic management module to be tested because the simulation test system only performs test on the diagnostic management module to be tested.
In some possible embodiments, as shown in fig. 6, the method may further include:
in step S601, the upper computer is used to obtain the log information of the to-be-tested diagnosis management module.
In this embodiment of the present specification, the log information of the to-be-tested diagnosis management module may refer to description information generated by the to-be-tested diagnosis management module for each action, and specifically, the description information may include time, an executor, an executed object, operation content, and the like.
In step S603, it is determined whether the diagnostic management module under test operates normally based on the log information, the response process information, and the test output signal.
In the embodiment of the present specification, the log information, the response process information, and the test output signal may be subjected to test analysis, so as to determine whether the diagnostic management module to be tested operates normally.
In the embodiment, the upper computer is used for obtaining the log information of the diagnosis management module to be tested, whether the diagnosis management module to be tested normally operates is determined based on the log information, the response process information and the test output signal, and the diagnosis management module to be tested can be tested and analyzed based on more comprehensive information, so that misjudgment of a test result is reduced, and the accuracy of the test result is ensured.
In some possible implementations, as shown in fig. 7, the method may further include:
in step S701, reference response process information and a reference output signal are acquired.
In this embodiment of the present specification, the reference response process information may refer to response process information corresponding to the test case and serving as a comparison benchmark, for example, when the test case is a time-based debounce function test performed on the to-be-tested diagnosis management module, the reference response process information may include first response process information corresponding to the first diagnosis event and second response process information corresponding to the second diagnosis event. The reference output signal may refer to a test result corresponding to the test case as a reference for comparison. For example, in the first test case, the first signal is actually a debounce successful signal, the second signal is actually a debounce failed signal, and the reference output signal may include a debounce successful output signal actually corresponding to the first diagnostic event and a debounce failed output signal actually corresponding to the second diagnostic event; in a second test case, the first signal is actually a successfully debounced signal, the second signal is actually a successfully debounced signal, and the reference output signal may include a successfully debounced output signal actually corresponding to the first diagnostic event and a successfully debounced output signal actually corresponding to the second diagnostic event.
Step S507, performing test analysis processing on the response process information and the test output signal by using the upper computer, and obtaining a test result may include:
in step S703, the reference response process information and the response process information are compared by the upper computer to obtain a first comparison result.
In the embodiment of the present specification, when the reference response procedure information and the response procedure information are the same, the first comparison result is that the first comparison result is identical, and when the reference response procedure information and the response procedure information are different, the first comparison result is that the first comparison result is not identical.
In step S705, the reference output signal and the test output signal are compared by the upper computer to obtain a second comparison result.
In the embodiment of the present specification, the second comparison result is that the second comparison result is identical when the reference output signal and the test output signal are identical, and the second comparison result is that the second comparison result is not identical when the reference output signal and the test output signal are different.
In step S707, a test result is obtained based on the first comparison result and the second comparison result.
In the embodiment of the specification, when the first comparison result and the second comparison result are both consistent, the test result indicates that the diagnostic management module to be tested operates normally; and when the first comparison result and the second comparison result are different, the test result indicates that the to-be-tested diagnosis management module is in error operation.
The embodiment responds to the process information and the reference output signal by acquiring the reference; comparing the reference response process information with the response process information by using the upper computer to obtain a first comparison result; comparing the reference output signal with the test output signal to obtain a second comparison result; and obtaining a test result based on the first comparison result and the second comparison result, so that the test result of the to-be-tested diagnosis management module can be accurately obtained, and the accuracy of the test result is improved.
In some possible implementations, as shown in fig. 8, determining whether the diagnostic management module under test is operating normally based on the log information, the response process information, and the test output signal may include:
in step S801, it is detected whether preset log information exists in the log information, and whether the response process information and the test output signal are normal.
In this embodiment of the present specification, the preset log information may refer to description information corresponding to the test case and serving as a comparison reference, where the description information may be, for example, information such as time, an executor, an executed object, and operation content. See above for response procedure information and for testing whether the output signal is normal.
In step S803, if the preset log information exists in the log information, the response process information and the test output signal are both normal, and it is determined that the diagnostic management module to be tested is operating normally.
According to the embodiment, whether the to-be-tested diagnosis management module normally operates is determined by detecting whether the preset log information exists in the log information and detecting the response process information and the test output signal, and if the preset log information exists in the log information and the response process information and the test output signal are both normal, the to-be-tested diagnosis management module normally operates, so that the accurate determination of the test result of the to-be-tested diagnosis management module can be realized.
In some possible implementation manners, for some complex-function diagnostic tests, the diagnostic management module to be tested may experience multiple responses, as shown in fig. 9, the upper computer is used to perform test analysis processing on the response process information and the test output signal, and the obtained test result may include;
in step S901, when the test output signal is received, the number of responses of the diagnostic management module under test is determined based on the response process information.
In this embodiment of the present specification, the number of response times may be marked in the response process information, so that when the test output signal is received, the response process information is obtained, and the number of response times of the to-be-tested diagnosis management module may be determined according to the response process information, for example, when the test output signal is obtained, the to-be-tested diagnosis management module performs 8 responses.
In step S903, if the response times are preset response times corresponding to the test case, it is determined that the test result is that the to-be-tested diagnosis management module is operating normally.
In this embodiment of the present specification, the preset response times may be an accurate response time threshold of the diagnosis management module obtained according to the test case, and when the response times of the diagnosis management module to be tested is the preset response times corresponding to the test case, it may be determined that the diagnosis management module to be tested operates normally.
In step S905, if the response times are not the preset response times corresponding to the test case, the test problem of the to-be-tested diagnosis management module is determined according to the response process information.
In the embodiment of the present specification, when the response times are not the preset response times corresponding to the test case, the test problem of the diagnostic management module to be tested may be determined according to the response process information. Specifically, for example, the preset response times are 8 times, which are responses performed according to the first to-be-responded signal, the second to-be-responded signal, to the eighth to-be-responded signal, respectively, while during the test, the response times of the to-be-tested diagnostic management module are 3 times, and the response process information records a first response performed according to the first to-be-responded signal to a third response performed according to the third to-be-responded signal; therefore, the analysis of the test problems can be carried out from the execution object responding for the third time, and the fault of the diagnosis management module to be tested can be determined.
Optionally, the preset response time may also be a minimum response time threshold obtained according to the test case, and when the response time of the to-be-tested diagnosis management module is not lower than the preset response time, it may be determined that the to-be-tested diagnosis management module operates normally. The diagnostic management module under test may respond multiple times based on the same signal.
The embodiment determines the response times of the diagnosis management module to be tested based on the response process information when the test output signal is received; if the response times are the preset response times corresponding to the test cases, determining that the to-be-tested diagnosis management module operates normally; if the response times are not the preset response times corresponding to the test cases, the test problem of the to-be-tested diagnosis management module is determined according to the response process information, the processing efficiency of testing the to-be-tested diagnosis management module can be improved, and the processing efficiency of fault diagnosis is improved when the to-be-tested diagnosis management module breaks down.
Another aspect of the present application also provides an electronic device, which may be a terminal, and an internal structure diagram of the electronic device may be as shown in fig. 10. The electronic device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a storage medium and an internal memory. The storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and computer programs in the storage medium to run. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement the diagnostic management module testing method described above. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic device, a touch pad and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and does not constitute a limitation on the electronic devices to which the disclosed aspects apply, as a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Yet another aspect of the present application provides a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the above-mentioned diagnostic management module testing method. The computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Yet another aspect of the present application provides a computer program product comprising computer instructions which, when executed by a processor, cause a computer to perform the diagnostic management module testing method described above.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that although embodiments described herein include some features included in other embodiments, not other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims of the present invention, any of the claimed embodiments may be used in any combination.
The present invention may also be embodied as apparatus or system programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps or the like not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several systems, several of these systems may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering and these words may be interpreted as names.
Claims (10)
1. A diagnostic management module test system, the system comprising:
the system comprises an upper computer, a diagnostic management module to be tested and a simulation test system;
the simulation test system comprises: the system comprises a correlation information determining module and a simulation self-adaptive application module;
the upper computer is used for configuring a test case for the to-be-tested diagnosis management module;
the associated information determining module is used for obtaining test case associated information based on the test case; the simulation self-adaptive application module is used for generating a test input signal according to the test case so that the to-be-tested diagnosis management module calls the associated information determination module based on the test input signal and carries out diagnosis processing according to the test case associated information to generate response process information and a test output signal corresponding to the test case;
and the upper computer is also used for determining a test result according to the response process information and the test output signal.
2. The system of claim 1, wherein the simulation test system further comprises a data communication module;
the data communication module is used for providing communication interface service and data reading and writing functions for the to-be-tested diagnosis management module.
3. The system of claim 2, wherein the data communication module comprises a communication interface, a simulation file system, a simulation key-value pair database and a simulation data interaction module, and the communication interface is used for providing a protocol for communication between the upper computer and the simulation test system; the simulation file system, the simulation key value pair database and the simulation data interaction module are used for providing data storage service.
4. The system of claim 1, wherein the simulation test system further comprises a simulation log tracking module;
the simulation log tracking module is used for recording logs of the diagnosis management module to be tested.
5. A diagnostic management module testing method based on the system of any one of claims 1 to 4, the method comprising:
configuring a test case for the to-be-tested diagnosis management module by utilizing the upper computer;
obtaining test case associated information and a test input signal based on the test case;
sending the test case correlation information and the test input signal to the to-be-tested diagnosis management module so that the to-be-tested diagnosis management module carries out diagnosis processing according to the test input signal and the test case correlation information to generate response process information and a test output signal corresponding to the test case;
and carrying out test analysis processing on the response process information and the test output signal by using the upper computer to obtain a test result.
6. The method of claim 5, further comprising:
acquiring log information of the diagnosis management module to be tested by using the upper computer;
and determining whether the diagnostic management module to be tested normally operates based on the log information, the response process information and the test output signal.
7. The method of claim 5, further comprising:
acquiring the reference response process information and the reference output signal;
the upper computer is used for carrying out test analysis processing on the response process information and the test output signal, and the test result obtaining comprises the following steps:
comparing the reference response process information with the response process information by using the upper computer to obtain a first comparison result;
comparing the reference output signal with the test output signal to obtain a second comparison result;
and obtaining the test result based on the first comparison result and the second comparison result.
8. The method of claim 6, wherein the determining whether the diagnostic management module under test is functioning properly based on the log information, the response process information, and the test output signal comprises:
detecting whether preset log information exists in the log information or not, and detecting whether the response process information and the test output signal are normal or not;
and if the preset log information exists in the log information and the response process information and the test output signal are normal, determining that the to-be-tested diagnosis management module operates normally.
9. The method of claim 5, wherein the performing test analysis processing on the response process information and the test output signal by using the upper computer to obtain a test result comprises:
determining the response times of the diagnostic management module to be tested based on the response process information when the test output signal is received;
if the response times are preset response times corresponding to the test cases, determining that the test result is that the to-be-tested diagnosis management module operates normally;
and if the response times are not the preset response times corresponding to the test cases, determining the test problems of the to-be-tested diagnosis management module according to the response process information.
10. An electronic device comprising a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the diagnostic management module testing method according to any one of claims 5 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111485294.8A CN114218092A (en) | 2021-12-07 | 2021-12-07 | Diagnostic management module test system, method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111485294.8A CN114218092A (en) | 2021-12-07 | 2021-12-07 | Diagnostic management module test system, method and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114218092A true CN114218092A (en) | 2022-03-22 |
Family
ID=80700030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111485294.8A Pending CN114218092A (en) | 2021-12-07 | 2021-12-07 | Diagnostic management module test system, method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114218092A (en) |
-
2021
- 2021-12-07 CN CN202111485294.8A patent/CN114218092A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111897724B (en) | Automatic testing method and device suitable for cloud platform | |
CN111124919A (en) | User interface testing method, device, equipment and storage medium | |
US20100115496A1 (en) | Filter generation for load testing managed environments | |
CN108009085B (en) | Channel package testing method | |
CN108628746A (en) | Automatic interface testing method and system | |
US20160259714A1 (en) | Production sampling for determining code coverage | |
US20210019253A1 (en) | Methods Circuits Devices Systems and Functionally Associated Machine Executable Code For Enhanced Automated Software Code Testing | |
CN105653455A (en) | Program vulnerability detection method and detection system | |
CN114218092A (en) | Diagnostic management module test system, method and equipment | |
CN111143151B (en) | Service monitoring method and device and electronic equipment | |
CN106656684B (en) | Grid resource reliability monitoring method and device | |
CN113468058B (en) | Regression testing method and device for software as service platform and electronic equipment | |
CN112306038B (en) | Detection method, detection device and diagnosis equipment | |
CN114338451A (en) | Controller local area network bus test system, method and storage medium | |
CN117597669A (en) | Test method, system and device | |
US8140897B2 (en) | Testing method for complex systems | |
US20130006568A1 (en) | Test Operation | |
CN112199282A (en) | Fuzzy test method, device and equipment for office software | |
Oka et al. | Integrating fuzz testing into a CI pipeline for automotive systems | |
Lübke | Calculating test coverage for BPEL processes with process log analysis | |
CN113094221B (en) | Fault injection method, device, computer equipment and readable storage medium | |
CN117938708A (en) | Vehicle-mounted network testing method and device, storage medium, processor and vehicle | |
CN115686982A (en) | Vehicle-mounted system host test method, device, equipment and readable storage medium | |
Yeon et al. | Fault detection and diagnostic coverage for the domain control units of vehicle E/E systems on functional safety | |
CN116107903A (en) | Method, device, equipment and medium for testing vehicle-end service function |
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 |