Posts

Showing posts from December 7, 2017

State Transition - Switch Coverage Explained

Image
State Transition In this post, I would like to explain more about State transition Testing and 'N- Switch' Coverage. Let us consider sample question below and try to solve it. Q: Given the following state transition Which of the following series of state transitions below will provide 0-switch coverage? Answers: i) A, B, E, B, C, F, D. ii) A, B, E, B, C, F, F. iii) A, B, E, B, C, D. iv) A, B, C, F, F, D. Before jumping on to solving this question, Lets get concept of N-switch in this particular example its  0-switch . What do you think is this 0- switch ? If every  valid  transition is tested considering  one transition at a time  then, this is known as “ 0-switch ” coverage. If you test a series of transitions through more than one state. If you covered all of the pairs of two valid transitions, you would have “1-switch” coverage, covering the sets of 3 transitions would give “2-switch” coverage, etc. 0- Switch Coverage I tried to draw single