CN108490922A - Generation method and device of unified diagnostic service test case - Google Patents
Generation method and device of unified diagnostic service test case Download PDFInfo
- Publication number
- CN108490922A CN108490922A CN201810393019.5A CN201810393019A CN108490922A CN 108490922 A CN108490922 A CN 108490922A CN 201810393019 A CN201810393019 A CN 201810393019A CN 108490922 A CN108490922 A CN 108490922A
- Authority
- CN
- China
- Prior art keywords
- information
- mapping
- fault
- failure
- test case
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 69
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000013507 mapping Methods 0.000 claims abstract description 154
- 230000001960 triggered effect Effects 0.000 claims description 25
- 230000004913 activation Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 13
- 230000004888 barrier function Effects 0.000 claims description 3
- 230000008014 freezing Effects 0.000 claims description 3
- 238000007710 freezing Methods 0.000 claims description 3
- 235000015110 jellies Nutrition 0.000 claims description 2
- 239000008274 jelly Substances 0.000 claims description 2
- 238000003745 diagnosis Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010304 firing Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Monitoring And Testing Of Exchanges (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The invention provides a method and a device for generating a unified diagnostic service test case, wherein the method comprises the following steps: acquiring fault information of at least one fault according to a unified diagnosis service protocol, wherein the fault information comprises a fault name, a diagnosis fault code and freeze frame information; acquiring data stream information in the freeze frame information according to the data identifier platform library and the DBC file; acquiring fault trigger information for triggering a fault, wherein the fault trigger information comprises: a fault trigger signal, a trigger threshold and a trigger time; determining the fault name, freeze frame information, data stream information and mapping information of a fault trigger signal of a first fault in the faults according to a preset mapping relation; and generating a first test case according to the fault information, the data flow information, the fault trigger information and the mapping information of the first fault. By extracting fault information, data flow information and fault trigger information, the test case is automatically generated, manpower consumption is reduced, and subjective influences of testers are avoided.
Description
Technical field
The present invention relates to automobile failure diagnosis field, more particularly to a kind of generation method of unified diagnostic service test case
And device.
Background technology
With the development of society, people’s lives level is also higher and higher.The quantity of automobile is also increasing severely day by day, and automobile is
As the important tool of people's trip.In order to facilitate the detection and repair of automobile, usually requires that automobile controller has and uniformly examine
Disconnected service function.
When for unified diagnostic service test, need to use test case.However existing test case is usually adopted
Manually design and the mode filled in manually, not only consume a large amount of manpowers, at the same test case also by engineer's subjective impact compared with
Greatly, coverage is very easy to incomplete.
Invention content
The present invention provides a kind of generation methods and device of unified diagnostic service test case, to solve the prior art
Middle establishment test case consumption manpower is big, test case data coverage difference and test case easily by subjective impact the problem of.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme that:
One side according to the present invention provides a kind of generation method of unified diagnostic service test case, including:
According to unified diagnostic service agreement, the fault message of at least one failure is obtained, wherein the failure information package includes
Failure title, diagnostic trouble code and freeze frame information;
According to data identifier platform library and DBC files, freeze the traffic flow information in frame information described in acquisition;
The failure triggering information for triggering the failure is obtained, wherein failure triggering information includes:False trigger signals,
Activation threshold value and triggered time;
According to default mapping relations, determines the failure title of Fisrt fault in the failure, freezes frame information, data flow letter
The map information of breath and false trigger signals;
Information and map information, which are triggered, according to the fault message, traffic flow information, failure of the Fisrt fault generates the
One test case.
Further, the basis presets mapping relations, determines failure title, the freeze frame of Fisrt fault in the failure
The step of map information of information, traffic flow information and false trigger signals includes:
According to the default mapping relations, the Fault Mapping of the failure title mapping of the Fisrt fault is determined;
According to the default mapping relations, determine that each of described Fisrt fault freezes the freeze frame title mapping of frame information
Freeze frame mapping;
According to the default mapping relations, the stream name mapping of each traffic flow information of the Fisrt fault is determined
Data flow mapping;
According to the default mapping relations, the signal name mapping of each false trigger signals of the Fisrt fault is determined
False trigger signals mapping, wherein the Fault Mapping, the freeze frame mapping, the data flow mapping and the failure
Trigger signal mapping is the identifiable title of computer program.
Further, the traffic flow information includes:Stream name, data stream encoding, byte, data shared by data flow
DBC titles, data flow precision and the data stream offset of stream.
Further, the failure triggering information further includes:Standrded fault pattern.
Further, described that information is triggered according to the fault message, traffic flow information, failure of the Fisrt fault and is reflected
Penetrating the step of information generates the first test case includes:
The Fault Mapping, freeze frame mapping, data flow mapping and the false trigger signals are mapped,
The diagnostic trouble code of the Fisrt fault, the traffic flow information of the Fisrt fault freezed in frame information and the Fisrt fault
Failure triggering information in activation threshold value and triggered time, be written preset test case template, generate it is described first test use
Example.
Another aspect according to the present invention provides a kind of generating means of unified diagnostic service test case, including:
First acquisition module, for according to unified diagnostic service agreement, obtaining the fault message of at least one failure, wherein
The fault message includes failure title, diagnostic trouble code and freezes frame information;
Second acquisition module, for according to data identifier platform library and DBC files, freezing in frame information described in acquisition
Traffic flow information;
Third acquisition module, for obtaining the failure triggering information for triggering the failure, wherein the failure triggers information
Including:False trigger signals, activation threshold value and triggered time;
Mapping block, for according to mapping relations are preset, determining failure title, the freeze frame of Fisrt fault in the failure
The map information of information, traffic flow information and false trigger signals;
Generation module, for triggering information according to the fault message, traffic flow information, failure of the Fisrt fault and reflecting
It penetrates information and generates the first test case.
Further, the mapping block includes:
First map unit, for according to the default mapping relations, determining the failure title mapping of the Fisrt fault
Fault Mapping;
Second map unit, for according to the default mapping relations, determining each freeze frame letter of the Fisrt fault
The freeze frame mapping of the freeze frame title mapping of breath;
Third map unit, for according to the default mapping relations, determining each data flow letter of the Fisrt fault
The data flow mapping of the stream name mapping of breath;
4th map unit, for according to the default mapping relations, determining each failure triggering of the Fisrt fault
The false trigger signals mapping of the signal name mapping of signal, wherein the mapping of the Fault Mapping, the freeze frame, the data
Stream mapping and false trigger signals mapping are the identifiable title of computer program.
Further, the generation module is specifically used for the Fault Mapping, freeze frame mapping, the data
The freeze frame of stream mapping and false trigger signals mapping, the diagnostic trouble code of the Fisrt fault, the Fisrt fault
Activation threshold value and triggered time in the failure triggering information of traffic flow information and the Fisrt fault in information, write-in are default
Test case template generates first test case.
The beneficial effects of the invention are as follows:
Above-mentioned technical proposal obtains the fault message, traffic flow information and the failure triggering information for triggering failure of failure,
It is the identifiable information of computer program by the information MAP of acquisition, and according to the letter after mapping according to default mapping relations
Breath automatically generates test case, reduces the consumption of manpower, avoids the subjective impact of tester, while perfect test case
The coverage of included information.
Description of the drawings
Fig. 1 shows a kind of generation method schematic diagrames of unified diagnostic service test case provided in an embodiment of the present invention;
Fig. 2 indicates a kind of generating means schematic diagram of unified diagnostic service test case provided in an embodiment of the present invention;
Fig. 3 indicates mapping block schematic diagram provided in an embodiment of the present invention.
Reference sign:
21, the first acquisition module;22, the second acquisition module;23, third acquisition module;24, mapping block;241, first
Map unit;242, the second map unit;243, third map unit;244, the 4th map unit;25, generation module.
Specific implementation mode
Exemplary embodiment of the present invention is more fully described below with reference to accompanying drawings.Although showing the present invention in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here
It is limited.It is to be able to be best understood from the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention
Completely it is communicated to those skilled in the art.
As shown in Figure 1, an embodiment of the present invention provides a kind of generation method of unified diagnostic service test case, this is unified
The generation method of diagnostic service test case includes:
S11:According to unified diagnostic service agreement, the fault message of at least one failure is obtained, wherein fault message includes
Failure title, diagnostic trouble code and freeze frame information;
It should be noted that each test case is only used for the test of a failure, the failure of a failure can be obtained
Information, to test the failure, naturally it is also possible to which the fault message for obtaining multiple failures is used to generate multiple tests
Example, tests multiple failures respectively.Freeze frame information include freeze frame title and composition this freeze the number of frame information
According to stream information.
S12:According to data identifier platform library and DBC files, the traffic flow information freezed in frame information is obtained;
It should be noted that data frame information includes at least one traffic flow information, in order to ensure the suitable of traffic flow information
What profit was extracted and was used, usually from when freezing to extract traffic flow information in frame information, need to meet data identifier platform library
With the code requirement of DBC files.
S13:The failure for obtaining triggering failure triggers information, and wherein failure triggering information includes:False trigger signals, triggering
Threshold value and triggered time;
It should be noted that each failure triggering information corresponds to a failure being triggered, the usual failure triggers information
Can also include failure title, the failure which shows is the event being triggered corresponding to failure triggering information
Barrier.Wherein each failure triggering information may include at least one false trigger signals, when the quantity of false trigger signals is 2
When, such as Fisrt fault trigger signal and the second false trigger signals, Fisrt fault trigger signal the first activation threshold value of correspondence, with
And corresponding first triggered time, the second false trigger signals correspond to the second activation threshold value, and corresponding second triggered time, failure
It is when triggering failure using Fisrt fault trigger signal to trigger the meaning represented by information, and the first observed value reaches the first firing level
Value, and continued for the first triggered time;And when using the second false trigger signals triggering failure, the second observed value reaches second
Activation threshold value, and continued for the second triggered time, then it breaks down;Certainly the meaning represented by failure triggering information may be
When triggering failure using Fisrt fault trigger signal, the first observed value reaches the first activation threshold value, and when continuing the first triggering
Between;Or when using the second false trigger signals triggering failure, the second observed value reaches the second activation threshold value, and continues second
Triggered time then breaks down, but not limited to this.
S14:According to default mapping relations, determines the failure title of Fisrt fault in failure, freezes frame information, data flow letter
The map information of breath and false trigger signals;
It should be noted that it is that computer program is identifiable that the data information obtained, which is not, so in order to ensure
The data information of acquisition can identify by computer program, and the identifiable information of generally use computer program replaces being obtained
The data information taken, and foundation has fixed mapping relations.Such as the mapping relations in relation table shown in table 1:
Table 1
Signal map information | |||
Name variable | Assignment | Variable mappings | Variable mappings signal type |
Variable 1 | Assignment 1 | Map Names 1 | Class1 |
Variable 2 | Assignment 2 | Map Names 2 | Type 2 |
In table 1, variable 1 and variable 2 are the data for needing to map, and Map Names 1 and Map Names 2 are the data after mapping,
Such as " key switch " that variable 1 is Chinese format, Map Names 1 are then " key " of English format, and assignment 1 be " OFF " or
Person " ON ", Class1 are " drive " type, and variable 2 is electricity request under high pressure, and Map Names 2 are " BMS_450HV_OFF_REQ ", class
Type 2 be " CAN " type, assignment 2 be " REQ ", typically by computer program can not Direct Recognition Chinese be mapped as English or
Person's number, but not limited to this.
S15:Information and map information, which are triggered, according to the fault message, traffic flow information, failure of Fisrt fault generates the
One test case.
It should be noted that each failure corresponds to a test case, the first test case is the survey for Fisrt fault
Example on probation can generate test case by preset test case template, but not limited to this, preferably, failure triggers information
Further include:Standrded fault pattern.
In the embodiment of the present invention, the fault message, traffic flow information and the failure triggering letter for triggering failure of failure are obtained
The information MAP of acquisition is the identifiable information of computer program according to default mapping relations by breath, and according to mapping after
Automatic generation of information test case reduces the consumption of manpower, avoids the subjective impact of tester, while perfect test is used
The coverage of information included by example.
In order to ensure that the data information obtained can be identified by computer program, on the basis of foregoing invention embodiment,
In the embodiment of the present invention, according to default mapping relations, determines the failure title of Fisrt fault in failure, freezes frame information, data
The step of stream information and the map information of false trigger signals includes:
According to default mapping relations, the Fault Mapping of the failure title mapping of Fisrt fault is determined;
According to default mapping relations, determine that each of Fisrt fault freezes the freeze frame of the freeze frame title mapping of frame information
Mapping;
According to default mapping relations, the data flow of the stream name mapping of each traffic flow information of Fisrt fault is determined
Mapping;
According to default mapping relations, determine that the failure of the signal name mapping of each false trigger signals of Fisrt fault is touched
It signals to map, wherein Fault Mapping, freeze frame mapping, data flow mapping and false trigger signals mapping are computer journey
The identifiable title of sequence.
It should be noted that above-mentioned basis presets mapping relations determines that Fault Mapping, freeze frame mapping, data flow are reflected respectively
Penetrate and false trigger signals map the step of there is no priority divide, can also be carried out at the same time;
In order to ensure the data integrity of traffic flow information, on the basis of above-mentioned each inventive embodiments, the present invention is implemented
In example, traffic flow information includes:Stream name, data stream encoding, byte, DBC titles, the data of data flow shared by data flow
Flow precision and data stream offset.
Table 2
As shown in table 2, it is a kind of representation of traffic flow information, such as 1 corresponding freeze frame information of failure includes two
A data flow, data flow 1 and data flow 2.
In order to facilitate test case is generated, on the basis of above-mentioned each inventive embodiments, in the embodiment of the present invention, according to the
The step of fault message, traffic flow information, failure triggering information and the map information of one failure generate the first test case is wrapped
It includes:
By Fault Mapping, freeze frame mapping, data flow mapping and false trigger signals mapping, the diagnosis of Fisrt fault event
Hinder code, Fisrt fault the traffic flow information freezed in frame information and Fisrt fault failure triggering information in activation threshold value and
Triggered time is written and presets test case template, generates the first test case.
It should be noted that test case template can be write in advance, the information of acquisition and map information are filled out automatically
It is charged to test case template, to reduce the consumption of manpower.
In one embodiment of the invention, the fault message of the failure 1 of acquisition is the entitled failure title 1 of failure, is examined
Disconnected error code is error code 1, and it is freeze frame 1 to freeze frame information;
Traffic flow information in the freeze frame 1 of acquisition is specially:Stream name is data flow 1, and data stream encoding is
0100, byte shared by data flow is 2 bytes, and the entitled signal_1 of DBC of data flow, data flow precision is 1, data stream offset
It is 0;
The failure of the triggering failure 1 of acquisition triggers information:When false trigger signals are signal 1, activation threshold value is
Threshold value 1, triggered time are the time 1;Activation threshold value is threshold value 2 when false trigger signals are signal 2, and the triggered time is the time 2;
According to default mapping relations, determine that the failure title of failure 1 is mapped as Fault Mapping 1, signal 1 is mapped as signal
1 mapping, signal 2 are mapped as the mapping of signal 2, and freeze frame 1 is mapped as the mapping of freeze frame 1.According to the information of above-mentioned determination with
And to generate test case as shown in table 3 below for default test template:
Table 3
The fixed signal 1 and the fixed signal 2 that sends of sending is fixed signal in test process wherein in table 3, and UDS is (unified
Diagnostic service, Unified diagnostic services) it sends to need the special fixed signal sent, UDS, which is received, is also
Special fixed signal, the special fixed signal are fixed signal in unified diagnostic service, and details are not described herein.And it surveys
The type and content of example template on probation can be according to the demand designed, designeds of tester, however it is not limited to this.
As shown in Figures 2 and 3, another aspect according to the present invention provides a kind of unified diagnostic service test case
Generating means, which includes:
First acquisition module 21, for according to unified diagnostic service agreement, obtaining the fault message of at least one failure,
Middle fault message includes failure title, diagnostic trouble code and freezes frame information;
Second acquisition module 22, for according to data identifier platform library and DBC files, obtaining the number freezed in frame information
According to stream information;
Third acquisition module 23, the failure triggering information for obtaining triggering failure, wherein failure triggering information include:Therefore
Hinder trigger signal, activation threshold value and triggered time;
Mapping block 24, failure title, freeze frame letter for according to mapping relations are preset, determining Fisrt fault in failure
The map information of breath, traffic flow information and false trigger signals;
Generation module 25, for triggering information and mapping according to the fault message, traffic flow information, failure of Fisrt fault
Information generates the first test case;
Wherein, mapping block 24 includes:
First map unit 241, the failure of the failure title mapping for according to mapping relations are preset, determining Fisrt fault
Mapping;
Second map unit 242, for according to mapping relations are preset, determining that each of Fisrt fault freezes the jelly of frame information
Tie the freeze frame mapping of frame title mapping;
Third map unit 243, for according to mapping relations are preset, determining the number of each traffic flow information of Fisrt fault
According to the data flow mapping of stream title mapping;
4th map unit 244, for according to mapping relations are preset, determining each false trigger signals of Fisrt fault
The false trigger signals mapping of signal name mapping, wherein Fault Mapping, freeze frame mapping, data flow mapping and failure triggering
Signal mapping is the identifiable title of computer program.
Generation module 25, specifically for reflecting Fault Mapping, freeze frame mapping, data flow mapping and false trigger signals
It penetrates, the failure of the traffic flow information of the diagnostic trouble code of Fisrt fault, Fisrt fault freezed in frame information and Fisrt fault is touched
Activation threshold value and triggered time in photos and sending messages are written and preset test case template, generate the first test case.
It should be noted that traffic flow information includes:Stream name, data stream encoding, byte, data shared by data flow
DBC titles, data flow precision and the data stream offset of stream.Failure triggers information:Standrded fault pattern.
In the embodiment of the present invention, the fault message, traffic flow information and the failure triggering letter for triggering failure of failure are obtained
The information MAP of acquisition is the identifiable information of computer program according to default mapping relations by breath, and according to mapping after
Automatic generation of information test case reduces the consumption of manpower, avoids the subjective impact of tester, while perfect test is used
The coverage of information included by example.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;Can be that machinery connects
It connects, can also be to be electrically connected or can communicate with one another;It can be directly connected, can also indirectly connected through an intermediary, it can
To be the interaction relationship of connection or two elements inside two elements.For the ordinary skill in the art,
The specific meanings of the above terms in the present invention can be understood according to specific conditions.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Claims (8)
1. a kind of generation method of unified diagnostic service test case, which is characterized in that including:
According to unified diagnostic service agreement, the fault message of at least one failure is obtained, wherein the failure information package includes failure
Title, diagnostic trouble code and freeze frame information;
According to data identifier platform library and DBC files, freeze the traffic flow information in frame information described in acquisition;
The failure triggering information for triggering the failure is obtained, wherein failure triggering information includes:False trigger signals, triggering
Threshold value and triggered time;
According to default mapping relations, determine the failure title of Fisrt fault in the failure, freeze frame information, traffic flow information with
And the map information of false trigger signals;
Information is triggered according to the fault message, traffic flow information, failure of the Fisrt fault and map information generates first and surveys
Example on probation.
2. the generation method of unified diagnostic service test case according to claim 1, which is characterized in that the basis is pre-
If mapping relations, determines the failure title of Fisrt fault in the failure, freezes frame information, traffic flow information and failure triggering
The step of map information of signal includes:
According to the default mapping relations, the Fault Mapping of the failure title mapping of the Fisrt fault is determined;
According to the default mapping relations, determine that each of described Fisrt fault freezes the jelly of the freeze frame title mapping of frame information
Tie frame mapping;
According to the default mapping relations, the number of the stream name mapping of each traffic flow information of the Fisrt fault is determined
It is mapped according to stream;
According to the default mapping relations, the event of the signal name mapping of each false trigger signals of the Fisrt fault is determined
Hinder trigger signal mapping, wherein the mapping of the Fault Mapping, the freeze frame, data flow mapping and failure triggering
Signal mapping is the identifiable title of computer program.
3. the generation method of unified diagnostic service test case according to claim 1, which is characterized in that the data flow
Information includes:Stream name, data stream encoding, byte, the DBC titles of data flow, data flow precision sum number shared by data flow
It is deviated according to stream.
4. the generation method of unified diagnostic service test case according to claim 1, which is characterized in that the failure is touched
Photos and sending messages further include:Standrded fault pattern.
5. the generation method of unified diagnostic service test case according to claim 2, which is characterized in that described according to institute
State fault message, traffic flow information, failure the triggering information of Fisrt fault and the step of map information the first test case of generation
Suddenly include:
The Fault Mapping, freeze frame mapping, data flow mapping and the false trigger signals are mapped, is described
The diagnostic trouble code of Fisrt fault, the Fisrt fault the traffic flow information freezed in frame information and the Fisrt fault event
It activation threshold value and triggered time in barrier triggering information, is written and presets test case template, generate first test case.
6. a kind of generating means of unified diagnostic service test case, which is characterized in that including:
First acquisition module, for according to unified diagnostic service agreement, obtaining the fault message of at least one failure, wherein described
Fault message includes failure title, diagnostic trouble code and freezes frame information;
Second acquisition module, for according to data identifier platform library and DBC files, freezing the data in frame information described in acquisition
Stream information;
Third acquisition module, for obtaining the failure triggering information for triggering the failure, wherein failure triggering information includes:
False trigger signals, activation threshold value and triggered time;
Mapping block, failure title, freeze frame letter for according to mapping relations are preset, determining Fisrt fault in the failure
The map information of breath, traffic flow information and false trigger signals;
Generation module, for triggering information and mapping letter according to the fault message, traffic flow information, failure of the Fisrt fault
Breath generates the first test case.
7. the generating means of unified diagnostic service test case according to claim 6, which is characterized in that the mapping mould
Block includes:
First map unit, for according to the default mapping relations, determining the event of the failure title mapping of the Fisrt fault
Barrier mapping;
Second map unit, for according to the default mapping relations, determining that each of described Fisrt fault freezes frame information
The freeze frame mapping of freeze frame title mapping;
Third map unit, for according to the default mapping relations, determining each traffic flow information of the Fisrt fault
The data flow mapping of stream name mapping;
4th map unit, for according to the default mapping relations, determining each false trigger signals of the Fisrt fault
Signal name mapping false trigger signals mapping, wherein the mapping of the Fault Mapping, the freeze frame, the data flow reflects
It penetrates and false trigger signals mapping is the identifiable title of computer program.
8. the generating means of unified diagnostic service test case according to claim 7, which is characterized in that the generation mould
Block, specifically for reflecting the Fault Mapping, freeze frame mapping, data flow mapping and the false trigger signals
It penetrates, the traffic flow information of the diagnostic trouble code of the Fisrt fault, the Fisrt fault freezed in frame information and described first
It activation threshold value and triggered time in the failure triggering information of failure, is written and presets test case template, generate described first and survey
Example on probation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810393019.5A CN108490922B (en) | 2018-04-27 | 2018-04-27 | Generation method and device of unified diagnostic service test case |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810393019.5A CN108490922B (en) | 2018-04-27 | 2018-04-27 | Generation method and device of unified diagnostic service test case |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108490922A true CN108490922A (en) | 2018-09-04 |
CN108490922B CN108490922B (en) | 2020-03-24 |
Family
ID=63313212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810393019.5A Active CN108490922B (en) | 2018-04-27 | 2018-04-27 | Generation method and device of unified diagnostic service test case |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108490922B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112462727A (en) * | 2019-09-09 | 2021-03-09 | 广州汽车集团股份有限公司 | Vehicle-mounted part testing method and device |
CN113267702A (en) * | 2021-06-24 | 2021-08-17 | 广东电网有限责任公司 | Method and device for generating test case of power distribution network fault self-healing system |
Citations (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19638165C1 (en) * | 1996-09-18 | 1998-04-23 | Siemens Nixdorf Inf Syst | Input signal sequence generation |
CN102135936A (en) * | 2010-12-31 | 2011-07-27 | 华为技术有限公司 | Method and system for generating test case |
CN102981501A (en) * | 2012-11-30 | 2013-03-20 | 重庆邮电大学 | Automobile ECU (Electronic Control Unit) fault diagnosis information matching method based on XML (Extensive Makeup Language) |
CN103412562A (en) * | 2013-08-21 | 2013-11-27 | 天津一汽夏利汽车股份有限公司 | Commonly-used diagnostic test device for vehicle |
WO2013174558A2 (en) * | 2012-05-21 | 2013-11-28 | Robert Bosch Gmbh | Converter for an electric machine |
CN103616830A (en) * | 2013-12-02 | 2014-03-05 | 北京经纬恒润科技有限公司 | Car controller flash control method and device and car bus system |
CN103699475A (en) * | 2012-09-27 | 2014-04-02 | 西门子公司 | Method, device and system for optimizing test samples in fuzzy test |
CN103902746A (en) * | 2014-03-11 | 2014-07-02 | 深圳市元征科技股份有限公司 | Fault code, data stream and freeze frame data storage and playback method |
CN104076814A (en) * | 2014-07-09 | 2014-10-01 | 哈尔滨工业大学 | Automobile ECU measurement system based on hardware-in-loop simulation |
CN104123227A (en) * | 2014-08-13 | 2014-10-29 | 广东电网公司信息中心 | Method for automatically generating testing cases |
CN104461901A (en) * | 2014-12-23 | 2015-03-25 | 浪潮(北京)电子信息产业有限公司 | Method and system for automatically generating test case |
CN105205006A (en) * | 2015-10-30 | 2015-12-30 | 北京新能源汽车股份有限公司 | Multi-platform universal test method, device and system |
CN105224447A (en) * | 2014-06-11 | 2016-01-06 | 联创汽车电子有限公司 | Engine controller software diagnosis module test method and test macro |
CN105373476A (en) * | 2015-11-17 | 2016-03-02 | 北京新能源汽车股份有限公司 | Method and system for generating automatic test case in automobile controller |
CN105975396A (en) * | 2016-06-28 | 2016-09-28 | 腾讯科技(深圳)有限公司 | Generating method and system for automated testing case |
CN105988930A (en) * | 2015-03-02 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Test case generation method and device |
CN106155894A (en) * | 2015-04-10 | 2016-11-23 | 中兴通讯股份有限公司 | A kind of generation method and device of test case |
CN106407066A (en) * | 2016-09-26 | 2017-02-15 | 北京经纬恒润科技有限公司 | An end of line detection method and system for electronic products |
CN106526506A (en) * | 2016-11-03 | 2017-03-22 | 武汉通畅汽车电子照明有限公司 | LED automobile headlamp test case automatic generation method |
CN106528395A (en) * | 2015-09-09 | 2017-03-22 | 阿里巴巴集团控股有限公司 | Test case generation method and apparatus |
CN107450515A (en) * | 2017-07-31 | 2017-12-08 | 北京新能源汽车股份有限公司 | Automatic testing method and device for fault diagnosis |
CN107483283A (en) * | 2017-06-28 | 2017-12-15 | 珠海格力电器股份有限公司 | Communication reliability test method and device |
CN107491061A (en) * | 2017-08-31 | 2017-12-19 | 中国第汽车股份有限公司 | The network automatically test system and its method of a kind of commercial car OBD diagnostic devices |
CN107544463A (en) * | 2017-09-08 | 2018-01-05 | 北京新能源汽车股份有限公司 | Automatic test method and test device for diagnosis function of vehicle controller |
CN107678948A (en) * | 2017-09-18 | 2018-02-09 | Tcl海外电子(惠州)有限公司 | Method for generating test case, terminal and storage medium |
CN107766256A (en) * | 2017-11-23 | 2018-03-06 | 中广核工程有限公司 | A kind of method for transformation and system of software unit testing use-case |
CN107783901A (en) * | 2017-09-26 | 2018-03-09 | 深圳市牛鼎丰科技有限公司 | Method for generating test case, device, computer equipment and storage medium |
CN107908548A (en) * | 2017-10-10 | 2018-04-13 | 深圳市买买提乐购金融服务有限公司 | A kind of method and apparatus for generating test case |
DE102017215556A1 (en) * | 2016-10-24 | 2018-04-26 | Lear Corporation | METHOD FOR PROGRAMMING ELECTRONIC VEHICLE CONTROL MODULES |
-
2018
- 2018-04-27 CN CN201810393019.5A patent/CN108490922B/en active Active
Patent Citations (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19638165C1 (en) * | 1996-09-18 | 1998-04-23 | Siemens Nixdorf Inf Syst | Input signal sequence generation |
CN102135936A (en) * | 2010-12-31 | 2011-07-27 | 华为技术有限公司 | Method and system for generating test case |
WO2013174558A2 (en) * | 2012-05-21 | 2013-11-28 | Robert Bosch Gmbh | Converter for an electric machine |
CN103699475A (en) * | 2012-09-27 | 2014-04-02 | 西门子公司 | Method, device and system for optimizing test samples in fuzzy test |
CN102981501A (en) * | 2012-11-30 | 2013-03-20 | 重庆邮电大学 | Automobile ECU (Electronic Control Unit) fault diagnosis information matching method based on XML (Extensive Makeup Language) |
CN103412562A (en) * | 2013-08-21 | 2013-11-27 | 天津一汽夏利汽车股份有限公司 | Commonly-used diagnostic test device for vehicle |
CN103616830A (en) * | 2013-12-02 | 2014-03-05 | 北京经纬恒润科技有限公司 | Car controller flash control method and device and car bus system |
CN103902746B (en) * | 2014-03-11 | 2017-10-27 | 深圳市元征科技股份有限公司 | DTC, data flow and the method for freezing frame data preservation and playback |
CN103902746A (en) * | 2014-03-11 | 2014-07-02 | 深圳市元征科技股份有限公司 | Fault code, data stream and freeze frame data storage and playback method |
CN105224447B (en) * | 2014-06-11 | 2017-11-14 | 联创汽车电子有限公司 | Engine controller software diagnosis module test method and test system |
CN105224447A (en) * | 2014-06-11 | 2016-01-06 | 联创汽车电子有限公司 | Engine controller software diagnosis module test method and test macro |
CN104076814A (en) * | 2014-07-09 | 2014-10-01 | 哈尔滨工业大学 | Automobile ECU measurement system based on hardware-in-loop simulation |
CN104123227A (en) * | 2014-08-13 | 2014-10-29 | 广东电网公司信息中心 | Method for automatically generating testing cases |
CN104461901A (en) * | 2014-12-23 | 2015-03-25 | 浪潮(北京)电子信息产业有限公司 | Method and system for automatically generating test case |
CN105988930A (en) * | 2015-03-02 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Test case generation method and device |
CN106155894A (en) * | 2015-04-10 | 2016-11-23 | 中兴通讯股份有限公司 | A kind of generation method and device of test case |
CN106528395A (en) * | 2015-09-09 | 2017-03-22 | 阿里巴巴集团控股有限公司 | Test case generation method and apparatus |
CN105205006A (en) * | 2015-10-30 | 2015-12-30 | 北京新能源汽车股份有限公司 | Multi-platform universal test method, device and system |
CN105373476A (en) * | 2015-11-17 | 2016-03-02 | 北京新能源汽车股份有限公司 | Method and system for generating automatic test case in automobile controller |
CN105975396A (en) * | 2016-06-28 | 2016-09-28 | 腾讯科技(深圳)有限公司 | Generating method and system for automated testing case |
CN106407066A (en) * | 2016-09-26 | 2017-02-15 | 北京经纬恒润科技有限公司 | An end of line detection method and system for electronic products |
DE102017215556A1 (en) * | 2016-10-24 | 2018-04-26 | Lear Corporation | METHOD FOR PROGRAMMING ELECTRONIC VEHICLE CONTROL MODULES |
CN106526506A (en) * | 2016-11-03 | 2017-03-22 | 武汉通畅汽车电子照明有限公司 | LED automobile headlamp test case automatic generation method |
CN107483283A (en) * | 2017-06-28 | 2017-12-15 | 珠海格力电器股份有限公司 | Communication reliability test method and device |
CN107450515A (en) * | 2017-07-31 | 2017-12-08 | 北京新能源汽车股份有限公司 | Automatic testing method and device for fault diagnosis |
CN107491061A (en) * | 2017-08-31 | 2017-12-19 | 中国第汽车股份有限公司 | The network automatically test system and its method of a kind of commercial car OBD diagnostic devices |
CN107544463A (en) * | 2017-09-08 | 2018-01-05 | 北京新能源汽车股份有限公司 | Automatic test method and test device for diagnosis function of vehicle controller |
CN107678948A (en) * | 2017-09-18 | 2018-02-09 | Tcl海外电子(惠州)有限公司 | Method for generating test case, terminal and storage medium |
CN107783901A (en) * | 2017-09-26 | 2018-03-09 | 深圳市牛鼎丰科技有限公司 | Method for generating test case, device, computer equipment and storage medium |
CN107908548A (en) * | 2017-10-10 | 2018-04-13 | 深圳市买买提乐购金融服务有限公司 | A kind of method and apparatus for generating test case |
CN107766256A (en) * | 2017-11-23 | 2018-03-06 | 中广核工程有限公司 | A kind of method for transformation and system of software unit testing use-case |
Non-Patent Citations (3)
Title |
---|
STEVEN D SHIRK: ""A web-based normative calculator for the uniform data set (UDS) neuropsychological test battery"", 《 ALZHEIMER"S RESEARCH & THERAPY》 * |
潘连才: ""基于UDS车身控制模块的开发"", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 * |
罗峰: ""汽车统一诊断服务诊断协议栈网络层测试方法"", 《同济大学学报(自然科学版)》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112462727A (en) * | 2019-09-09 | 2021-03-09 | 广州汽车集团股份有限公司 | Vehicle-mounted part testing method and device |
CN113267702A (en) * | 2021-06-24 | 2021-08-17 | 广东电网有限责任公司 | Method and device for generating test case of power distribution network fault self-healing system |
Also Published As
Publication number | Publication date |
---|---|
CN108490922B (en) | 2020-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110088744B (en) | Database maintenance method and system | |
EP2141595B1 (en) | System and method for detecting combinations of performance indicators associated with a root cause | |
CN106502883B (en) | The database synchronization method and system of client and server-side when automatic test | |
CN111162972A (en) | Vehicle-mounted Ethernet protocol stack automatic testing method based on semantic analysis | |
CN108490922A (en) | Generation method and device of unified diagnostic service test case | |
CN106407059A (en) | Server node testing system and method | |
CN106681878A (en) | Method for testing PCIE channel bandwidth | |
CN100450251C (en) | Base-station fault detecting method and fault detecting system | |
CN104076808A (en) | Fault diagnosis system and method for industrial control equipment | |
CN113722154B (en) | Data management method and system, monitoring server and storage medium | |
CN201654765U (en) | Testing device | |
CN108038127B (en) | Data synchronization method, device, terminal equipment and storage medium | |
CN114327968A (en) | Method and device for realizing early warning of server hardware fault telephone with universal interface | |
CN113961478A (en) | Memory fault recording method and device | |
CN210666750U (en) | Memory fault alarm device | |
US20100332913A1 (en) | System and mehtod for testing network performance | |
CN111694685A (en) | PCIE equipment fault positioning method and device | |
CN111751776A (en) | Time verification system and method for digital relay protection tester | |
CN103198214A (en) | Fault diagnosis method based on code bit mapping model | |
CN109586788A (en) | Monitoring system method for diagnosing faults, device, computer equipment and storage medium | |
CN116501768A (en) | Weak current engineering management method, system and equipment for Internet of things and storage medium | |
CN103885441A (en) | Self-adaptive fault diagnosis method for controller local area network | |
CN113010409B (en) | Intelligent contract testing method and device, electronic equipment and storage medium | |
CN114840599B (en) | Semiconductor source data parsing method, ETL system, computer device and product | |
CN113010432A (en) | White box simulation test method and system based on flow time sequence playback |
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 |