CN109669436A - A kind of method for generating test case and device of the functional requirement based on electric car - Google Patents
A kind of method for generating test case and device of the functional requirement based on electric car Download PDFInfo
- Publication number
- CN109669436A CN109669436A CN201811490039.0A CN201811490039A CN109669436A CN 109669436 A CN109669436 A CN 109669436A CN 201811490039 A CN201811490039 A CN 201811490039A CN 109669436 A CN109669436 A CN 109669436A
- Authority
- CN
- China
- Prior art keywords
- test
- electric car
- functional requirement
- relevant
- condition
- 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
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/0259—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
- G05B23/0262—Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
-
- 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)
- Test And Diagnosis Of Digital Computers (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
Abstract
The present invention relates to the method for generating test case and generating means of a kind of functional requirement based on electric car.The method includes obtaining test item relevant to the functional requirement of electric car;For the test item relevant to the functional requirement of electric car of acquisition, determines the logical relation between the test condition and test condition of the test item relevant to the functional requirement of electric car, constitute functional test collection;According to the functional test collection, the truth table of test case is constructed;Test use cases construction step: according to the truth table of constructed test case, test use cases are constructed, the generating process of the test case thus standardized improves the correctness, high efficiency and covering adequacy of test case.
Description
Technical field
The invention belongs to electric car software testing technology fields, and in particular to a kind of functional requirement based on electric car
Method for generating test case and device.
Background technique
Test case (Test Case) be the one group of test input worked out for some special objective, execution condition and
Expected results, to test some Program path or to verify whether meet some particular demands.Test case is by software test
Behavioral activity do a scientific tissue and conclude, it is therefore an objective to the behavior of software test can be converted to manageable mode;
Test case is also that will test one of the method specifically quantified simultaneously, and different classes of software, test case is different.Cause
This, correctness, high efficiency and the covering adequacy of test case directly reflect the quality of test case.
In the prior art, test case write method includes equivalence class classifying method, boundary values, cause effect graph, decision table
Method etc., wherein equivalence class classifying method is a kind of method of test condition that systematic determination to be inputted, by all possibility of program
Input data (effective and invalid) be divided into several equivalence classes, representative number is then chosen from each class
Reasonably to be classified according to as test case, test case is made of the representative of effective equivalence class and invalid equivalence class, thus
Guarantee that test case has integrality and representativeness.It can not be considered in program using equivalence class classifying method design test case
Portion's structure, it is main that Test Sample Design is carried out to the understanding of Software functional requirements by professional technician, separately design difference
Test case apply to electric car model in ring test and hardware-in―the-loop test.
But lack the Test cases technology link of standardization using equivalence class classifying method at present, also, to tester
Professional height relies on, and may cause test case and lacks reliability and integrality, is unable to fully cover proposed software
Functional requirement.Therefore, it is necessary to the method for generating test case of constituting criterion.Meanwhile it being surveyed at present for the vehicle of electric car
Also imperfect method for generating test case is tried, is that testing example design is carried out according to vehicle performance mostly, without same
When consider the software problem.
Summary of the invention
In order to solve the nonstandard technical problem of above-mentioned Test cases technology, the invention proposes one kind to be based on electric car
Functional requirement method for generating test case and device.The Test cases technology side of the functional requirement based on electric car
Method includes the following steps:
Obtaining step: test item relevant to the functional requirement of electric car is obtained;
Functional test collection constitutes step: for the test item relevant to the functional requirement of electric car of acquisition, determining
Logical relation between the test condition and test condition of the test item relevant with the functional requirement of electric car, structure
At function test set;
Truth table construction step: according to the functional test collection, the truth table of test case is constructed;
Test use cases construction step: according to the truth table of constructed test case, test use cases are constructed.
Further, the test item relevant to the functional requirement of electric car may include the function with electric car
The relevant normative test item of demand, to test item relevant the problem of software and related with the functional requirement of electric car
Other test items.
Further, it is constituted in step in functional test collection, the test condition is also split as multistage splitting condition, and
The logical relation between each splitting condition is determined in every grade of splitting condition.
Further, in truth table construction step, according between the test condition and test condition logical relation and
Logical relation between multistage splitting condition and multistage splitting condition generates test case number, constructs the true value of test case
Table.
Further, in test use cases construction step, for normative survey relevant to the functional requirement of electric car
Examination project constructs the test use cases of normative test item relevant to the functional requirement of electric car;For with software
The relevant test item of problem constructs and the test use cases of test item relevant the problem of software;For with electric car
Other relevant test items of functional requirement, construct the test of relevant to the functional requirement of electric car other test items
Set of uses case;The whole vehicle functions test case library of above three test use cases composition electric car.
Further, the method for generating test case further includes checking step, checks appearance during Test cases technology
Defect, and fed back.
The Test cases technology device of the functional requirement based on electric car of the embodiment of the present invention, which is characterized in that packet
It includes such as lower component:
Obtaining widget: test item relevant to the functional requirement of electric car is obtained;
Functional test collection component parts: it for the test item relevant to the functional requirement of electric car of acquisition, determines
Logical relation between the test condition and test condition of the test item relevant with the functional requirement of electric car, structure
At function test set;
Truth table constructs component: according to the functional test collection, constructing the truth table of test case;
Test use cases construct component: according to the truth table of constructed test case, constructing test use cases.
Further, the test item relevant to the functional requirement of electric car may include the function with electric car
The relevant normative test item of demand, to test item relevant the problem of software and related with the functional requirement of electric car
Other test items.
Further, the Test cases technology device further includes inspection part, for during checking Test cases technology
The defect of appearance, and fed back.
Further, the test condition is split as multistage splitting condition by the functional test collection component parts, and every
The logical relation between each splitting condition is determined in grade splitting condition.
Beneficial effects of the present invention: the test case for the functional requirement based on electric car that the embodiment of the present invention proposes is raw
At method and apparatus by obtaining test item relevant to the functional requirement of electric car, the function with electric car is determined
Logical relation between the test condition and test condition of the relevant test item of energy demand constitutes functional test collection, building
The truth table of test case generates test case, has standardized the generating process of test case, improve test case correctness,
High efficiency and covering adequacy.Meanwhile for vehicle test item relevant to software issue, it is individually created test case, together
When for electric car vehicle test, improve vehicle test normalization and accuracy.
Detailed description of the invention
Fig. 1 is the method for generating test case for the functional requirement based on electric car that first embodiment of the invention proposes
Flow chart;
Fig. 2 is the Test cases technology device for the functional requirement based on electric car that second embodiment of the invention proposes
Block diagram.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
Attached drawing, the present invention is described in more detail.But as known to those skilled in the art, the invention is not limited to attached drawings and following reality
Apply example.
First embodiment of the invention proposes a kind of method for generating test case of functional requirement based on electric car, such as
Shown in Fig. 1, include the following steps:
Obtaining step: test item relevant to the functional requirement of electric car is obtained.
The test item relevant to the functional requirement of electric car may include the functional requirement phase with electric car
The normative test item of pass, to test item relevant the problem of software and it is relevant with the functional requirement of electric car other
Test item.
Wherein, normative test item relevant to the functional requirement of electric car is the demand with user to electric car
For starting point establishment functional test project, be generate test case important evidence, test case coverage depend on pair
The extractability of test condition in normalization test item relevant to the functional requirement of electric car.For example, in electronic vapour
In the test of vehicle, normalization test item relevant to the functional requirement of electric car includes that electric car entrance can exercise shape
State, electric car enter automatic cruising state or electric car enters suspended state etc..
It to test item relevant the problem of software is worked out according to the problem related with software occurred in actual test
Test item, problem is included in vehicle test case.For example, in the test of electric car, electric car and software
The problem of relevant test item be according to the whole of the problem establishment related to software occurred in bench test or real steering vectors
Vehicle test item.
Other test items relevant to the functional requirement of electric car be needle two above project it is not covered with it is electric
Other relevant test items of the functional requirement of electrical automobile.For example, being needed in the test of electric car with the function of electric car
Seeking other relevant test items includes the vehicle test of the failure problems establishment occurred under special operation according to electric car
Project.
Functional test collection constitutes step: for the test item relevant to the functional requirement of electric car of acquisition, determining
Logical relation between the test condition and test condition of the test item relevant with the functional requirement of electric car, structure
At function test set.
Each test item relevant to the functional requirement of electric car is numbered with unique functional test collection, the survey
Logical relation between strip part and test condition is associated with the functional test collection of test item number.
Functional test collection is to generate the important of test case according to test item relevant to the functional requirement of electric car
Part.The functional test collection has the function of the subdivision of test condition, the test condition can be further broken into multistage
Splitting condition such as first order splitting condition, second level splitting condition ..., while determining each split bar in every grade of splitting condition
Logical relation between part.Multistage splitting condition after subdivision and the logical relation between splitting condition and functional test collection are numbered
It is associated.
Truth table construction step: according to the functional test collection, the truth table of test case is constructed.
Logical relation and multistage according to the content of the functional test collection, between the test condition and test condition
Logical relation between splitting condition and multistage splitting condition generates test case number, constructs the truth table of test case.
In the truth table of test case, every a line can correspond to a test case, and test case number is unique, each
Column can correspond to the test condition or multistage splitting condition of test case, and have between each column test condition or multistage splitting condition
Certain logical relation, the logical relation derive from functional test collection, thus, it is possible to guarantee test case it is comprehensive cover and
Uniqueness.
Test use cases construction step: according to the truth table of constructed test case, test use cases are constructed.
For normative test item relevant to the functional requirement of electric car, the functional requirement of building and electric car
The test use cases of relevant normalization test item, the test use cases of generation are for electric car model in ring test and hard
Part (is simulated the operating status of controll plant with real-time processor operation simulation model, by I/O interface and is tested in ring test
ECU connection, to tested ECU carry out in all directions, the test of system).The testing procedure of corresponding test case includes experiment
Preparation process, experimental setup step and checking step carry out detailed action description to test process.
Relevant test item aiming at the problem that software, the test for constructing test item relevant to software are used
Example collection.Wherein, the corresponding test item of each problem found in software test, including functional test collection number, test are used
Example number, problem description, analysis of causes etc..The testing procedure of corresponding test case include Preparatory work of experiment step, experiment set
Step, checking step and remarks are set, remarks content is the test mode that the test case is applicable in.
For other test items relevant to the functional requirement of electric car, the functional requirement phase with electric car is constructed
The test use cases of the test use cases for other test items closed, generation exist for electric car model in ring test and hardware
Ring test (runs simulation model with real-time processor to simulate the operating status of controll plant, by I/O interface and tested
ECU connection, to tested ECU carry out in all directions, the test of system).The testing procedure of corresponding test case includes that experiment is quasi-
Standby step, experimental setup step and checking step carry out detailed action description to test process.
The problem of multiple test use cases and software of normalization test item relevant to the functional requirement of electric car
Multiple test use cases of relevant test item and other test items relevant to the functional requirement of electric car it is multiple
Test use cases constitute electric car whole vehicle functions test case library, effectively increase test case correctness and efficiently
Property.
In the step of method for generating test case of the functional requirement based on electric car of the embodiment of the present invention, there is inspection
Step is looked into, test item relevant to the functional requirement of electric car is checked, as checked the function proposed in test item
Defect existing for energy desired content records problem in time and goes forward side by side when the defect checked leads to not generate test case
Row feedback, is appropriately modified with test item relevant to the functional requirement of electric car, guarantees the generation of test case.
Hereinafter, specific descriptions electric car enters feasible by taking the test of vehicle control unit of electric vehicle application layer software as an example
Make the Test cases technology process of (Ready) state.
Firstly, obtaining electric car into the test item that can exercise (Ready) state.
Then, test condition is determined into the functional requirement that can exercise (Ready) state according to electric car.Wherein, it surveys
Strip part includes that high-voltage electricity is completed, key signal effectively, without UDS is prohibited from entering Ready request and gear without reason in high-pressure system
Hinder, the logical relation between above-mentioned each test condition is logical AND " & ", that is, high-voltage electricity, which completes & key signal, in high-pressure system has
When effect is prohibited from entering the conditions such as Ready request gear fault-free while meeting without UDS, vehicle, which is allowed for access, to exercise
(Ready) thus state constitutes functional test collection, as shown in Table 1.
Table one
Test condition in table one is further split, forms first order splitting condition, as shown in Table 2.Wherein will
Test condition " in high-pressure system high-voltage electricity complete " be split as first order splitting condition " under power-down state, SSB one-key start " and
" high pressure powers on completion (KL15 is powered on) ";Test condition " receiving KL50 signal " is split as first order splitting condition " to receive
To Start hard signal " and " receiving the Start signal in CAN bus ", it " receiving Start hard signal " and " receives
Logical relation between Start signal in CAN bus " is logic or " | ";Test condition " gear fault-free " is split as
Level-one splitting condition " no gear OpenCircuit failure ", " no gear PosShortGNDA failure ", " no gear ShotBat event
Barrier " and " no gear ShotGNDA failure ", " no gear OpenCircuit failure ", " no gear PosShortGNDA failure ",
Logical relation between " no gear ShotBat failure " and " no gear ShotGNDA failure " is logical AND " & ".
Table two
The logical expression of test item can be automatically generated according to the functional test collection in table two
(C11 | (C12& (C21 | C22))) &C31&C41&C42&C43&C44, and generate multiple test case TSP_
HPS_ED02_001 to TSP_HPS_ED02_014, multiple test cases provide truth table about first order splitting condition, generate
Test use cases, as shown in Table 3.
Table three
The i.e. corresponding test case of a line that the true and false relationship of different first order splitting conditions is constituted in table three, energy
Enough covering adequacies and uniqueness to ensure the test case of generation.
By truth table, the corresponding testing procedure of test case can be formed.The step of every test case includes that experiment is quasi-
Standby step, experimental setup step and checking step carry out detailed action description to test process, as shown in Table 4.
Table four
In Preparatory work of experiment step, the state before vehicle testing can be set according to condition, as set Vehicular system in this example
In high pressure power-up state or high pressure power-down state;In experimental setup step, text is carried out to the conditional relationship in truth table and is retouched
State, the condition set as it is true when, execute corresponding movement, the condition set is as fictitious time, the execution movement opposite with condition, such as
C31 condition is prohibited from entering Ready request for no UDS, if setting the condition as vacation, should execute input UDS and be prohibited from entering Ready
Request action;Checking step passes through for the expected results of test if the output result of test case is consistent with expected results
This test condition, if the expected results in this example are to check whether vehicle enters (Ready) state of can travel.Based on the present invention
The test case library of foundation can efficiently generate vehicle and enter the travelable relevant test use cases of status function.
Second embodiment of the invention proposes a kind of Test cases technology device of functional requirement based on electric car, such as
Shown in Fig. 2, comprising:
Obtaining widget: test item relevant to the functional requirement of electric car is obtained.
The test item relevant to the functional requirement of electric car may include the functional requirement phase with electric car
The normative test item of pass, to test item relevant the problem of software and it is relevant with the functional requirement of electric car other
Test item.
Wherein, normative test item relevant to the functional requirement of electric car is the demand with user to electric car
For starting point establishment functional test project, be generate test case important evidence, test case coverage depend on pair
The extractability of test condition in normalization test item relevant to the functional requirement of electric car.For example, in electronic vapour
In the test of vehicle, normalization test item relevant to the functional requirement of electric car includes that electric car entrance can exercise shape
State, electric car enter automatic cruising state or electric car enters suspended state etc..
It to test item relevant the problem of software is worked out according to the problem related with software occurred in actual test
Test item, problem is included in vehicle test case.For example, in the test of electric car, electric car and software
The problem of relevant test item be according to the whole of the problem establishment related to software occurred in bench test or real steering vectors
Vehicle test item.
Other test items relevant to the functional requirement of electric car be needle two above project it is not covered with it is electric
Other relevant test items of the functional requirement of electrical automobile.For example, being needed in the test of electric car with the function of electric car
Seeking other relevant test items includes the vehicle test of the failure problems establishment occurred under special operation according to electric car
Project.
Functional test collection component parts: it for the test item relevant to the functional requirement of electric car of acquisition, determines
Logical relation between the test condition and test condition of the test item relevant with the functional requirement of electric car, structure
At function test set.
Each test item relevant to the functional requirement of electric car is numbered with unique functional test collection, the survey
Logical relation between strip part and test condition is associated with the functional test collection of test item number.
Functional test collection is to generate the important of test case according to test item relevant to the functional requirement of electric car
Part.The functional test collection has the function of the subdivision of test condition, the test condition can be further broken into multistage
Splitting condition such as first order splitting condition, second level splitting condition ..., while determining each split bar in every grade of splitting condition
Logical relation between part.Multistage splitting condition after subdivision and the logical relation between splitting condition and functional test collection are numbered
It is associated.
Truth table constructs component: according to the functional test collection, constructing the truth table of test case.
Logical relation and multistage according to the content of the functional test collection, between the test condition and test condition
Logical relation between splitting condition and multistage splitting condition generates test case number, constructs the truth table of test case.
In the truth table of test case, every a line can correspond to a test case, and test case number is unique, each
Column can correspond to the test condition or multistage splitting condition of test case, and have between each column test condition or multistage splitting condition
Certain logical relation, the logical relation derive from functional test collection, thus, it is possible to guarantee test case it is comprehensive cover and
Uniqueness.
Test use cases construct component: according to the truth table of constructed test case, constructing test use cases.
For normative test item relevant to the functional requirement of electric car, the functional requirement of building and electric car
The test use cases of relevant normalization test item, the test use cases of generation are for electric car model in ring test and hard
Part (is simulated the operating status of controll plant with real-time processor operation simulation model, by I/O interface and is tested in ring test
ECU connection, to tested ECU carry out in all directions, the test of system).The testing procedure of corresponding test case includes experiment
Preparation process, experimental setup step and checking step carry out detailed action description to test process.
Relevant test item aiming at the problem that software, the test for constructing test item relevant to software are used
Example collection.Wherein, the corresponding test item of each problem found in software test, including functional test collection number, test are used
Example number, problem description, analysis of causes etc..The testing procedure of corresponding test case include Preparatory work of experiment step, experiment set
Step, checking step and remarks are set, remarks content is the test mode that the test case is applicable in.
For other test items relevant to the functional requirement of electric car, the functional requirement phase with electric car is constructed
The test use cases of the test use cases for other test items closed, generation exist for electric car model in ring test and hardware
Ring test (runs simulation model with real-time processor to simulate the operating status of controll plant, by I/O interface and tested
ECU connection, to tested ECU carry out in all directions, the test of system).The testing procedure of corresponding test case includes that experiment is quasi-
Standby step, experimental setup step and checking step carry out detailed action description to test process.
The problem of multiple test use cases and software of normalization test item relevant to the functional requirement of electric car
Multiple test use cases of relevant test item and other test items relevant to the functional requirement of electric car it is multiple
Test use cases constitute electric car whole vehicle functions test case library, effectively increase test case correctness and efficiently
Property.
In the step of method for generating test case of the functional requirement based on electric car of the embodiment of the present invention, there is inspection
Step is looked into, test item relevant to the functional requirement of electric car is checked, as checked the function proposed in test item
Defect existing for energy desired content records problem in time and goes forward side by side when the defect checked leads to not generate test case
Row feedback, is appropriately modified with test item relevant to the functional requirement of electric car, guarantees the generation of test case.
The embodiment of the present invention also proposes a kind of computer readable storage medium, is stored thereon with computer program, the calculating
The step of above method is realized when machine program is executed by processor.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage
The step of computer program, the processor realizes the above method when executing described program.
It will be understood by those skilled in the art that in flow charts indicate or logic described otherwise above herein and/or
Step may be embodied in and appoint for example, being considered the order list of the executable instruction for realizing logic function
In what computer-readable medium, for instruction execution system, device or equipment (such as computer based system including processor
System or other can be from instruction execution system, device or equipment instruction fetch and the system executed instruction) use, or combine this
A little instruction execution systems, device or equipment and use.For the purpose of this specification, " computer-readable medium " can be it is any can be with
Include, store, communicate, propagate, or transport program is for instruction execution system, device or equipment or in conjunction with these instruction execution systems
System, device or equipment and the device used.
The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings
Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
More than, embodiments of the present invention are illustrated.But the present invention is not limited to above embodiment.It is all
Within the spirit and principles in the present invention, any modification, equivalent substitution, improvement and etc. done should be included in guarantor of the invention
Within the scope of shield.
Claims (10)
1. a kind of method for generating test case of the functional requirement based on electric car, which comprises the steps of:
Obtaining step: test item relevant to the functional requirement of electric car is obtained;
Functional test collection constitutes step: for the test item relevant to the functional requirement of electric car of acquisition, determine described in
Logical relation between the test condition and test condition of test item relevant to the functional requirement of electric car constitutes function
It can test set;
Truth table construction step: according to the functional test collection, the truth table of test case is constructed;
Test use cases construction step: according to the truth table of constructed test case, test use cases are constructed.
2. method for generating test case as described in claim 1, which is characterized in that the functional requirement phase with electric car
The test item of pass may include normative test item relevant to the functional requirement of electric car, with software the problem of it is related
Test item and other test items relevant to the functional requirement of electric car.
3. method for generating test case as claimed in claim 1 or 2, which is characterized in that it is constituted in step in functional test collection,
The test condition is also split as multistage splitting condition, and is determining the logic between each splitting condition in every grade of splitting condition
Relationship.
4. method for generating test case as claimed in claim 3, which is characterized in that in truth table construction step, according to institute
The logic stated between the logical relation between test condition and test condition and multistage splitting condition and multistage splitting condition is closed
System generates test case number, constructs the truth table of test case.
5. method for generating test case as claimed in claim 2, which is characterized in that in test use cases construction step, needle
To normative test item relevant to the functional requirement of electric car, specification relevant to the functional requirement of electric car is constructed
The test use cases of property test item;Relevant test item aiming at the problem that software constructs relevant to software
The test use cases of test item;For other test items relevant to the functional requirement of electric car, building and electronic vapour
The test use cases of other relevant test items of the functional requirement of vehicle;Above three test use cases constitute the whole of electric car
Vehicle functional test use-case library.
6. method for generating test case as described in claim 1, which is characterized in that the method for generating test case further includes
Checking step checks the defect occurred during Test cases technology, and is fed back.
7. a kind of Test cases technology device of the functional requirement based on electric car, which is characterized in that including such as lower component:
Obtaining widget: test item relevant to the functional requirement of electric car is obtained;
Functional test collection component parts: for the test item relevant to the functional requirement of electric car of acquisition, determine described in
Logical relation between the test condition and test condition of test item relevant to the functional requirement of electric car constitutes function
It can test set;
Truth table constructs component: according to the functional test collection, constructing the truth table of test case;
Test use cases construct component: according to the truth table of constructed test case, constructing test use cases.
8. Test cases technology device as claimed in claim 7, which is characterized in that the functional requirement phase with electric car
The test item of pass may include normative test item relevant to the functional requirement of electric car, with software the problem of it is related
Test item and other test items relevant to the functional requirement of electric car.
9. Test cases technology device as claimed in claim 7 or 8, which is characterized in that the Test cases technology device is also
Including inspection part, for checking the defect occurred during Test cases technology, and fed back.
10. Test cases technology device as claimed in claim 7 or 8, which is characterized in that the functional test collection component parts
The test condition is split as multistage splitting condition, and is determining the logic pass between each splitting condition in every grade of splitting condition
System.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811490039.0A CN109669436B (en) | 2018-12-06 | 2018-12-06 | Test case generation method and device based on functional requirements of electric automobile |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811490039.0A CN109669436B (en) | 2018-12-06 | 2018-12-06 | Test case generation method and device based on functional requirements of electric automobile |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109669436A true CN109669436A (en) | 2019-04-23 |
CN109669436B CN109669436B (en) | 2021-04-13 |
Family
ID=66143673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811490039.0A Active CN109669436B (en) | 2018-12-06 | 2018-12-06 | Test case generation method and device based on functional requirements of electric automobile |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669436B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110162022A (en) * | 2019-05-22 | 2019-08-23 | 重庆长安汽车股份有限公司 | A kind of emulation test method and device of entire vehicle electrical system |
CN110442522A (en) * | 2019-08-05 | 2019-11-12 | 广州小鹏汽车科技有限公司 | The method for generating test case and test method of functional requirement based on electric car |
CN113360132A (en) * | 2020-03-05 | 2021-09-07 | 北京车和家信息技术有限公司 | Real vehicle test data analysis method and device |
CN116048048A (en) * | 2023-01-03 | 2023-05-02 | 重庆长安汽车股份有限公司 | Method, device, equipment and storage medium for testing running state of whole vehicle |
Citations (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050102594A1 (en) * | 2003-09-26 | 2005-05-12 | The Regents Of The University Of California | Method for test application and test content generation for AC faults in integrated circuits |
EP1657634A2 (en) * | 2004-11-12 | 2006-05-17 | Empirix Inc. | Test agent architecture |
CN1908892A (en) * | 2005-08-01 | 2007-02-07 | 王彤 | System and method for test examples design |
CN101436128A (en) * | 2007-11-16 | 2009-05-20 | 北京邮电大学 | Software test case automatic generating method and system |
CN101710305A (en) * | 2009-12-14 | 2010-05-19 | 中国科学院计算技术研究所 | Method and system for realizing white box testing of computer software |
US20100235814A1 (en) * | 2009-03-16 | 2010-09-16 | Kabushiki Kaisha Toshiba | Apparatus and a method for generating a test case |
US20110083121A1 (en) * | 2009-10-02 | 2011-04-07 | Gm Global Technology Operations, Inc. | Method and System for Automatic Test-Case Generation for Distributed Embedded Systems |
CN102323906A (en) * | 2011-09-08 | 2012-01-18 | 哈尔滨工程大学 | MC/DC test data automatic generation method based on genetic algorithm |
CN102565563A (en) * | 2010-12-29 | 2012-07-11 | 上海汽车集团股份有限公司 | Automated integration test system and method for automotive electronic and electric appliance system |
CN102854877A (en) * | 2012-10-12 | 2013-01-02 | 山东省科学院自动化研究所 | Function test system and test method of automobile body control module |
CN104063312A (en) * | 2013-03-22 | 2014-09-24 | 株式会社日立制作所 | Test Case Generation Method And Test Case Generation Device |
US8856751B2 (en) * | 2012-09-20 | 2014-10-07 | Fujitsu Limited | Abstract symbolic execution for scaling symbolic execution generation and automatic test generation |
CN104317708A (en) * | 2014-10-21 | 2015-01-28 | 北京邮电大学 | Software testing case automatic generating method and system based on iterative interval arithmetic |
CN105373476A (en) * | 2015-11-17 | 2016-03-02 | 北京新能源汽车股份有限公司 | Method and system for generating automatic test case in automobile controller |
CN105426312A (en) * | 2015-12-31 | 2016-03-23 | 北京经纬恒润科技有限公司 | Test suite generation method and device for smoke tests |
CN105677563A (en) * | 2016-01-05 | 2016-06-15 | 南昌航空大学 | Integrated test sequence generating method based on SysML module diagrams |
US20160357661A1 (en) * | 2015-06-08 | 2016-12-08 | International Business Machines Corporation | Automated dynamic test case generation |
CN106506254A (en) * | 2016-09-20 | 2017-03-15 | 北京理工大学 | A kind of bottleneck node detection method of extensive stream data processing system |
CN106526506A (en) * | 2016-11-03 | 2017-03-22 | 武汉通畅汽车电子照明有限公司 | LED automobile headlamp test case automatic generation method |
US9665350B1 (en) * | 2009-05-29 | 2017-05-30 | The Mathworks, Inc. | Automatic test generation for model-based code coverage |
CN106814730A (en) * | 2016-12-14 | 2017-06-09 | 中国铁路总公司 | Train operation control system security critical software method for generating test case |
CN107291620A (en) * | 2017-06-30 | 2017-10-24 | 郑州云海信息技术有限公司 | A kind of method for generating test case and device |
CN107678973A (en) * | 2017-10-31 | 2018-02-09 | 北京润科通用技术有限公司 | The automatic generation method and system of a kind of test script |
CN107748721A (en) * | 2017-11-27 | 2018-03-02 | 中国航空无线电电子研究所 | A kind of test use cases automatic generation method |
CN107797928A (en) * | 2017-10-26 | 2018-03-13 | 北京广利核系统工程有限公司 | I&C system platform logic algorithmic block test device and method |
CN107807878A (en) * | 2016-09-09 | 2018-03-16 | 北京航空航天大学 | Automatic test engine based on keyword |
CN107844424A (en) * | 2017-11-15 | 2018-03-27 | 杭州杉石科技有限公司 | Model-based testing system and method |
US20180113796A1 (en) * | 2016-10-21 | 2018-04-26 | Rosemount Aerospace Inc. | Automatic generation of data coupling and control coupling test conditions |
CN108038060A (en) * | 2017-12-28 | 2018-05-15 | 上海璞恒新能源科技有限公司 | A kind of test method, device, terminal and computer-readable medium |
CN108415830A (en) * | 2018-02-05 | 2018-08-17 | 广东睿江云计算股份有限公司 | A kind of generation method and device of software test case |
CN108664384A (en) * | 2017-03-29 | 2018-10-16 | 富士通株式会社 | Data processing equipment and data processing method |
CN108701074A (en) * | 2016-02-24 | 2018-10-23 | 三菱电机株式会社 | Test cases technology device and test case generator |
-
2018
- 2018-12-06 CN CN201811490039.0A patent/CN109669436B/en active Active
Patent Citations (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050102594A1 (en) * | 2003-09-26 | 2005-05-12 | The Regents Of The University Of California | Method for test application and test content generation for AC faults in integrated circuits |
EP1657634A2 (en) * | 2004-11-12 | 2006-05-17 | Empirix Inc. | Test agent architecture |
CN1908892A (en) * | 2005-08-01 | 2007-02-07 | 王彤 | System and method for test examples design |
CN101436128A (en) * | 2007-11-16 | 2009-05-20 | 北京邮电大学 | Software test case automatic generating method and system |
US20100235814A1 (en) * | 2009-03-16 | 2010-09-16 | Kabushiki Kaisha Toshiba | Apparatus and a method for generating a test case |
US9665350B1 (en) * | 2009-05-29 | 2017-05-30 | The Mathworks, Inc. | Automatic test generation for model-based code coverage |
US20110083121A1 (en) * | 2009-10-02 | 2011-04-07 | Gm Global Technology Operations, Inc. | Method and System for Automatic Test-Case Generation for Distributed Embedded Systems |
CN101710305A (en) * | 2009-12-14 | 2010-05-19 | 中国科学院计算技术研究所 | Method and system for realizing white box testing of computer software |
CN102565563A (en) * | 2010-12-29 | 2012-07-11 | 上海汽车集团股份有限公司 | Automated integration test system and method for automotive electronic and electric appliance system |
CN102323906A (en) * | 2011-09-08 | 2012-01-18 | 哈尔滨工程大学 | MC/DC test data automatic generation method based on genetic algorithm |
US8856751B2 (en) * | 2012-09-20 | 2014-10-07 | Fujitsu Limited | Abstract symbolic execution for scaling symbolic execution generation and automatic test generation |
CN102854877A (en) * | 2012-10-12 | 2013-01-02 | 山东省科学院自动化研究所 | Function test system and test method of automobile body control module |
CN104063312A (en) * | 2013-03-22 | 2014-09-24 | 株式会社日立制作所 | Test Case Generation Method And Test Case Generation Device |
US20140289706A1 (en) * | 2013-03-22 | 2014-09-25 | Hitachi, Ltd. | Test case generation method, test case generation device, and storage medium |
JP2014186407A (en) * | 2013-03-22 | 2014-10-02 | Hitachi Ltd | Test case generation method, test case generation device and program |
CN104317708A (en) * | 2014-10-21 | 2015-01-28 | 北京邮电大学 | Software testing case automatic generating method and system based on iterative interval arithmetic |
US20160357661A1 (en) * | 2015-06-08 | 2016-12-08 | International Business Machines Corporation | Automated dynamic test case generation |
CN105373476A (en) * | 2015-11-17 | 2016-03-02 | 北京新能源汽车股份有限公司 | Method and system for generating automatic test case in automobile controller |
WO2017084462A1 (en) * | 2015-11-17 | 2017-05-26 | 北京新能源汽车股份有限公司 | Method and system for generating automatic test case in automobile controller |
CN105426312A (en) * | 2015-12-31 | 2016-03-23 | 北京经纬恒润科技有限公司 | Test suite generation method and device for smoke tests |
CN105677563A (en) * | 2016-01-05 | 2016-06-15 | 南昌航空大学 | Integrated test sequence generating method based on SysML module diagrams |
CN108701074A (en) * | 2016-02-24 | 2018-10-23 | 三菱电机株式会社 | Test cases technology device and test case generator |
CN107807878A (en) * | 2016-09-09 | 2018-03-16 | 北京航空航天大学 | Automatic test engine based on keyword |
CN106506254A (en) * | 2016-09-20 | 2017-03-15 | 北京理工大学 | A kind of bottleneck node detection method of extensive stream data processing system |
US20180113796A1 (en) * | 2016-10-21 | 2018-04-26 | Rosemount Aerospace Inc. | Automatic generation of data coupling and control coupling test conditions |
CN106526506A (en) * | 2016-11-03 | 2017-03-22 | 武汉通畅汽车电子照明有限公司 | LED automobile headlamp test case automatic generation method |
CN106814730A (en) * | 2016-12-14 | 2017-06-09 | 中国铁路总公司 | Train operation control system security critical software method for generating test case |
CN108664384A (en) * | 2017-03-29 | 2018-10-16 | 富士通株式会社 | Data processing equipment and data processing method |
CN107291620A (en) * | 2017-06-30 | 2017-10-24 | 郑州云海信息技术有限公司 | A kind of method for generating test case and device |
CN107797928A (en) * | 2017-10-26 | 2018-03-13 | 北京广利核系统工程有限公司 | I&C system platform logic algorithmic block test device and method |
CN107678973A (en) * | 2017-10-31 | 2018-02-09 | 北京润科通用技术有限公司 | The automatic generation method and system of a kind of test script |
CN107844424A (en) * | 2017-11-15 | 2018-03-27 | 杭州杉石科技有限公司 | Model-based testing system and method |
CN107748721A (en) * | 2017-11-27 | 2018-03-02 | 中国航空无线电电子研究所 | A kind of test use cases automatic generation method |
CN108038060A (en) * | 2017-12-28 | 2018-05-15 | 上海璞恒新能源科技有限公司 | A kind of test method, device, terminal and computer-readable medium |
CN108415830A (en) * | 2018-02-05 | 2018-08-17 | 广东睿江云计算股份有限公司 | A kind of generation method and device of software test case |
Non-Patent Citations (5)
Title |
---|
MARYAM MIRZAPOUR MOSHIZI: ""The Application of Meta-Heuristic Algorithms in Automatic Software Test Case Generation"", 《IJMSC-INTERNATIONAL JOURNAL OF MATHEMATICAL SCIENCES AND COMPUTING(IJMSC)》 * |
MING GANG XU: ""Research on Automatic Test Case Generation Framework for Java"", 《APPLIED MECHANICS AND MATERIALS》 * |
吕格峰: ""基于功能对象的测试用例生成模型研究与实现"", 《中国优秀硕士学位论文全文数据库-信息科技辑》 * |
赵林辉: ""汽车电控单元测试用例生成与集成测试技术"", 《哈尔滨工业大学学报》 * |
钱忠胜: ""基于规格说明的若干逻辑覆盖测试准则"", 《软件学报》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110162022A (en) * | 2019-05-22 | 2019-08-23 | 重庆长安汽车股份有限公司 | A kind of emulation test method and device of entire vehicle electrical system |
CN110442522A (en) * | 2019-08-05 | 2019-11-12 | 广州小鹏汽车科技有限公司 | The method for generating test case and test method of functional requirement based on electric car |
CN113360132A (en) * | 2020-03-05 | 2021-09-07 | 北京车和家信息技术有限公司 | Real vehicle test data analysis method and device |
CN113360132B (en) * | 2020-03-05 | 2023-12-19 | 北京车和家信息技术有限公司 | Real vehicle test data analysis method and device |
CN116048048A (en) * | 2023-01-03 | 2023-05-02 | 重庆长安汽车股份有限公司 | Method, device, equipment and storage medium for testing running state of whole vehicle |
Also Published As
Publication number | Publication date |
---|---|
CN109669436B (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109669436A (en) | A kind of method for generating test case and device of the functional requirement based on electric car | |
CN106446412B (en) | Model-based test method for avionics system | |
CN109522228B (en) | Interface automation test data construction method, device, platform and storage medium | |
CN104597892A (en) | Hierarchical fault diagnosis method for electronic information equipment | |
DE102007010978A1 (en) | Electrical system's diagnosis supporting device for use in motor vehicle, has evaluation unit to produce list of incorrect components that are sorted based on dependence value, and output/supply unit to display or provide list | |
CN111125052B (en) | Big data intelligent modeling system and method based on dynamic metadata | |
US20160170868A1 (en) | Method and apparatus for the automated testing of a subsystem of a safety critical system | |
KR20210031111A (en) | Device and method of data acqusition for safety certification | |
CN107080945B (en) | Method and device for testing artificial intelligence behaviors in game and electronic equipment | |
CN110442522A (en) | The method for generating test case and test method of functional requirement based on electric car | |
CN114492258A (en) | Random constraint and coverage group synchronization method | |
CN114915643B (en) | Configuration method, device, equipment and medium of railway signal centralized monitoring system | |
KR101334806B1 (en) | Method of proudcing input sets of test case in test case generating system | |
US10877471B2 (en) | Method and apparatus for generating a fault tree for a failure mode of a complex system | |
DE112021003677T5 (en) | AUTOMATED ASSISTED CIRCUIT VALIDATION | |
DE102016105844A1 (en) | Method for testing a control program of a control device in a simulation environment on a computer | |
KR101291817B1 (en) | Test case generating system and method based on requirements model | |
CN110928761B (en) | Demand chain and system and method for application thereof | |
CN116432442A (en) | Three-dimensional integrated evaluation method for ground facility equipment of space launching field | |
Rodriguez-Navas et al. | Offline analysis of independent guarded assertions in automotive integration testing | |
Win et al. | Using simulated execution in verifying distributed algorithms | |
CN105653445A (en) | Implementation method capable of meeting DO-178C test result | |
US11520691B2 (en) | Test procedure systems and methods | |
KR20220121175A (en) | Automatic generation of integrated test procedures using system test procedures | |
Erkkinen et al. | Model-based design for DO-178B with qualified tools |
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 |