Test case generation method and device and storage medium
A test case generation and model technology, applied in software testing/debugging, design optimization/simulation, error detection/correction, etc., can solve the problem of low accuracy of test cases, avoid explosion problems, improve coverage, and improve efficiency Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
test Embodiment 1
[0055] Figure 4 Flowchart for automatic generation of test cases based on FBD models. Such as Figure 4 As shown, the automatic generation of test cases based on the FBD model generally includes the following steps:
[0056] 401. Analyzing the requirement specification of the software, and extracting the input and output, logical relationship, and constraint relationship in the requirement specification;
[0057] 402. Establishing a model of the FBD language according to the requirement specification;
[0058] 403. Establishing rules for FBD model conversion data combination table;
[0059] 404. Convert the FBD model into a data combination table according to the FBD model and conversion rules;
[0060] 405. Automatically generate test cases according to the data combination table.
Embodiment 1
[0062] In order to solve the above-mentioned technical problems existing in the prior art, an embodiment of the present invention provides a test case generation method.
[0063] Figure 5 The flow chart of the test case generation method embodiment of the present invention, such as Figure 5 As shown, the test case generation method in this embodiment may specifically include the following steps:
[0064] 500. Establish an FSM model according to the trigger conditions for transitions between all software running states and different software running states in the software requirements specification;
[0065] Specifically, the core of establishing an FSM model is action and state. The state is composed of a set of variables and the values of the variables, representing a definite state of the software under test. An action is a combination of a set of operations or a set of variables and changes in variables. Actions are the triggering conditions for transitions between ...
Embodiment 4
[0171] In order to solve the above-mentioned technical problems existing in the prior art, an embodiment of the present invention also provides a device for generating test cases.
[0172] Figure 18 A schematic structural diagram of an embodiment of the device for generating test cases of the present invention, such as Figure 18 As shown, the test case generation device of this embodiment includes an FSM modeling module 181 , an FBD modeling module 182 , an FBD model conversion FSM model module 183 , and an automatic test case generation module 184 .
[0173] The FSM modeling module 181 is used to establish a finite state machine model according to the trigger conditions of transitions between all software running states and different software running states in the software requirements specification;
[0174] The FBD modeling module 182 is used to establish a function block diagram model based on a function block diagram language based on the input and output in the softwa...
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