How to Create Test Cases Using State-Transition Diagrams?

by Nataliia Vasylyna | March 1, 2016 11:03 am

State-transition diagrams are not widely used by the specialists of software testing company. But for certain, they simplify the execution of web application testing[1] and mobile testing[2]. Moreover, diagrams also accelerate the testing procedure.

State-transition diagrams demonstrate the peculiarities of system functionality in a form of notation. As a result, it is easier for testers to create test cases needed to perform functional testing[3].

If a tester uses state-transition diagram to create test cases, he will cover several levels of system functionality. There are four such levels.

4 Levels of Test Case Coverage:

  1. A set of test cases which will ‘visit’ all system states should be created.
  2. A tester should design test cases which will trigger all events. Sometimes tests can be the same to check the state of system and happened event.
  3. All possible paths should be covered by a set of test cases. But if a diagram has a loop, then it is impossible to define the number of available paths.
  4. A tester should write test cases which will check all transitions. It is recommended to perform software testing at this particular level.

Besides diagrams, the state-transition tables can be used during test case creation. One should remember that state-transition diagram and table are not used if the system does not change the state and does not respond to outside event.

Learn more from QATestLab

Related Posts:

Endnotes:
  1. web application testing: https://qatestlab.com/expertise/types-of-applications/web-application-testing/
  2. mobile testing: http://mobile.qatestlab.com/
  3. functional testing: https://qatestlab.com/services/We-Are-Professionals-in/functional-testing/
  4. 3 Pieces of Advice While Creating Test Cases: https://blog.qatestlab.com/2016/09/29/creating-test-cases/
  5. Why Test Cases Should Be Designed?: https://blog.qatestlab.com/2016/02/11/designed-test-cases/
  6. How to Begin Writing Test Cases?: https://blog.qatestlab.com/2014/12/25/how-to-begin-writing-test-cases/

Source URL: https://blog.qatestlab.com/2016/03/01/create-test-cases/