State Transition Testing Technique

State Transition Testing Technique

State Transition Testing is software testing performed to check the change in the application’s state under varying input. The condition of input passed is changed, and the state change is observed.

In State Transition Testing, a black box testing technique, testers actively carry out tests to observe the behavior of the system or application for a sequence of differing input conditions. In this particular kind of testing, testers provide both positive and negative input values, then observe and study the system’s behavior in response to these inputs.

Objectives:

The objective of State Transition testing is:

  • To test the behavior of the system under varying input.
  • To test the dependency on the values in the past.
  • To test the change in the transition state of the application.
  • To test the performance of the system.

Transition States:

  • Change Mode: When you activate this mode, it moves the display mode from TIME to DATE.
  • Reset: When the display mode is TIME or DATE, reset mode sets them to ALTER TIME or ALTER DATE, respectively.
  • Time Set: When this mode is activated, the display mode changes from ALTER TIME to TIME.
  • Date Set: When this mode is activated, the display mode changes from ALTER DATE to DATE.

State Transition Diagram:

State Transition Diagram shows how the system’s state changes on specific inputs.

It has four main components:

  1. States
  2. Transition
  3. Events
  4. Actions

Advantages:

  • helps in understanding the behavior of the system.
  • gives the proper representation of the system behavior.
  • covers all the conditions.

Disadvantages:

  • The performance can only occur in some specific places.
  • is only sometimes reliable.

Watch video tutorial below on State Transition Testing Technique