Desk Checking: Troubleshooting Techniques
Desk Checking: Troubleshooting Techniques
Troubleshooting Techniques
DESK CHECKING
• A Desk Check concentrates on the value of variables and the logic i.e. what is
the value of variable x after statement n; what is the next statement to be
executed? A Test Plan focuses on the values of inputs and outputs required to
test a program without concern for the internal workings i.e. are the results
(outputs) correct for the inputs?.
EXAMPLE 1
PROBLEM DESCRIPTION:
C A L C U L AT E T H E D I S C O U N T E D
PRICE OF AN ITEM PURCHASED.
3 200 * 10 / 100 = 20
4 200 - 20 = 180
5 discountPrice = 180
6
EXAMPLE 2
PROBLEM DESCRIPTION:
C A L C U L AT E T H E D I S C O U N T E D
PRICE OF AN ITEM PURCHASED.
CUSTOMERS RECEIVE A
DISCOUNT OF 15% ON AN ITEM
IF THE PURCHASE PRICE OF THE
ITEM IS OVER £00.
.