Informatics 43 – Spring, 2016 - Homework 2

Student Name:

Awarded Points / Available Points
10 / Definition of the set of all possible inputs.
20 / Basis #1, subdomains, and test cases
20 / Basis #2, subdomains, and test cases
50 / ASSIGNMENT TOTAL

Turn in this document as a Word file – do not convert it to PDF. Remove all text that is in red.

The set of all possible inputs

If you were testing the QuizAverage function, you might answer:

The set of all lists of numbers.

But you aren’t, so don’t.

The first basis for subdividing the set, and several resulting subdomains

If this were QuizAverage, your first basis might be:

The length of the list of numbers. Resulting subdomains:

·  Lists of length 0.

·  Lists of length 1.

·  Lists of length 2.

·  Lists of length 3 through 5.

·  Lists of length 6 through 15.

·  Lists of length greater than 15.

The second basis for subdividing the set, and several resulting subdomains

If this were QuizAverage, your second basis might be:

How many times the lowest value appears in the list. Resulting subdomains:

·  Lists with one lowest element.

·  Lists with two lowest elements.

·  Lists with three lowest elements.

·  Lists with four or more lowest elements.

Notes to help understand the following testing matrices.

Example: Elements in a list are indicated with [ ]. For instance, [90, 98, 45] is a list with three numbers.

Sometimes in this section students provide information about test case inputs that are used in multiple test cases.


Function / Module / Class / Method being tested: ______

Basis: ______

Subdomains /
Partitions / Test Case Input Data / Expected Output / Result from Execution


Function / Module / Class / Method being tested: ______

Basis: ______

Subdomains /
Partitions / Test Case Input Data / Expected Output / Result from Execution