Testing Assignment
In this assignment, you are required to test 3 programs:
Each program is coded better than the previous one for error testing and style.
Create a testing report for each program that answers the following questions.
HTGuessing.java
- white box test the entire game. What appears to be going wrong? How should
the code be fixed for each error (or should it?)
- black box test the calcGuess method. You can vary the input to this method
by entering different things into the textField. Make a chart to record what
input works and what doesn't. How should the code be fixed for each error
(or should it?)
- find style errors in the code. What variable names can be improved? Is the
code indented? Does the code have enough methods? Do all methods have pre
and post conditions? Are there enough comments?
HTGuessing2.java
- this code has all of the same errors as the last one, so you don't need
to restate them.
- Why is this program a superior design to the last one?
House.java
- black box test the littlehouse() method. You can input to this method by
entering different things in the text field. Make a chart to record what input
works and what doesn't. What error messages appear?