Method and system for establishing test cases

A technology for test cases and test case generation, applied in test/monitoring control systems, general control systems, electrical test/monitoring, etc., can solve the problem of low test case coverage, time-consuming and labor-intensive testing process, and low efficiency of test cases and other problems, to achieve the effect of intuitive definition process, friendly interface, and improved test efficiency

Inactive Publication Date: 2015-08-19
BEIJING BORGWARD AUTOMOBILE CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] For this reason, the technical problem to be solved in the present invention is that in the simulation test of the upper layer algorithm model of the vehicle controller software of the prior art, the efficiency of manually executing the test case is low, the test case coverage is not high, the portability is poor, and the test process consumes Time-consuming and labor-intensive, so a method and system for establishing test cases are proposed to solve this problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for establishing test cases
  • Method and system for establishing test cases
  • Method and system for establishing test cases

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] As an embodiment of the method for establishing a test case of the present invention, figure 1 A flow chart of a method for building test cases is shown. In the step S1 of importing the model to be tested, the model to be tested is imported; in the step S2 of defining the test scenario, the test scenario is defined, and the test scenario is composed of a plurality of continuous states according to a certain transition sequence; in the step of defining state variables and transition conditions In S3, set the corresponding state variables for each state, set the transition conditions for the transition sequence, and set the corresponding transition variables for each transition condition; in step S4 of generating test cases, select the state variables of each state and the transition Conditional transition variables, combined to generate test cases.

[0030] Wherein, in the step S1 of importing the model to be tested, the process of importing the model to be tested inclu...

Embodiment 2

[0036] In this embodiment, a specific application example is given. This embodiment is a method for establishing a test case for the simulation test of the upper layer algorithm model of the new energy vehicle controller software. The main steps it includes are shown in Embodiment 1. , in the step S1 of importing the model to be tested, the model to be tested is imported; in the step S2 of defining the test scenario, the test scenario is defined, and the test scenario is composed of a plurality of continuous states according to a certain transition sequence; In step S3, corresponding state variables are set for each state, transition conditions are set for transition order, and corresponding transition variables are set for each transition condition; in step S4 of generating test cases, the state variables of each state and The transition variables of transition conditions are combined to generate test cases. It can be seen that the generated test case is based on the imported...

test Embodiment 1

[0052] throttle=100

[0053] vehicle>=50

[0054] brake=100

[0055] vehicle=0

[0056] The meaning of test case 1 is: in the acceleration state, the throttle valve is fully opened until the vehicle speed is 100km / h; when the vehicle speed is 100km / h, it is transferred to the braking state; is zero; when the vehicle speed is 0km / h, transfer to the next state, which is figure 2 Parking state shown.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and system for establishing test cases. The method comprises the following steps of: step one, importing a model to be tested; step two, defining a test scene which is formed by a plurality of continuous states according to a certain transfer order; step three, respectively setting a corresponding state variable for each state, setting transfer conditions for the transfer order, and setting a corresponding transfer variable for each transfer condition; and step four, selecting the state variable of each state and the transfer variables of the transfer conditions in sequence, and generating the test cases in a combination manner. The method and system for establishing test cases solve the technical problems in the prior art that in a simulation test of upper level algorithm models of whole vehicle controller software, the efficiency of test case manual execution is low, the coverage rate of test cases is not high, the portability is poor, and the test process is time consuming and labor consuming.

Description

technical field [0001] The invention relates to the technical field of new energy vehicle controllers, in particular to a method and system for establishing test cases. Background technique [0002] Vehicle Control Unit (Vehicle Control Unit) is the core component of the new energy vehicle vehicle control system. It has functions such as normal driving, safety, regenerative energy feedback, network management, fault diagnosis and processing, and vehicle status monitoring. plays a key role. [0003] At present, the international popular vehicle controller development mode is as follows: First, according to the functional requirements, use tool software (such as MATLAB / Simulink) to carry out software modeling and simulation, establish a basic software control algorithm, and conduct preliminary verification of the algorithm. The algorithm is implemented in a simulated controller, and the simulated controller is used to control a real or simulated controlled object to verify th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G05B23/02
CPCG05B23/0243
Inventor 裴蕾
Owner BEIJING BORGWARD AUTOMOBILE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products