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:
- A set of test cases which will ‘visit’ all system states should be created.
- 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.
- 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.
- 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:
- 3 Pieces of Advice While Creating Test Cases[4]
- Why Test Cases Should Be Designed?[5]
- How to Begin Writing Test Cases?[6]
Endnotes:- web application testing: https://qatestlab.com/expertise/types-of-applications/web-application-testing/
- mobile testing: http://mobile.qatestlab.com/
- functional testing: https://qatestlab.com/services/We-Are-Professionals-in/functional-testing/
- 3 Pieces of Advice While Creating Test Cases: https://blog.qatestlab.com/2016/09/29/creating-test-cases/
- Why Test Cases Should Be Designed?: https://blog.qatestlab.com/2016/02/11/designed-test-cases/
- 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/
Copyright ©2024 QATestLab Blog unless otherwise noted.