state transition testing is known as state based code example
Example: what is state transition testing
Using state transition testing,
we pick test cases from an application
where we need to test different system
transitions. We can apply this when an
application gives a different output for
the same input, depending on what has
happened in the earlier state.