Name ________________________________________
1. Select two classes, that are related via inheritance, from your software application. (choose ones that you are not using for homework). For the superclass:
a) Construct a one-way switch cover of test cases for the state model of the class.
b) Construct a set of specification-based test cases.
c) Construct a set of structurally-based test cases.
d) For each set of test cases, describe the criteria by which the set is considered "adequate".
e) Which of the above test cases could be considered interaction test cases? Why?
f) Perform the HIT analysis to construct the "inherited" portion of the test suite for the subclass.
2. Apply the techniques we have learned so far this semester and describe how you would construct test cases to test a Unix script that takes a directory as an argument and removes all files within the directory that have suffixes, such as .bak or .tmp, that indicate they are garbage files. List several potential test cases.
3. Give a step by step procedure for testing the validity of an Object Interaction Diagram (OID) given the class's state model and the system's object model as input. Give a list of criteria for which you will be testing and identify in your procedure how each criteria is evaluated.
4. List similarities among state-based, specification-based and structurally-based test cases. List differences.
5. Describe the contents of a test plan for a project. How will this plan differ for a project using an iterative approach as opposed to a waterfall approach?
Points are deducted on discussion questions for extraneous material in answers.
Be certain to answer specifically all parts of all questions.
I have neither given nor received help on this exam.