Quality Assurance and Project Management

Dec 20 2016   11:37PM GMT

State Transition Testing – A Dynamic Testing Technique

Jaideep Khanduja Jaideep Khanduja Profile: Jaideep Khanduja

Software testing

Mastering State Transition Testing Technique is like learning to drive a car. You need to be patient while learning and practicing. But once you become proficient, everything becomes quite easy. It is a dynamic testing technique, unlike other techniques we use. This technique is quite beneficial in two conditions:

  • When you define the system in a finite number of states, and
  • The rules of the system control the transition between these states

Hence, the technique is useful where you consider every transforming feature of a system as a state. In such cases, the rules of thë software will govern these transformations. There are three key components in State Transition Testing. These are Original State, Action, and Final State. So whenever there is a transformation from an original state to final state, there is an action or event. And definitely, there is an input that triggers this action or event which results in an output.

State Transition Testing

State Transition Testing

Think of a scenario where you mark your attendance in your organization with the help of a swipe card. And, in fact, the same card provides you accessibility. If you swipe your card at entry, it marks your ‘in’ and automatically opens the door for you to enter. Similarly, at the exit when you swipe the same card it marks you ‘out’ and opens thë door automatically for you to move out of the building. Now let us understand State Transition Testing with the help of following steps:

  1. You are at the entry gate.
  2. Swiping your card marks your attendance and opens the door for you to enter the office.
  3. You enter and the gate closes after the stipulated time.
  4. You slide your card outside to your friend Sam to use the same card again for his entry.
  5. Sam swipes your card at the same entry point.
  6. This time there is no action and the gate does not open.

You swipe your card first time. It marks your attendance and lets you enter. Next time, you try the same action through Sam but this time it doesn’t open the door. So this time the transition, that is causing the change in state is the earlier entry.

Image source: testing excellence

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: