Homework 8: Chapters 14 and 16 Questions, due 10/31

Objective: To understand testing practices and Web Engineering

Please do the following problems from the end of Chapter 14 (page 427):

14.1. Myers [MYE79] uses the following program as a self-assessment of one’s ability to specify adequate testing: A 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. Develop a set of test cases that you feel will adequately test this program.

14.2. Design and implement the program (with error handling where appropriate) specified in Problem 14.1.
- or -
14.4. Select a software component that you have designed and implemented recently.

Then, whichever program you choose, derive a flow graph for the program and apply basis path testing to develop test cases that will guarantee that all statements in the program have been tested. Execute the cases and show your results.

14.10. Will exhaustive testing (even if it is possible for very small programs) guarantee that the program is 100 percent correct?

14.12. Why do we have to retest methods in subclasses that are inherited from an existing class, if the existing class's methods have already been thoroughly tested? Can we use the test cases designed for the existing class?

Please do the following problems from the end of Chapter 16 (pages 480-481):

16.1. Are there other generic attributes that differentiate WebApps from more conventional software applications? Try to name two or three.

16.2. How do you judge the "quality" of a Web site? Make a prioritized list of 10 quality attributes that you believe are most important.

16.4. Using an actual Web site as an example, illustrate the different manifestations of WebApp "content."

16.7. Make a list of "risks" that would be likely during the development of a new e-commerce application that is designed to sell mobile phones and service directly over the Web.

E-mail me your answers at: cpersiko@ccsf.edu

Return to main CS 177 page