Test Generation from Requirements
CPU 1
CPU 2
CPU 3
{
{
PR 1
PR 2
{
{
M 20
M 23
M 30
{
{
RAM 256
RAM 512
RAM 1G
{
{
Fig. 2.13 Possible configurations of a computer system sold by a web-based com-
pany: CPU: CPU configuration; PR, printer; M, monitor and RAM, memory
upgrade.
Example 2.19: Let us consider the task of test generation for a
GUI-based computer purchase system. A Web-based company is
selling computers (CPU), printers (PR), monitors (M), and ad-
ditional memory (RAM). An order configuration consists of one
to four items as shown in Figure 2.13. The GUI consists of four
windows for displaying selections from CPU, Printer, Monitor,
and RAM and one window where any free giveaway items are
displayed.
For each order, the buyer may select from three CPU models,
two printer ...