-
Some theory
- Model-based testing
- Finite-state machine
- Transition system
- Directed graph
-
A Practitioner's Guide to Software Test Design
- Chapter 7: State-Transition Testing
-
My MindMap
- About Test Design Technique: State Transition Testing
- Choose the appropriate feature for testing
- Download and install the yEd Graph Editor, to create your diagrams
-
Install Java JDK 7 or 8
- Add the variable JAVA_HOME = <java installation folder> (for example, JAVA_HOME = C:\Program Files\Java\jdk1.8.0_112)
- Add %JAVA_HOME% to the current value of variable Path
-
Create in yEd Graph Editor a state and transition diagram for your selected process
-
We take into account the rules for the diagram creation
- Save you diagram (MyTest.graphml)
- Create/select a folder for work, for example Grafwalker
-
Download the distributive GraphWalker-cli in the current folder
- How to use GraphWalker
-
From current folder run the command to generate a test sequence (from command line)
-
For example:%> java -jar graphwalker.jar offline -m MyTest.graphml "random (edge_coverage (100))"
- Here we use:
- random path generator,
- stop condition: edge coverage
- Use appropriate generators and stop conditions
-
We obtain a test sequence
- You can redirect the output to a file