State transition diagram

All parameters are valid.
There are constraints between the parameters (constraints between functions, constraints between states)

                                 - state transition diagram

Depth-first drawing method
Find a function name / status name as the entrance.
Draw vertically from the first column according to the business matrix, and store the reachable items in the next row of the entrance
. All other
functions are marked out. A function is only drawn once, and then it is marked out until it reaches the reachable item of the last function.


Advantages and disadvantages of the state transition diagram Advantages: Ensure that the reachable items of each function / state are covered.
Disadvantages: Cannot cover invalid paths

The analysis interface shows the relationship and characteristics of the input parameters.
All the parameters of the interface are valid, and there is no interval range—X—equivalence class, boundary value
. There is no one between the parameters and the other must be—X—judgment table
Effective parameter combinations will output different results. Part of the parameters in the requirements can be combined, and some can not be combined, such as forward and backward are mutually exclusive—X—orthogonal test
does not cross multiple interfaces—X—process analysis method

 

Example of state transition diagram:

Test case:

State transition diagram practice:              
1. First understand the matrix              
2. First select a certain state (the state that can reach the most), and list the states to which it can migrate in order below  
3. Then start from the bottom left and list the states to which they can migrate in order. If there is any duplication, erase  
4. Do not repeat the leftmost column (not counting the last row)          
5. If there is a state that has not been covered, fill in (usually on the first line)      
Test case        
Depth-first migration diagram method:      
1. All states from top to bottom (all migration states are vertical)
2. Starting from the far left, the state it can reach is a test case

 

 

 

 

 

 

 

发布了29 篇原创文章 · 获赞 1 · 访问量 585

Guess you like

Origin blog.csdn.net/wennie11/article/details/105007525