Managing the Testing Process: Practical Tools and Techniques for Managing Hardware and Software Testing
by Rex Black
3.9. Exercises
You are responsible for the System Test phase for a calculator program, as discussed in Chapters 1 and 2. Write a test case for the multiplication feature (assume standard rather than scientific mode) in three formats:
The sequential-step template.
The screen-oriented template.
The IEEE 829 template.
How do the three test cases compare?
The other dyadic operators (those that take two operands like addition, division, and subtraction) can be tested using the same format. How would you change your approach for the unary operators (those that take one operand like square root, inverse, and change sign)?
The expected result for a calculator must be known very precisely to ascertain pass or fail status for tests of mathematical correctness. What if we were testing the user interface (appearance, functionality, etc.) of the calculator? Can we describe precisely all the attributes that make a user interface good? Comment on whether we can describe precise pass and fail criteria for user interface tests, and whether pass or fail status is an absolute for user interface tests.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access