CN105373476A - Method and system for generating automatic test case in automobile controller - Google Patents

Method and system for generating automatic test case in automobile controller Download PDF

Info

Publication number
CN105373476A
CN105373476A CN201510792418.5A CN201510792418A CN105373476A CN 105373476 A CN105373476 A CN 105373476A CN 201510792418 A CN201510792418 A CN 201510792418A CN 105373476 A CN105373476 A CN 105373476A
Authority
CN
China
Prior art keywords
test case
name
replaced
signal
assignment
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
Application number
CN201510792418.5A
Other languages
Chinese (zh)
Other versions
CN105373476B (en
Inventor
黄颍华
王可峰
魏跃远
代康伟
余军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Electric Vehicle Co Ltd
Original Assignee
Beijing Electric Vehicle Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Electric Vehicle Co Ltd filed Critical Beijing Electric Vehicle Co Ltd
Priority to CN201510792418.5A priority Critical patent/CN105373476B/en
Publication of CN105373476A publication Critical patent/CN105373476A/en
Priority to PCT/CN2016/102400 priority patent/WO2017084462A1/en
Application granted granted Critical
Publication of CN105373476B publication Critical patent/CN105373476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

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)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a method and a system for generating an automatic test case in an automobile controller. The method comprises: generating an initial test case, wherein the initial test case comprises a signal name and an assignment name corresponding to the signal name; obtaining a replacement rule of a transmission signal and a measurement signal, wherein the replacement rule comprises a logic relation consisting of the signal name, the assignment name, a mapping name, a correspondences between mapping names, and an assignment mapping name; and performing replacement operation on the initial test case according to the replacement rule to generate a final test case. According to the method for generating the automatic test case in the automobile controller, the readability of the test case can be improved and the test case can be repeatedly used.

Description

The generation method and system of automatic test case in automobile controller
Technical field
The present invention relates to smart machine field, is specifically related to the generation method and system of automatic test case in a kind of automobile controller.
Background technology
Along with constantly popularizing of automobile, the function of automobile gets more and more, various softwares in automobile also become increasingly complex, therefore in order to ensure the reliability of automobile, control system in automobile is tested to the test case be absolutely necessary in automobile controller, can the specific functional design of application program in testing automobile controller.Generally, a certain specific functional design of application program needs to write corresponding test case and tests.That is, when network development and the hardware development of carrying out brand-new platform, for the existing test case of the specific functional design of automobile controller application program, be difficult to directly use, therefore cause the reusability of test case poor.
In addition, even if when the Functional Design of brand-new platform is to before similar, although without the need to the main part changing automatic test case, because the signal name, number of signals, assignment etc. of test case can change, thus cause the expression that must rewrite appropriate section.And when the automatic test case write, generally need to fill in the title in network interface or hardwire interface, and the signal name in test case is mostly English name, everyone name custom is not identical again, makes the readable non-constant of write test case.Thus result in developer understand test case express test thinking time, be difficult to be mapped with certain concrete Functional Design, make developer cannot verification test personnel test design.
Summary of the invention
The present invention is intended to solve one of technical matters in correlation technique at least to a certain extent.For this reason, one object of the present invention is the generation method proposing automatic test case in a kind of automobile controller, and the method can improve the legibility of test case, and test case can be made to reuse.
Second object of the present invention is the generation system proposing automatic test case in a kind of automobile controller.
The embodiment of first aspect present invention proposes the generation method of automatic test case in a kind of automobile controller, comprises the following steps: generate initial test case, and wherein, described initial test case comprises signal name and assignment name corresponding to described signal name; Obtain the Substitution Rules sent between signal and measuring-signal, wherein, described Substitution Rules comprise the logical relation be made up of the mutual relationship between described signal name, described assignment name, Map Names, Map Names and evaluation mapping name; According to described Substitution Rules, replacement operation is carried out to generate final test case to described initial test case.
The generation method of automatic test case in the automobile controller of the embodiment of the present invention, Substitution Rules according to sending between signal and measuring-signal carry out replacement operation to initial test case, generate final test case, improve the readability of test case, and reusing of test case can be made.
In addition, in automobile controller according to the above embodiment of the present invention, the generation method of automatic test case can also have following additional technical characteristic:
According to one embodiment of present invention, describedly according to described Substitution Rules, replacement operation is carried out to generate final test case to described initial test case, specifically comprise: determine signal name to be replaced, and in described initial test case signal name to be replaced described in index; Judge whether the number of the Map Names that described signal name to be replaced is corresponding equals 1; If so, then signal name to be replaced described in described initial test case is replaced with described Map Names, and described assignment name is replaced with corresponding described evaluation mapping name, to generate described final test case; If not, then the mutual relationship between the multiple described Map Names that described signal name to be replaced is corresponding is judged; If described multiple mapping is called and relation, then signal name to be replaced each in described initial test case is replaced with the set of all Map Names, and described assignment name is replaced with corresponding described evaluation mapping name, to generate described final test case; If described multiple mapping is called or relation, then generate the derivative file of the described initial test case identical with described Map Names quantity, and the signal name to be replaced in described derivative file is replaced with described Map Names, and assignment name is replaced with corresponding described evaluation mapping name, to obtain described final test case.
According to one embodiment of present invention, described signal is called the used spoken and written languages for expression signal in described initial test case, and described assignment is called some specific described signal name assignment name involved in all described initial test cases.
According to one embodiment of present invention, the mutual relationship between the Map Names in described initial test case corresponding to multiple described signal name to be replaced be or time, permutation and combination carried out to multiple described signal name to be replaced exhaustive derivative.The exhaustive derivative thinking of permutation and combination is simple, and programming and debugging are conveniently.
According to one embodiment of present invention, the title of described initial test case and described final test case and/or sequence number corresponding.
The embodiment of second aspect present invention proposes the generation system of automatic test case in a kind of automobile controller, comprise: generation module, for generating initial test case, wherein, described initial test case comprises signal name and assignment name corresponding to described signal name; Acquisition module, for obtaining the Substitution Rules sent between signal and measuring-signal, wherein, described Substitution Rules comprise the logical relation be made up of mutual relationship and evaluation mapping name between described signal name, described assignment name, Map Names, Map Names; Replacement module, for carrying out replacement operation to generate final test case according to described Substitution Rules to described initial test case.
The generation system of automatic test case in the automobile controller of the embodiment of the present invention, carries out replacement operation by replacement module to initial test case, generates final test case, improves the readability of test case, and test case can be made to reuse.
In addition, in automobile controller according to the above embodiment of the present invention, the generation system of automatic test case can also have following additional technical characteristic:
According to one embodiment of present invention, described replacement module comprises: index module, for determining signal name to be replaced, and in described initial test case signal name to be replaced described in index; Judge module, for judging whether the number in the Map Names that described signal name to be replaced is corresponding equals 1, and judges the mutual relationship between the multiple described Map Names that described signal name to be replaced is corresponding; Processing module, for when the number in the Map Names that described signal name to be replaced is corresponding equals 1, signal name to be replaced described in described initial test case is replaced with described Map Names, and described assignment name is replaced with corresponding described evaluation mapping name, to generate described final test case.
According to one embodiment of present invention, described processing module also for: the number in the Map Names that described signal name to be replaced is corresponding is greater than 1, and described multiple mapping is called and relation time, signal name to be replaced each in described initial test case is replaced with the set of all Map Names, and described assignment name is replaced with corresponding described evaluation mapping name, to generate described final test case; And the number in Map Names corresponding to described signal name to be replaced is greater than 1, and described multiple mapping is called or relation time, generate the derivative file of the described initial test case identical with described Map Names quantity, and the signal name to be replaced in described derivative file is replaced with described Map Names, and assignment name is replaced with corresponding described evaluation mapping name, to obtain described final test case.
According to one embodiment of present invention, described signal is called the used spoken and written languages for expression signal in described test case, and described assignment name refers to the assignment name that some specific described signal name are involved in all described test cases.
According to one embodiment of present invention, the mutual relationship between the Map Names in described initial test case corresponding to multiple described signal name to be replaced be or time, permutation and combination carried out to multiple described signal name to be replaced exhaustive derivative.The exhaustive derivative thinking of permutation and combination is simple, and programming and debugging are conveniently.
According to one embodiment of present invention, the title of described initial test case and described final test case and/or sequence number corresponding.
Accompanying drawing explanation
Above-mentioned and/or additional aspect of the present invention and advantage will become obvious and easy understand from accompanying drawing below combining to the description of embodiment, wherein:
Fig. 1 is the process flow diagram of the generation method of automatic test case in automobile controller according to an embodiment of the invention;
Fig. 2 carries out replacement operation to generate the process flow diagram of the method for final test case according to Substitution Rules to initial test case according to an embodiment of the invention;
Fig. 3 is the structured flowchart of the generation system of automatic test case in automobile controller according to an embodiment of the invention;
Fig. 4 is the structured flowchart of the generation system of automatic test case in the automobile controller according to the present invention's specific embodiment.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
Below with reference to the accompanying drawings the generation method and system of automatic test case in the automobile controller of the embodiment of the present invention is described.
Fig. 1 is the process flow diagram of the generation method of automatic test case in automobile controller according to an embodiment of the invention.
As shown in Figure 1, in this automobile controller, the generation method of automatic test case comprises the following steps:
S101, generates initial test case.
Wherein, initial test case comprises signal name and assignment name corresponding to signal name.
Particularly, when writing initial test case, the spoken and written languages of readability can be directly used to write signal name and assignment name thereof, ways of writing can be " signal name=assignment name ", as gas pedal=suddenly step on, key=ON shelves, engine failure=3 grade fault, battery tension=12V etc., write simple and convenient, and readability.
S102, obtains the Substitution Rules sent between signal and measuring-signal.
In an embodiment of the present invention, transmission signal refers to all signals comprising signal name in initial test case, measuring-signal refers to all signals comprising signal name in the test case that can be used for new software functional test, wherein, sends between signal and measuring-signal and there is corresponding relation.Substitution Rules comprise the logical relation be made up of the mutual relationship between signal name, assignment name, Map Names, Map Names and evaluation mapping name.These Substitution Rules can represent by form, such as, can represent with table 1:
Table 1
As shown in table 1, signal is called the used spoken and written languages for expression signal name in initial test case, and the Chinese name 1 namely in table 1 can be gas pedal, key, engine failure etc.Assignment is called some signal specific names assignment name involved in all initial test cases, and assignment name can have any number of, the assignment 1 namely in table 1, assignment 2, assignment 3 three kinds of assignment names, can be that oil is stepped on suddenly, ON shelves, 3 grades of faults.Map Names must be the discernible title of testing software, and signal name can corresponding multiple Map Names, has 4 Map Names, i.e. Map Names 1, Map Names 2, Map Names 3, Map Names 4 in table 1.Mutual relationship between Map Names have or and express with two kinds, its effect is the effect that multiple Map Names can be made simultaneously to possess some signal name, or carrys out the effect of equivalent signal name with the synergy of multiple Map Names.Evaluation mapping name must be the discernible title of initial test case, can be concrete numerical value, or relational expression, and also can be certain curve, can be even also certain complicated function, the mapping value 1 namely shown in table 1, mapping value 2 ..., mapping value 7.
S103, carries out replacement operation to generate final test case according to Substitution Rules to initial test case.
Wherein, the title of initial test case and final test case and/or sequence number corresponding.
Particularly, as shown in Figure 2, carry out replacement operation according to Substitution Rules to initial test case to comprise the following steps to generate final test case:
S201, determines signal name to be replaced, and in initial test case index signal name to be replaced.
Wherein, signal name to be replaced can be the Chinese name 1 in table 1.
S202, judges whether the number of the Map Names that signal name to be replaced is corresponding equals 1.
S203, if so, then replaces with Map Names by signal name to be replaced in initial test case, and assignment name is replaced with corresponding evaluation mapping name, to generate final test case.
Particularly, if the number in Map Names equals 1, as shown in table 1, Map Names 1 is only had in Map Names, then Chinese name 1 can be replaced with Map Names 1, assignment name is replaced with corresponding evaluation mapping name, namely " Chinese name 1=assignment 1, Chinese name 1=assignment 2, Chinese name 1=assignment 3 " will replace with: Map Names 1=mapping value 1, Map Names 1=mapping value 2, Map Names 1=mapping value 3.End after replacement completes, the final test case of generation comprises the mapping assignment name of the Map Names after replacement and correspondence thereof.
S204, if not, then judges the mutual relationship between multiple Map Names that signal name to be replaced is corresponding.
S205, if multiple mapping is called and relation, then signal name to be replaced each in initial test case is replaced with the set of all Map Names, and assignment name is replaced with corresponding evaluation mapping name, to generate final test case.
Illustrate, as shown in table 1, if the mutual relationship between multiple Map Names be with, then Chinese name 1=assignment 1 will replace with: Map Names 1=mapping value 1, Map Names 2=mapping value 4, Map Names 3=mapping value 6, this set of 4 of Map Names 4=mapping value 7; Chinese name 1=assignment 2 will replace with: Map Names 1=mapping value 2, Map Names 2=mapping value 5, Map Names 3=assignment 2, this set of 4 of Map Names 4=assignment 2; Chinese name 1=assignment 3 will replace with, Map Names 1=mapping value 3, Map Names 2=assignment 3, Map Names 3=assignment 3, this set of 4 of Map Names 4=assignment 3.
S206, if multiple mapping is called or relation, then generate the derivative file of the initial test case identical with Map Names quantity, and the signal name to be replaced in derivative file replaced with Map Names, and assignment name is replaced with corresponding evaluation mapping name, to obtain final test case.
Illustrate, as shown in table 1, if the mutual relationship between multiple Map Names is or, then can generate following 4 derivative test cases respectively:
First derivative use-case, Chinese name 1=assignment 1 replaces with: Map Names 1=mapping value 1, Chinese name 1=assignment 2 replaces with: Map Names 1=mapping value 2, Chinese name 1=assignment 3 replaces with: Map Names 1=mapping value 3.
Second diffraction use-case, Chinese name 1=assignment 1 replaces with: Map Names 2=mapping value 4, Chinese name 1=assignment 2 replaces with: Map Names 2=mapping value 5, Chinese name 1=assignment 3 replaces with: Map Names 2=assignment 3.
3rd diffraction use-case, Chinese name 1=assignment 1 replaces with: Map Names 3=mapping value 6, Chinese name 1=assignment 2 replaces with: Map Names 3=assignment 2, Chinese name 1=assignment 3 replaces with: Map Names 3=assignment 3.
4th diffraction use-case, Chinese name 1=assignment 1 replaces with: Map Names 4=mapping value 7, Chinese name 1=assignment 2 replaces with: Map Names 4=assignment 2, Chinese name 1=assignment 3 replaces with: Map Names 4=assignment 3.
In an embodiment of the present invention, if the mutual relationship between the Map Names in initial test case corresponding to multiple signal name to be replaced is or time, permutation and combination carried out to multiple signal name to be replaced exhaustive derivative.Adopt permutation and combination exhaustive method to derive, thinking is simple, and programming and debugging are conveniently.
The generation method of automatic test case in the automobile controller of the embodiment of the present invention, Substitution Rules according to sending between signal and measuring-signal carry out replacement operation to initial test case, generate final test case, improve the readability of test case, and test case can be made to reuse.
Fig. 3 is the structured flowchart of the generation system of automatic test case in automobile controller according to an embodiment of the invention.
As shown in Figure 3, in this automobile controller, the generation system of automatic test case comprises: generation module 10, acquisition module 20 and replacement module 30.
Particularly, generation module 10 is for generating initial test case, and wherein, initial test case comprises signal name and assignment name corresponding to signal name.Acquisition module 20 is for obtaining the Substitution Rules sent between signal and measuring-signal, and wherein, Substitution Rules comprise the logical relation be made up of mutual relationship and evaluation mapping name between signal name, assignment name, Map Names, Map Names.Replacement module 30 is for carrying out replacement operation to generate final test case according to Substitution Rules to initial test case.
Wherein, signal is called the used spoken and written languages for expression signal in test case, and assignment name refers to the assignment name that some signal specific names are involved in all test cases.Title and/or the sequence number of initial test case and final test case are corresponding.
In an embodiment of the present invention, replacement module 30 comprises index module 31, judge module 32 and processing module 33.Wherein, index module 31 for determining signal name to be replaced, and in initial test case index signal name to be replaced; Judge module 32 for judging whether the number in the Map Names that signal name to be replaced is corresponding equals 1, and judges the mutual relationship between multiple Map Names that signal name to be replaced is corresponding; When processing module 33 equals 1 for the number in Map Names corresponding to signal name to be replaced, signal name to be replaced in initial test case is replaced with Map Names, and assignment name is replaced with corresponding evaluation mapping name, to generate final test case.
In an embodiment of the present invention, processing module 33 also for: the number in the Map Names that signal name to be replaced is corresponding is greater than 1, and multiple mapping is called and relation time, signal name to be replaced each in initial test case is replaced with the set of all Map Names, and assignment name is replaced with corresponding evaluation mapping name, to generate final test case; And the number in Map Names corresponding to signal name to be replaced is greater than 1, and multiple mapping is called or relation time, generate the derivative file of the initial test case identical with Map Names quantity, and the signal name to be replaced in derivative file is replaced with Map Names, and assignment name is replaced with corresponding evaluation mapping name, to obtain final test case.
Preferably, if the mutual relationship between the Map Names in initial test case corresponding to multiple signal name to be replaced is or time, permutation and combination carried out to multiple signal name to be replaced exhaustive derivative.Adopt permutation and combination exhaustive method to derive, thinking is simple, and programming and debugging are conveniently.
It should be noted that, in the automobile controller of the embodiment of the present invention, in the generation system of automatic test case and the automobile controller of first aspect present invention embodiment, the embodiment of the generation method of automatic test case is identical, for reducing redundancy, do not repeat herein.
The generation system of automatic test case in the automobile controller of the embodiment of the present invention, carries out replacement operation by replacement module to initial test case, generates final test case, improves the readability of test case, and test case can be made to reuse.
In describing the invention, it will be appreciated that, term " " center ", " longitudinal direction ", " transverse direction ", " length ", " width ", " thickness ", " on ", D score, " front ", " afterwards ", " left side ", " right side ", " vertically ", " level ", " top ", " end " " interior ", " outward ", " clockwise ", " counterclockwise ", " axis ", " radial direction ", orientation or the position relationship of the instruction such as " circumference " are based on orientation shown in the drawings or position relationship, only the present invention for convenience of description and simplified characterization, instead of indicate or imply that the device of indication or element must have specific orientation, with specific azimuth configuration and operation, therefore limitation of the present invention can not be interpreted as.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, the term such as term " installation ", " being connected ", " connection ", " fixing " should be interpreted broadly, and such as, can be fixedly connected with, also can be removably connect, or integral; Can be mechanical connection, also can be electrical connection; Can be directly be connected, also indirectly can be connected by intermediary, can be the connection of two element internals or the interaction relationship of two elements, unless otherwise clear and definite restriction.For the ordinary skill in the art, above-mentioned term concrete meaning in the present invention can be understood as the case may be.
In the present invention, unless otherwise clearly defined and limited, fisrt feature second feature " on " or D score can be that the first and second features directly contact, or the first and second features are by intermediary indirect contact.And, fisrt feature second feature " on ", " top " and " above " but fisrt feature directly over second feature or oblique upper, or only represent that fisrt feature level height is higher than second feature.Fisrt feature second feature " under ", " below " and " below " can be fisrt feature immediately below second feature or tiltedly below, or only represent that fisrt feature level height is less than second feature.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (11)

1. the generation method of automatic test case in automobile controller, is characterized in that, comprise the following steps:
Generate initial test case, wherein, described initial test case comprises signal name and assignment name corresponding to described signal name;
Obtain the Substitution Rules sent between signal and measuring-signal, wherein, described Substitution Rules comprise the logical relation be made up of the mutual relationship between described signal name, described assignment name, Map Names, Map Names and evaluation mapping name;
According to described Substitution Rules, replacement operation is carried out to generate final test case to described initial test case.
2. the generation method of automatic test case in automobile controller as claimed in claim 1, is characterized in that, describedly carries out replacement operation to generate final test case according to described Substitution Rules to described initial test case, specifically comprises:
Determine signal name to be replaced, and in described initial test case signal name to be replaced described in index;
Judge whether the number of the Map Names that described signal name to be replaced is corresponding equals 1;
If so, then signal name to be replaced described in described initial test case is replaced with described Map Names, and described assignment name is replaced with corresponding described evaluation mapping name, to generate described final test case;
If not, then the mutual relationship between the multiple described Map Names that described signal name to be replaced is corresponding is judged;
If described multiple mapping is called and relation, then signal name to be replaced each in described initial test case is replaced with the set of all Map Names, and described assignment name is replaced with corresponding described evaluation mapping name, to generate described final test case;
If described multiple mapping is called or relation, then generate the derivative file of the described initial test case identical with described Map Names quantity, and the signal name to be replaced in described derivative file is replaced with described Map Names, and assignment name is replaced with corresponding described evaluation mapping name, to obtain described final test case.
3. the generation method of automatic test case in automobile controller as claimed in claim 1, it is characterized in that, described signal is called the used spoken and written languages for expression signal in described initial test case, and described assignment is called some specific described signal name assignment name involved in all described initial test cases.
4. the generation method of automatic test case in automobile controller as claimed in claim 2, it is characterized in that, mutual relationship between Map Names in described initial test case corresponding to multiple described signal name to be replaced be or time, permutation and combination carried out to multiple described signal name to be replaced exhaustive derivative.
5. the generation method of automatic test case in automobile controller as claimed in claim 1, is characterized in that, title and/or the sequence number of described initial test case and described final test case are corresponding.
6. the generation system of automatic test case in automobile controller, is characterized in that, comprising:
Generation module, for generating initial test case, wherein, described initial test case comprises signal name and assignment name corresponding to described signal name;
Acquisition module, for obtaining the Substitution Rules sent between signal and measuring-signal, wherein, described Substitution Rules comprise the logical relation be made up of mutual relationship and evaluation mapping name between described signal name, described assignment name, Map Names, Map Names;
Replacement module, for carrying out replacement operation to generate final test case according to described Substitution Rules to described initial test case.
7. the generation system of automatic test case in automobile controller as claimed in claim 6, it is characterized in that, described replacement module comprises:
Index module, for determining signal name to be replaced, and in described initial test case signal name to be replaced described in index;
Judge module, for judging whether the number in the Map Names that described signal name to be replaced is corresponding equals 1, and judges the mutual relationship between the multiple described Map Names that described signal name to be replaced is corresponding;
Processing module, when equaling 1 for the number in the Map Names that described signal name to be replaced is corresponding, signal name to be replaced described in described initial test case is replaced with described Map Names, and described assignment name is replaced with corresponding described evaluation mapping name, to generate described final test case.
8. the generation system of automatic test case in automobile controller as claimed in claim 7, is characterized in that, described processing module also for:
Number in the Map Names that described signal name to be replaced is corresponding is greater than 1, and described multiple mapping is called and relation time, signal name to be replaced each in described initial test case is replaced with the set of all Map Names, and described assignment name is replaced with corresponding described evaluation mapping name, to generate described final test case; And
Number in the Map Names that described signal name to be replaced is corresponding is greater than 1, and described multiple mapping is called or relation time, generate the derivative file of the described initial test case identical with described Map Names quantity, and the signal name to be replaced in described derivative file is replaced with described Map Names, and assignment name is replaced with corresponding described evaluation mapping name, to obtain described final test case.
9. the generation system of automatic test case in automobile controller as claimed in claim 6, it is characterized in that, described signal is called the used spoken and written languages for expression signal in described test case, and described assignment name refers to the assignment name that some specific described signal name are involved in all described test cases.
10. the generation system of automatic test case in automobile controller as claimed in claim 8, it is characterized in that, mutual relationship between Map Names in described initial test case corresponding to multiple described signal name to be replaced be or time, permutation and combination carried out to multiple described signal name to be replaced exhaustive derivative.
In 11. automobile controllers as claimed in claim 7, the generation system of automatic test case, is characterized in that, title and/or the sequence number of described initial test case and described final test case are corresponding.
CN201510792418.5A 2015-11-17 2015-11-17 The generation method and system of automatic test case in automobile controller Active CN105373476B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510792418.5A CN105373476B (en) 2015-11-17 2015-11-17 The generation method and system of automatic test case in automobile controller
PCT/CN2016/102400 WO2017084462A1 (en) 2015-11-17 2016-10-18 Method and system for generating automatic test case in automobile controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510792418.5A CN105373476B (en) 2015-11-17 2015-11-17 The generation method and system of automatic test case in automobile controller

Publications (2)

Publication Number Publication Date
CN105373476A true CN105373476A (en) 2016-03-02
CN105373476B CN105373476B (en) 2018-01-19

Family

ID=55375694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510792418.5A Active CN105373476B (en) 2015-11-17 2015-11-17 The generation method and system of automatic test case in automobile controller

Country Status (2)

Country Link
CN (1) CN105373476B (en)
WO (1) WO2017084462A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955887A (en) * 2016-05-04 2016-09-21 重庆长安汽车股份有限公司 Test data generation method and system
WO2017084462A1 (en) * 2015-11-17 2017-05-26 北京新能源汽车股份有限公司 Method and system for generating automatic test case in automobile controller
WO2018036531A1 (en) * 2016-08-26 2018-03-01 上海合福信息科技有限公司 Test case generation method
CN108490922A (en) * 2018-04-27 2018-09-04 北京新能源汽车股份有限公司 A kind of generation method and device of unified diagnostic service test case
CN109088780A (en) * 2018-10-25 2018-12-25 北京新能源汽车股份有限公司 A kind of signal detecting method and detection device
CN109669436A (en) * 2018-12-06 2019-04-23 广州小鹏汽车科技有限公司 A kind of method for generating test case and device of the functional requirement based on electric car
CN110888803A (en) * 2019-11-08 2020-03-17 北京新能源汽车技术创新中心有限公司 Method and system for converting test decision table into test case
CN110928790A (en) * 2019-11-27 2020-03-27 中国银行股份有限公司 Test case construction method and device and test equipment
CN113267702A (en) * 2021-06-24 2021-08-17 广东电网有限责任公司 Method and device for generating test case of power distribution network fault self-healing system
CN114741289A (en) * 2022-03-31 2022-07-12 重庆长安新能源汽车科技有限公司 Automatic generation method and system of test case for controller software storage function

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110208501A1 (en) * 2010-02-25 2011-08-25 Gm Global Technology Operations, Inc. Functional test generation through model inversion
CN104035873A (en) * 2014-06-30 2014-09-10 青岛海信电器股份有限公司 Method and device for generating testing codes
CN104850111A (en) * 2014-10-16 2015-08-19 北汽福田汽车股份有限公司 Hardware-in-loop test method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373476B (en) * 2015-11-17 2018-01-19 北京新能源汽车股份有限公司 The generation method and system of automatic test case in automobile controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110208501A1 (en) * 2010-02-25 2011-08-25 Gm Global Technology Operations, Inc. Functional test generation through model inversion
CN104035873A (en) * 2014-06-30 2014-09-10 青岛海信电器股份有限公司 Method and device for generating testing codes
CN104850111A (en) * 2014-10-16 2015-08-19 北汽福田汽车股份有限公司 Hardware-in-loop test method and system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017084462A1 (en) * 2015-11-17 2017-05-26 北京新能源汽车股份有限公司 Method and system for generating automatic test case in automobile controller
CN105955887B (en) * 2016-05-04 2018-10-19 重庆长安汽车股份有限公司 A kind of generation method and system of test data
CN105955887A (en) * 2016-05-04 2016-09-21 重庆长安汽车股份有限公司 Test data generation method and system
WO2018036531A1 (en) * 2016-08-26 2018-03-01 上海合福信息科技有限公司 Test case generation method
CN108490922B (en) * 2018-04-27 2020-03-24 北京新能源汽车股份有限公司 Generation method and device of unified diagnostic service test case
CN108490922A (en) * 2018-04-27 2018-09-04 北京新能源汽车股份有限公司 A kind of generation method and device of unified diagnostic service test case
CN109088780A (en) * 2018-10-25 2018-12-25 北京新能源汽车股份有限公司 A kind of signal detecting method and detection device
CN109088780B (en) * 2018-10-25 2021-11-12 北京新能源汽车股份有限公司 Signal detection method and detection device
CN109669436A (en) * 2018-12-06 2019-04-23 广州小鹏汽车科技有限公司 A kind of method for generating test case and device of the functional requirement based on electric car
CN109669436B (en) * 2018-12-06 2021-04-13 广州小鹏汽车科技有限公司 Test case generation method and device based on functional requirements of electric automobile
CN110888803A (en) * 2019-11-08 2020-03-17 北京新能源汽车技术创新中心有限公司 Method and system for converting test decision table into test case
CN110888803B (en) * 2019-11-08 2023-08-22 北京国家新能源汽车技术创新中心有限公司 Method and system for converting test decision table into test case
CN110928790A (en) * 2019-11-27 2020-03-27 中国银行股份有限公司 Test case construction method and device and test equipment
CN110928790B (en) * 2019-11-27 2024-02-02 中国银行股份有限公司 Test case construction method and device and test equipment
CN113267702A (en) * 2021-06-24 2021-08-17 广东电网有限责任公司 Method and device for generating test case of power distribution network fault self-healing system
CN114741289A (en) * 2022-03-31 2022-07-12 重庆长安新能源汽车科技有限公司 Automatic generation method and system of test case for controller software storage function
CN114741289B (en) * 2022-03-31 2024-06-04 深蓝汽车科技有限公司 Automatic generation method and system for test cases aiming at controller software storage function

Also Published As

Publication number Publication date
WO2017084462A1 (en) 2017-05-26
CN105373476B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN105373476A (en) Method and system for generating automatic test case in automobile controller
CN102043680B (en) Method and system for refreshing ECU (Electronic Control Unit) embedded software and downloading program
CN104268074B (en) One kind is based on DCS system application software on-line debugging method
KR101494423B1 (en) Performance validation apparatus for logic input output of vehicular smart junction box and the method thereof
CN103439961B (en) Automobile electronic control unit diagnostic function test method and system
KR101618288B1 (en) System and method for providing diagnostic fault information
CN101488028A (en) System and method for testing CAN bus automobile instrument
CN103810090A (en) Nuclear power station digital regulation installing, debugging and verifying method and nuclear power station digital regulation version upgrading method and platform
CN102902852B (en) Automatic generation system and automatic generation method of electronic control unit (ECU) diagnosis software model of automobile
CN106933566A (en) Graphic configuration language transfer method and device
CN113359657B (en) ECU diagnosis configuration code verification method and system and electronic control unit thereof
CN108267968B (en) Collaborative semi-physical simulation optical fiber data interaction security verification method
CN104572470B (en) A kind of integer overflow fault detection method based on transformation relation
US8751093B2 (en) Hierarchical accumulated validation system and method
CN116701096A (en) Cloud server testing method, virtual machine, vehicle machine system and storage medium
CN111950231B (en) BMC sensor information checking and comparing method and system
CN112416748A (en) Method for testing a system in compliance with requirements
CN104925097A (en) Train display communication test system and method
CN103942261A (en) Allocation input method for vehicle-mounted system fault dictionary
CN116991706B (en) Vehicle automatic test method, device, equipment and storage medium
CN110606100B (en) Fault determination method and device
Kanazy et al. Contribution onto Prognosability Based on Discrete Events Systems
CN114859868B (en) Error-proofing processing method for off-line configuration of passenger car combination instrument system
CN117176561A (en) Automatic test method and test system for vehicle-mounted communication DTC
CN108121328B (en) Vehicle gear box computer testing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant