Docsity

Assignment 6 for Software Development Process | CS 6300, Assignments of Computer Science

Toggle sidebar
bg1
CS 6300 :Software Development Process
Fall 2005
Assignment 6
Due: In class on 11/22
Your new position as Test Manager requires that you establish a set of requirements that
developers will use for unit testing of the software that they write. Before you establish
these requirements, you want to assess the fault-detection ability, expense, tool
availability, etc. of various techniques that have been proposed in the literature.
To do this, you will use the following program, called tritype. The specification for
tritype is as follows:
This program reads three integer values. The three values are interpreted as
representing the lengths of the sides of a triangle. The program prints a message
that states whether the triangle is scalene, isosceles, or equilateral.
Using tritype, do the following.
1. Black-box test suite
a. Without considering the code, create a black-box test suite for tritype
using the specification given above.
b. Call this TestSuite1
2. Statement-adequate test suite
a. Using the code for tritype , run tritype with TestSuite1 and measure its
statement coverage.
b. Augment TestSuite1 with additional test cases to achieve statement
coverage of tritype. Call this augmented test suite TestSuite2.
3. Basis-path-adequate test suite
a. Create the control-flow graph for tritype.
b. Using the control-flow graph compute the cyclomatic complexity of
tritype.
c. Using the code for tritype , run tritype with TestSuite2 and measure its
basis-path coverage.
d. Augment TestSuite2 with additional test cases to achieve basis-path
coverage of tritype. Call this augmented test suite TestSuite3.
4. Multiple-condition-adequate test suite
a. Compute the conditions required for multiple-condition coverage of
tritype.
b. Using the code for tritype , run tritype with TestSuite3 and measure its
multiple-condition coverage.
c. Augment TestSuite3 with additional test cases to achieve multiple-
condition coverage of tritype. Call this augmented test suite
TestSuite4.
pf2

Partial preview of the text

Download Assignment 6 for Software Development Process | CS 6300 and more Assignments Computer Science in PDF only on Docsity!

CS 6300 :Software Development Process

Fall 2005

Assignment 6

Due: In class on 11/

Your new position as Test Manager requires that you establish a set of requirements that developers will use for unit testing of the software that they write. Before you establish these requirements, you want to assess the fault-detection ability, expense, tool availability, etc. of various techniques that have been proposed in the literature. To do this, you will use the following program, called tritype. The specification for tritype is as follows: This program reads three integer values. The three values are interpreted as representing the lengths of the sides of a triangle. The program prints a message that states whether the triangle is scalene, isosceles, or equilateral. Using tritype, do the following.

  1. Black-box test suite a. Without considering the code, create a black-box test suite for tritype using the specification given above. b. Call this TestSuite
  2. Statement-adequate test suite a. Using the code for tritype , run tritype with TestSuite1 and measure its statement coverage. b. Augment TestSuite1 with additional test cases to achieve statement coverage of tritype. Call this augmented test suite TestSuite2.
  3. Basis-path-adequate test suite a. Create the control-flow graph for tritype. b. Using the control-flow graph compute the cyclomatic complexity of tritype. c. Using the code for tritype , run tritype with TestSuite2 and measure its basis-path coverage. d. Augment TestSuite2 with additional test cases to achieve basis-path coverage of tritype. Call this augmented test suite TestSuite3.
  4. Multiple-condition-adequate test suite a. Compute the conditions required for multiple-condition coverage of tritype. b. Using the code for tritype , run tritype with TestSuite3 and measure its multiple-condition coverage. c. Augment TestSuite3 with additional test cases to achieve multiple- condition coverage of tritype. Call this augmented test suite TestSuite4.

For any of 2-4, you can (a) perform the tasks manually, or (b) automate the process by writing a program to perform the task or by finding an existing tool that will do it for you. At the beginning of class on the due date, submit the following (all typed):

  1. For black-box testing a. TestSuite
  2. For statement testing a. Statement coverage achieved by TestSuite b. TestSuite
  3. For basis-path testing a. Control-flow graph b. Computation of cyclomatic complexity c. Basis-path coverage of TestSuite d. TestSuite
  4. For multiple-condition testing a. The list of conditions you computed b. Multiple-condition coverage of TestSuite c. TestSuite
  5. A discussion of the results of your experiment (e.g., difficulty of measuring adequacy, expense of measuring adequacy,inadequacy of your initial test suite, ability of the various techniques to help uncover errors).
  6. A decision about what requirement(s) you will establish for your developers, and why you made this decision. To help with your decision and discussion, you can select a type of software that your company develops.