CN109298702A - ECU automatic test approach and system - Google Patents
ECU automatic test approach and system Download PDFInfo
- Publication number
- CN109298702A CN109298702A CN201710607741.XA CN201710607741A CN109298702A CN 109298702 A CN109298702 A CN 109298702A CN 201710607741 A CN201710607741 A CN 201710607741A CN 109298702 A CN109298702 A CN 109298702A
- Authority
- CN
- China
- Prior art keywords
- test
- ecu
- data
- case
- automatic
- 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
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Abstract
The present invention provides a kind of ECU automatic test approach and systems, method includes the following steps: host computer receives test data, and generate test case according to the timestamp information in test data;Corresponding control instruction is generated according to the logical message in test case, and control instruction is sent to automatic Test Table, to test ECU;The test result of automatic Test Table feedback is received, and test report is generated according to test data and test result.The step of method of the invention can automatically generate test case and automatically generate test report, eliminate manual compiling test case, can substantially save testing time and cost, be conducive to the regression test that program carries out extensive automation.
Description
Technical field
The present invention relates to automobile technical field, in particular to a kind of ECU automatic test approach and system.
Background technique
The amount controller integrated in automobile at present is more and more, and function also becomes increasingly complex, so that ECU
The test assignment of (Electronic Control Unit, electronic control unit) becomes to become increasingly complex, is heavy, needs to expend
A large amount of manpowers.Faced with this situation, automatic test/calibration demand is more more and more urgent, meanwhile, ECU controls the version of software
Iteration is getting faster, and the requirement to regression test is higher and higher, and burden is increasingly heavier.
Be currently used in test mainly has the equipment such as test cabinet, HiL testboard.For example, a kind of current the relevant technologies
Such as " vehicle electronic control unit measuring system [ZH] of the CN201410325679.1- based on hardware-in-loop simulation ", the program is only
HiL system is realized, there is no the functions such as test data auto generation;Another the relevant technologies are such as
" automatic creation system and method [ZH] of a kind of automobile ECU diagnostic software model of CN201210357011.6- ", the program is
Test case is automatically generated for diagnosis of partial, test can not be generated to the regression test of software function according to real steering vectors data
Use-case.
On the other hand, be currently being widely used test cabinet uses the softwares such as LabView to carry out interface programming mostly, needs
Manually operation button, input frame etc. on software interface, do not support Run Script automated procedures.Such as dSpace company produces
HiL testboard, focus essentially consists in hardware-in-loop simulation, needs to build model just and can be carried out test, to personnel requirement compared with
Height, therefore required human and material resources higher cost.Moreover, these technologies mainly focus on positive test, for repeatability
Regression test do not do special optimization.
Summary of the invention
In view of this, the present invention is directed to propose a kind of ECU automatic test approach, this method can automatically generate test case
And the step of automatically generating test report, eliminating manual compiling test case, it can substantially save testing time and cost, have
The regression test of extensive automation is carried out conducive to program.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A kind of ECU automatic test approach, comprising the following steps: host computer receives test data, and according to the test number
Timestamp information in generates test case;Corresponding control instruction is generated according to the logical message in the test case,
And the control instruction is sent to automatic Test Table, to test the ECU;Receive the automatic Test Table
The test result of feedback, and test report is generated according to the test data and test result.
Further, the timestamp information according in the test data generates test case, further comprises: root
According to the timestamp information, initial test case is generated by the method for time series analysis, and to the initial test case
It optimizes, obtains the test case.
Further, described that the initial test case is optimized under the mode of paddling, further comprise:
It carries out merger to identical initial test case to simplify, to optimize the quantity of the initial test case.
Further, described that test report is generated according to the test data and test result, further comprise: according to institute
The timestamp information in test data is stated, the test result is analyzed, the test data is obtained and the test is tied
The relationship information of fruit;According to the relationship information, the test data and test result are compared, it is described to obtain
Test report.
Further, after the test data and test result are compared, further includes: if the test number
It is in default accuracy rating according to the data difference with test result, then the ECU test passes are determined, otherwise, it is determined that the ECU
Test failure.
Compared with the existing technology, ECU automatic test approach of the present invention has the advantage that
ECU automatic test approach of the present invention is able to use known automated test data generation test case, and
Realize automatic testing generation test report, the step of eliminating manual compiling test case, can substantially save the testing time and
Cost;In addition, this method is conducive to the regression test that program carries out extensive automation, it can be regression test special optimization,
Greatly shorten the time used in regression test.
It is another object of the present invention to propose that a kind of ECU Auto-Test System, the system can automatically generate test
Use-case and the step of automatically generate test report, eliminate manual compiling test case, can substantially save the testing time and at
This, is conducive to the regression test that program carries out extensive automation.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A kind of ECU Auto-Test System, comprising: host computer and automatic Test Table, wherein the host computer is for receiving
Test data, and test case is generated according to the timestamp information in the test data, and according in the test case
Logical message generates corresponding control instruction, and the control instruction is sent to the automatic Test Table, and described in reception
The test result of automatic Test Table feedback, and test report is generated according to the test data and test result;It is described automatic
Change testboard for testing according to the control instruction the ECU, and feed back the test result to the host computer.
Further, the host computer is used for: according to the timestamp information, being generated by the method for time series analysis
Initial test case, and the initial test case is optimized, obtain the test case.
Further, the host computer is used for: merger is carried out to identical initial test case and is simplified, it is described first to optimize
The quantity of beginning test case.
Further, the host computer is used for: according to the timestamp information in the test data, to the test result
It is analyzed, obtains the relationship information of the test data Yu the test result;According to the relationship information, to described
Test data and test result are compared, to obtain the test report.
Further, after the test data and test result are compared, the host computer is used for: when described
When the data difference of test data and test result is in default accuracy rating, the ECU test passes are determined, otherwise, it is determined that
The ECU test failure.
The ECU Auto-Test System is possessed excellent compared with the existing technology with above-mentioned ECU automatic test approach
Gesture is identical, and details are not described herein.
Detailed description of the invention
The attached drawing for constituting a part of the invention is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of ECU automatic test approach described in the embodiment of the present invention;
Fig. 2 is the whole realization principle architecture diagram of ECU automatic test approach described in one embodiment of the invention;
Fig. 3 is the structural block diagram of the ECU Auto-Test System of the embodiment of the present invention.
Description of symbols:
ECU Auto-Test System 100, host computer 110 and automatic Test Table 120.
Specific embodiment
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Fig. 1 is the flow chart of ECU automatic test approach according to an embodiment of the invention.As shown in Figure 1, according to this hair
The ECU automatic test approach of bright one embodiment, comprising the following steps:
Step S1: host computer receives test data, and generates test case according to the timestamp information in test data.
Specifically, test data be it is known, it includes timestamp information, for example, developer completes accordingly to match
After setting, the data (i.e. test data) passed through will be tested before and are sent to host computer.Based on this, in an implementation of the invention
In example, test case is generated according to the timestamp information in test data, further comprises: according to timestamp information, when passing through
Between the method analyzed of sequence generate initial test case, and initial test case is optimized, obtains test case.It that is to say
It says, includes the timestamp information of test data in the test case.
Further, initial test case is optimized, further comprises: identical initial test case is returned
And simplify, to optimize the quantity of initial test case.
Step S2: corresponding control instruction is generated according to the logical message in test case, and control instruction is sent to
Automatic Test Table, to test ECU.Wherein, control instruction is for example including the corresponding IO or CAN letter of control ECU
Number.In this manner it is achieved that the various input quantities and scalar quantity of control ECU, obtain various output quantities and the observed quantity of ECU to test
Demonstrate,prove ECU program correctness.
Specifically, include micro-controller program in automatic Test Table, communicated with host computer, according to the control of host computer
The various hard signals of system instruction defined and control and the collecting work of CAN signal.For example, ECU is controlled according to control instruction
The hard signal and CAN signal of ECU carries out necessary staking-out work to ECU, and acquires the hard signal and CAN letter of ECU sending
Number, work is observed to ECU, and test result is fed back into host computer.
Step S3: the test result (for example including I/O signal and CAN signal) of reception automatic Test Table feedback, and according to
Test data and test result generate test report, so that user checks.
Specifically, in one embodiment of the invention, test report is generated according to test data and test result, into one
Step includes: to be analyzed according to the timestamp information in test data the test result of output, obtains test data and test
As a result relationship information;According to relationship information, test data and test result are compared, to obtain test report,
Judgment basis whether this relevance is passed through as test.
In above process, after test data and test result are compared, further includes: if test data and
The data difference of test result is in default accuracy rating, then ECU test passes is determined, otherwise, it is determined that ECU test failure.
In other words, host computer by test result and is tested according to the relationship information of test data and test result derived above
Data compared to pair, if the difference of the two meet accuracy rating (default accuracy rating) be considered test pass through, exceed precision
Range is considered test crash, and exports test report.
As shown in connection with fig. 2, the whole realization principle of the ECU automatic test approach of the embodiment of the present invention can be summarized are as follows: exploitation
Personnel can will test the test data passed through before and be sent to host computer, host computer is given birth to automatically after completing corresponding configuration
Automatic Test Table is imported at test case, and by corresponding control instruction, automatic Test Table is according to the automatic needle of control instruction
External hard signal and CAN signal simulated to ECU, host computer is by the ECU hard signal controlled and CAN signal and expected result
(test data) compares, and automatically generates test report, so as to greatly shorten regression test institute to regression test special optimization
Time.
To sum up, ECU automatic test approach according to an embodiment of the present invention, is able to use known automated test data generation
Test case, and the step of realizing automatic testing generation test report, eliminating manual compiling test case, can substantially save
Testing time and cost;In addition, this method is conducive to the regression test that program carries out extensive automation, can be surveyed to return
Special optimization is tried, the time used in regression test is greatly shortened.
Further embodiment of the present invention proposes a kind of ECU Auto-Test System.
Fig. 3 is the structural block diagram of ECU Auto-Test System according to an embodiment of the invention.As shown in figure 3, according to this
The ECU Auto-Test System 100 of invention one embodiment, comprising: host computer 110 and automatic Test Table 120.
Wherein, host computer 110 is for receiving test data, and generates test according to the timestamp information in test data and use
Example, and corresponding control instruction is generated according to the logical message in test case, and control instruction is sent to automatic test
Platform 120, and the test result of the feedback of automatic Test Table 120 is received, and test report is generated according to test data and test result
It accuses.
Automatic Test Table 120 is for testing ECU according to control instruction, and to upper 110 machine feedback test knot
Fruit.
Specifically, in one embodiment of the invention, host computer 110 is generated according to the timestamp information in test data
Test case specifically includes: according to timestamp information, generating initial test case by the method for time series analysis, and right
Initial test case optimizes, and obtains test case.It in other words, include the timestamp of test data in the test case
Information.
Further, host computer 110 optimizes initial test case, specifically includes: using identical initial testing
Example carries out merger and simplifies, to optimize the quantity of initial test case.
In one embodiment of the invention, host computer 110 generates test report, tool according to test data and test result
Body includes: to be analyzed according to the timestamp information in test data test result, obtains test data and test result
Relationship information;According to relationship information, test data and test result are compared, to obtain test report, i.e., by this
Judgment basis whether relevance passes through as test.
In above process, after test data and test result are compared, host computer 110 is used for: working as test
When the data difference of data and test result is in default accuracy rating, ECU test passes are determined, otherwise, it is determined that ECU test is not
It is qualified.In other words, host computer 110 ties test according to the relationship information of test data and test result derived above
Fruit compared with test data pair, if the difference of the two meet accuracy rating (default accuracy rating) be considered that test passes through,
Test crash is considered beyond accuracy rating, and exports test report.
To sum up, the whole realization principle of the ECU Auto-Test System of the embodiment of the present invention can be summarized are as follows: developer can be with
After completing corresponding configuration, the test data passed through will be tested before and is sent to host computer 110, host computer 110 automatically generates
Test case, and by corresponding control instruction import automatic Test Table 120, automatic Test Table 120 according to control instruction from
Dynamic to simulate external hard signal and CAN signal for ECU, host computer 110 is by the ECU hard signal controlled and CAN signal and phase
It hopes result (test data) to compare, automatically generates test report, so as to greatly shorten and return to regression test special optimization
The test time used.
It should be noted that the specific implementation of the ECU Auto-Test System of the embodiment of the present invention and the present invention are implemented
The specific implementation of the ECU automatic test approach of example is similar, specifically refers to the description of method part, in order to reduce redundancy,
It is not repeated herein.
ECU Auto-Test System according to an embodiment of the present invention is able to use known automated test data generation test
Use-case, and the step of realizing automatic testing generation test report, eliminating manual compiling test case can substantially save test
Time and cost;In addition, the system is conducive to the regression test that program carries out extensive automation, it can be special for regression test
Different optimization, greatly shortens the time used in regression test.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of ECU automatic test approach, which comprises the following steps:
Host computer receives test data, and generates test case according to the timestamp information in the test data;
Corresponding control instruction is generated according to the logical message in the test case, and the control instruction is sent to automatically
Change testboard, to test the ECU;
The test result of the automatic Test Table feedback is received, and test report is generated according to the test data and test result
It accuses.
2. ECU automatic test approach according to claim 1, which is characterized in that described according in the test data
Timestamp information generates test case, further comprises:
According to the timestamp information, initial test case is generated by the method for time series analysis, and to the initial survey
Example on probation optimizes, and obtains the test case.
3. ECU automatic test approach according to claim 2, which is characterized in that it is described to the initial test case into
Row optimization further comprises:
It carries out merger to identical initial test case to simplify, to optimize the quantity of the initial test case.
4. ECU automatic test approach according to claim 2, which is characterized in that described according to the test data and survey
Test result generates test report, further comprises:
According to the timestamp information in the test data, the test result is analyzed, obtain the test data with
The relationship information of the test result;
According to the relationship information, the test data and test result are compared, to obtain the test report.
5. ECU automatic test approach according to claim 4, which is characterized in that tied to the test data and test
After fruit is compared, further includes:
If the data difference of the test data and test result is in default accuracy rating, determine that the ECU test is closed
Lattice, otherwise, it is determined that the ECU test failure.
6. a kind of ECU Auto-Test System characterized by comprising host computer and automatic Test Table, wherein
The host computer generates test case for receiving test data, and according to the timestamp information in the test data,
And corresponding control instruction is generated according to the logical message in the test case, and by the control instruction be sent to it is described from
Dynamicization testboard, and the test result of the automatic Test Table feedback is received, and according to the test data and test result
Generate test report;
The automatic Test Table is fed back for being tested according to the control instruction the ECU, and to the host computer
The test result.
7. ECU Auto-Test System according to claim 6, which is characterized in that the host computer is used for:
According to the timestamp information, initial test case is generated by the method for time series analysis, and to the initial survey
Example on probation optimizes, and obtains the test case.
8. ECU Auto-Test System according to claim 7, which is characterized in that the host computer is used for:
It carries out merger to identical initial test case to simplify, to optimize the quantity of the initial test case.
9. ECU Auto-Test System according to claim 7, which is characterized in that the host computer is used for:
According to the timestamp information in the test data, the test result is analyzed, obtain the test data with
The relationship information of the test result;
According to the relationship information, the test data and test result are compared, to obtain the test report.
10. ECU Auto-Test System according to claim 9, which is characterized in that tied to the test data and test
After fruit is compared, the host computer is used for:
When the data difference of the test data and test result is in default accuracy rating, the ECU test passes are determined,
Otherwise, it is determined that the ECU test failure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710607741.XA CN109298702A (en) | 2017-07-24 | 2017-07-24 | ECU automatic test approach and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710607741.XA CN109298702A (en) | 2017-07-24 | 2017-07-24 | ECU automatic test approach and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109298702A true CN109298702A (en) | 2019-02-01 |
Family
ID=65167061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710607741.XA Pending CN109298702A (en) | 2017-07-24 | 2017-07-24 | ECU automatic test approach and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109298702A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112362360A (en) * | 2020-11-10 | 2021-02-12 | 广州小鹏汽车科技有限公司 | Vehicle component testing method, device and system, test board card and storage medium |
JP7072697B1 (en) * | 2021-03-12 | 2022-05-20 | 三菱電機株式会社 | Electronic control device, test device for electronic control device, and test method for electronic control device |
CN115755844A (en) * | 2022-11-15 | 2023-03-07 | 北斗星通智联科技有限责任公司 | ECU (electronic control Unit) automatic test method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164526A (en) * | 2013-03-26 | 2013-06-19 | 北京经纬恒润科技有限公司 | Generation method and generation device of test report |
JP5846078B2 (en) * | 2012-08-24 | 2016-01-20 | 株式会社デンソー | Electronic control unit |
CN105955887A (en) * | 2016-05-04 | 2016-09-21 | 重庆长安汽车股份有限公司 | Test data generation method and system |
CN107193739A (en) * | 2017-05-23 | 2017-09-22 | 张泽祎 | A kind of black box regression testing method |
-
2017
- 2017-07-24 CN CN201710607741.XA patent/CN109298702A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5846078B2 (en) * | 2012-08-24 | 2016-01-20 | 株式会社デンソー | Electronic control unit |
CN103164526A (en) * | 2013-03-26 | 2013-06-19 | 北京经纬恒润科技有限公司 | Generation method and generation device of test report |
CN105955887A (en) * | 2016-05-04 | 2016-09-21 | 重庆长安汽车股份有限公司 | Test data generation method and system |
CN107193739A (en) * | 2017-05-23 | 2017-09-22 | 张泽祎 | A kind of black box regression testing method |
Non-Patent Citations (2)
Title |
---|
戚海明等: "基于单片机的自动测试系统设计", 《今日电子》 * |
赵林辉等: "汽车电控单元测试用例生成与集成测试技术", 《哈尔滨工业大学学报》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112362360A (en) * | 2020-11-10 | 2021-02-12 | 广州小鹏汽车科技有限公司 | Vehicle component testing method, device and system, test board card and storage medium |
JP7072697B1 (en) * | 2021-03-12 | 2022-05-20 | 三菱電機株式会社 | Electronic control device, test device for electronic control device, and test method for electronic control device |
CN115755844A (en) * | 2022-11-15 | 2023-03-07 | 北斗星通智联科技有限责任公司 | ECU (electronic control Unit) automatic test method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109324601B (en) | Test platform of robot controller or control system based on hardware-in-the-loop | |
CN105528290B (en) | Construction method of script-based embedded software simulation and test integrated platform | |
CN102169846B (en) | Method for writing multi-dimensional variable password in parallel in process of testing integrated circuit wafer | |
CN107562038B (en) | Automatic test system for vehicle-mounted controller | |
CN110048910A (en) | A kind of vehicle-mounted ethernet gateway test macro and method | |
US7895575B2 (en) | Apparatus and method for generating test driver | |
CN109298702A (en) | ECU automatic test approach and system | |
US9342441B2 (en) | Methodology and tool support for test organization and migration for embedded software | |
CN105808799A (en) | Universal test software in RTX (Real-Time eXecutive) environment and test method for universal test software | |
CN106628250B (en) | JL9 aircraft function modularization comprehensive automatic detection system | |
CN105739481B (en) | The test method of industrial control software, apparatus and system | |
CN103455024B (en) | ECU tests system and method | |
CN106815147A (en) | A kind of test script generation method and device | |
CN103885341B (en) | Performance analysis system based on automotive performance simulator and method | |
US8180610B2 (en) | Model-based diagnostic interface for a vehicle health management system having a system model with a system nomeclature | |
CN109558312A (en) | The test method of Airborne Software | |
CN110456763A (en) | The test macro and method of intelligent driving controller | |
CN103165405A (en) | Mutli-dimensional variable code real-time generation method through general purpose interface bus (GPIB) interface | |
CN110069414A (en) | Regression testing method and system | |
CN110221955A (en) | Test report generating means | |
CN111123084B (en) | TCL language-based digital circuit rapid test method | |
KR101013415B1 (en) | Apparatus and mehtod for testing rtc module | |
Hwang et al. | Black-box testing tool of railwaysignalling system software with a focus on user convenience | |
CN109061447A (en) | IC testing stimuli generation method based on modularization excitation model | |
CN108762227A (en) | A kind of automatic Pilot test system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190201 |
|
RJ01 | Rejection of invention patent application after publication |