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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com