Sie sind auf Seite 1von 19

Example Test Case Documentation

Quick Start step 6: Creating requirements


Introduction
This document provides an overview of functional test cases for the ClassicsCD Web project use case,
Checkout.
1.1

Purpose
This document enumerates test cases for each of the flows described in the Use Case Specification:
Checkout documents.

1.2

Scope
The test cases described in this document cover all techniques by which a valid ClassicsCD member can
purchase by credit card the items in his or her shopping cart.

1.3

Definitions, Acronyms and Abbreviations


Refer to project Glossary document.

1.4

References

1.5

Use Case Specification: Checkout

ClassicsCD Web Shop Test Plan

Overview
This subsection should describe what the rest of the Functional Test Cases document contains and explain
how the document is organized.

Test Cases
In each of these test cases, the results are verified by visual inspection.
1.6

Test Case Group 1: User Interface

TC ID
UITC_Ck
Ot1
UITC_Ck
Ot2

Condition Being
Tested
Display member
login page
Order Summary
page

Expected Result
Displays CustomerID and Password text boxes.
Page displaying information for each CD selection:
Quantity
Title Composer: Composition
Unit Price
Price
Page then displays the following information:
Subtotal
Tax
Total
Shipping address
Last four digits of the purchasing
members credit card
E-mail address text box for notification
of order
Place Order Button

UITC_Ck
Ot3

Inspect order
confirmation page

Page displaying text string confirming the order


and containing the order ID.

1.7

Test Case Group 2: Checkout Functionality

TC ID

Condition being
tested

CustomerID / Cart
Password
Contents /
Qty
Empty string / Mozart
password
Symphonie
Nr. 34 / 1
Empty string / Mozart
Empty string
Symphonie
Nr. 34 / 1

FTC_Ck
Ot1

Password text box


encodes entry

FTC_Ck
Ot2

Blank customer ID
with blank
password

FTC_Ck
Ot3

Invalid customerID
with valid
password

empty string /
jmoore

Mozart
Symphonie
Nr. 34 / 1

FTC_Ck
Ot4

Valid CustomerID
and Password with
more than 1 item in
the shopping cart.

jmoore /
empty string

Mozart
Symphonie
Nr. 34 / 1

FTC_Ck
Ot5

Valid customerID
and password with
1 item in the
shopping cart.

jmoore /
jmoore

Mozart
Symphonie
Nr. 34 / 1

FTC_Ck
Ot6

Valid customerID
and password with
3 CD selections in
the shopping cart

jmoore /
jmoore

Bach: Violin
Concertos
Beethoven:
Symphonie
Nr. 5
Mozart:

Expected Result
Password text box
should have a string
****** displayed.
Login page displays text
string Your
CustomerID/Password
combination is not
valid.
Login page displays text
string Your
CustomerID/Password
combination is not
valid.
Login page displays text
string Your
CustomerID/Password
combination is not
valid.
Order Summary page
displays greeting: Hello
Jim, Here is a summary
of your order.
Quantity: 1
Title Mozart Symphonie
Nr. 34
Unit Price: $14.95
Price: $14.95
SubTotal: $14.95
Tax: $0.96
Total: $15.91
Ship To Address:
24 Eagle Circle
Philadelphia, PA 19102
Credit Card 4 digits:
1478
Estimated days for
shipment: 6 business
days
Order Summary page
displays greeting: Hello
Jim, Here is a summary
of your order.
Quantity: 2
Title: Bach: Violin

TC ID

FTC_Ck
Ot7
FTC_Ck
Ot8

FTC_Ck
Ot9

Condition being
tested

Valid customer ID
and password with
empty cart
Valid member
places order

Check to see if
order ID is
incrementing and
unique

CustomerID / Cart
Password
Contents /
Qty
Klavierkonzer
t in D

jmoore /
jmoore

Mozart
Symphonie
Nr. 34 / 1

jmoore /
jmoore

Mozart
Symphonie
Nr. 34 / 1

Expected Result
Concertos
Unit Price: $14.99
Price: $29.98
Title Beethoven:
Symphonie Nr. 5
Unit Price: $15.99
Price: $15.99
Title: Mozart:
Klavierkonzert in D
Unit Price: $16.95
Price: $16.95
SubTotal: $62.92
Tax: $3.78
Total: $66.70
Ship To Address:
24 Eagle Circle
Philadelphia, PA 19102
Credit Card 4 digits:
1478
Estimated days for
shipment: 6 business
days
Text string displays
message Your
shopping cart is empty.
Order confirmation
page displays text string
Your order has been
placed. For future
reference, your order ID
is XXXX. Thanks for
shopping at
ClassicsCD.com
Order confirmation
page displays text string
Your order has been
placed. For future
reference, your order ID
is XXXX + 1. Thanks for
shopping at
ClassicsCD.com

Quick Start step 6: Creating requirements


Introduction
This document provides an overview of functional test cases for the ClassicsCD Web project use case,
Browse Catalog.
1.8

Purpose
This document enumerates test cases for each of the flows described in the Use Case Specification: Browse
Catalog document.

1.9

Scope
The test cases described in this document cover all techniques by which the visitor to ClassicsCD.com
locates a specific CD title of interest. Included are browsing the catalog, selecting the daily special, and
performing a search on each of the available search criteria.

1.10

Definitions, Acronyms and Abbreviations


Refer to project Glossary document.

1.11

References
Use Case Specification: Browse Catalog

1.12

ClassicsCD.com Test Plan

Overview
[This subsection should describe what the rest of the Functional Test Cases document contains and explain
how the document is organized.]

Test Cases
In each of these test cases, the results are verified by visual inspection.
1.13

Test Case Group 1: User Interface


TC ID

Condition Being Tested

Expected Result

UITC_Loc1

Display catalog page

List of CDs on a single page. Each entry in the list displays in this
format:
Composer: Composition Price <Cart Icon>
Performer, Conductor

UITC_Loc2

Displays CD details page

Page displaying information for 1 CD, including:


Picture of the CD Jewel Case
Current Price
<Cart icon>
Composer: Composition
Performer
Conductor
Comments or other descriptive information

1.14

Test Case Group 2: Catalog Search Functionality


TC ID

Condition being tested

Search type

Search String

Expected Result

FTC_Loc1

Search for CD by
composer - the search

Composer

Bach

List of all CDs from BACH,

TC ID

Condition being tested

Search type

Search String

string is a valid, existing


value

Expected Result
There are currently at least 2
CDs in the catalog meeting
this criterion.

FTC_Loc2

Search for CD by
Composition - the search
string is a valid, existing
value

Composition

Violin Concertos

List of at least 2 CDs titled


Violin Concertos

FTC_Loc3

Search for CD by
Performer - the search
string is a valid, existing
value

Performer

Philharmonic

List of at least 3 CDs


recorded by orchestras whose
name includes
Philharmonic

FTC_Loc4

Browse CD - search
criteria does not exist in
catalog

Performer

Beatles

No CDs are displayed

FTC_Loc5

Search string is partial


name

Composition

Violin

List of 2 CDs titled Violin


Concertos

FTC_Loc6

Search string will return


multiple names

Composer

List of CDs composed by


both Bach and Beethoven

Quick Start step 6: Creating requirements


Introduction
This document provides an overview of functional test cases for the ClassicsCD Web project use case,
Arrange Shipment.
1.15

Purpose
This document enumerates test cases for each of the flows described in the Use Case Specification:
Arrange Shipment document.

1.16

Scope
The test cases described in this document cover the information that is to be sent to the warehouse system
and how the warehouse system should respond with the estimated delivery date.

1.17

Definitions, Acronyms and Abbreviations


Refer to project Glossary document.

1.18

References
Use Case Specification: Arrange Shipment

1.19

ClassicsCD Web Shop Test Plan

Overview

[This subsection should describe what the rest of the Functional Test Cases document
contains and explain how the document is organized.]
Test Cases
In each of these test cases, the results are verified by visual inspection.
1.20

Test Case Group 1: User Interface

TC ID
UITC_AS1

Condition Being
Tested
Order summary
page with
estimated delivery
date .

Expected Result
Page displaying information for each CD selection:
Quantity
Title Composer: Composition
Unit Price
Price
Page then displays the following information:
Subtotal
Tax
Total
Shipping address
Last four digits of the purchasing members credit
card
Estimated days for delivery
E-mail address text box for notification of order
Place Order Button

UITC_A
S2

Order confirmation
page is displayed
correctly

Page displaying text string confirming the order


and containing the order ID.

1.21

Test Case Group 2: Arrange Shipment Functionality

TC ID

Condition being
tested

FTC_A
S1

Generates
estimated delivery
given valid
customer ID, valid
password and at
least one item in
the shopping cart.

FTC_A
S2

Valid member
places order .

CustomerID / Cart
Password
Contents /
Qty
jmoore /
Mozart
jmoore
Symphonie
Nr. 34 / 1

jmoore /
jmoore

Mozart
Symphonie
Nr. 34 / 1

Expected Result
Order Summary page
displays greeting: Hello
Jim, Here is a summary
of your order.
Quantity: 1
Title Mozart Symphonie
Nr. 34
Unit Price: $14.95
Price: $14.95
SubTotal: $14.95
Tax: $0.96
Total: $15.91
Ship To Address:
24 Eagle Circle
Philadelphia, PA 19102
Credit Card 4 digits:
1478
Estimated days for
shipment: 6 business
days
Order confirmation
page displays text string
Your order has been
placed. For future
reference, your order ID
is XXXX. Thanks for
shopping at
ClassicsCD.com

Quick Start step 6: Creating requirements


Introduction
This document provides an overview of functional test cases for the ClassicsCD Web project use case,
Checkout.
Purpose

This document enumerates test cases for each of the flows described in the Use Case Specification:
Checkout documents.
Scope

The test cases described in this document cover all techniques by which a valid ClassicsCD member can
purchase by credit card the items in his or her shopping cart.
Definitions, Acronyms and Abbreviations

Refer to project Glossary document.


References

Use Case Specification: Checkout

ClassicsCD Web Shop Test Plan


Overview

This subsection should describe what the rest of the Functional Test Cases document contains and explain
how the document is organized.

Test Cases
In each of these test cases, the results are verified by visual inspection.
Test Case Group 1: User Interface

TC ID
UITC_Ck
Ot1
UITC_Ck
Ot2

Condition Being
Tested
Display member
login page
Order Summary
page

Expected Result
Displays CustomerID and Password text boxes.
Page displaying information for each CD selection:
Quantity
Title Composer: Composition
Unit Price
Price
Page then displays the following information:
Subtotal
Tax
Total
Shipping address
Last four digits of the purchasing
members credit card
E-mail address text box for notification
of order
Place Order Button

UITC_Ck
Ot3

Inspect order
confirmation page

Page displaying text string confirming the order


and containing the order ID.

Test Case Group 2: Checkout Functionality

TC ID

Condition being
tested

CustomerID / Cart
Password
Contents /
Qty
Empty string / Mozart
password
Symphonie
Nr. 34 / 1
Empty string / Mozart
Empty string
Symphonie
Nr. 34 / 1

FTC_Ck
Ot1

Password text box


encodes entry

FTC_Ck
Ot2

Blank customer ID
with blank
password

FTC_Ck
Ot3

Invalid customerID
with valid
password

empty string /
jmoore

Mozart
Symphonie
Nr. 34 / 1

FTC_Ck
Ot4

Valid CustomerID
and Password with
more than 1 item in
the shopping cart.

jmoore /
empty string

Mozart
Symphonie
Nr. 34 / 1

FTC_Ck
Ot5

Valid customerID
and password with
1 item in the
shopping cart.

jmoore /
jmoore

Mozart
Symphonie
Nr. 34 / 1

FTC_Ck
Ot6

Valid customerID
and password with
3 CD selections in
the shopping cart

jmoore /
jmoore

Bach: Violin
Concertos
Beethoven:
Symphonie
Nr. 5
Mozart:
Klavierkonzer
t in D

Expected Result
Password text box
should have a string
****** displayed.
Login page displays text
string Your
CustomerID/Password
combination is not
valid.
Login page displays text
string Your
CustomerID/Password
combination is not
valid.
Login page displays text
string Your
CustomerID/Password
combination is not
valid.
Order Summary page
displays greeting: Hello
Jim, Here is a summary
of your order.
Quantity: 1
Title Mozart Symphonie
Nr. 34
Unit Price: $14.95
Price: $14.95
SubTotal: $14.95
Tax: $0.96
Total: $15.91
Ship To Address:
24 Eagle Circle
Philadelphia, PA 19102
Credit Card 4 digits:
1478
Estimated days for
shipment: 6 business
days
Order Summary page
displays greeting: Hello
Jim, Here is a summary
of your order.
Quantity: 2
Title: Bach: Violin
Concertos
Unit Price: $14.99

TC ID

Condition being
tested

CustomerID / Cart
Password
Contents /
Qty

Expected Result
Price: $29.98
Title Beethoven:
Symphonie Nr. 5
Unit Price: $15.99
Price: $15.99
Title: Mozart:
Klavierkonzert in D
Unit Price: $16.95
Price: $16.95

FTC_Ck
Ot7
FTC_Ck
Ot8

FTC_Ck
Ot9

Valid customer ID
and password with
empty cart
Valid member
places order

Check to see if
order ID is
incrementing and
unique

jmoore /
jmoore

Mozart
Symphonie
Nr. 34 / 1

jmoore /
jmoore

Mozart
Symphonie
Nr. 34 / 1

SubTotal: $62.92
Tax: $3.78
Total: $66.70
Ship To Address:
24 Eagle Circle
Philadelphia, PA 19102
Credit Card 4 digits:
1478
Estimated days for
shipment: 6 business
days
Text string displays
message Your
shopping cart is empty.
Order confirmation
page displays text string
Your order has been
placed. For future
reference, your order ID
is XXXX. Thanks for
shopping at
ClassicsCD.com
Order confirmation
page displays text string
Your order has been
placed. For future
reference, your order ID
is XXXX + 1. Thanks for
shopping at
ClassicsCD.com

Quick Start step 6: Creating requirements


Introduction
This document provides an overview of functional test cases for the ClassicsCD Web project use case,
Shop for CD.
1.22

Purpose
This document enumerates test cases for each of the flows described in the Use Case Specification: Shop
for CD document.

1.23

Scope
The test cases described in this document cover all techniques by which the visitor to ClassicsCD.com can
select and purchase a CD. While the user must perform the browse use case to locate a specific CD of
interest, the shop use case is confined to actually adding the CD to the customers cart. Included are adding
CD selections to the cart, removing CD selections from the cart and viewing the current contents of the
shopping cart. The user may purchase multiple copies of a single CD buy adding the CD selection to the
cart multiple times. The process of removing a CD selection from the shopping cart eliminates the entire
quantity rather than reducing the quantity by one.

1.24

Definitions, Acronyms and Abbreviations


Refer to project Glossary document.

1.25

References

1.26

Use Case Specification: Shop for CD

ClassicsCD Web Shop Test

Overview

[This subsection should describe what the rest of the Functional Test Cases document
contains and explain how the document is organized.]
Test Cases
1.27

Test Case Group 1: User Interface

TC ID
UITC_Sho
p1

1.28

Condition Being
Tested
Display Shopping
Cart page

Expected Result
Page displaying information for all items in the cart
including:
List of CDs on a single page, Sub Total, Tax and
Total. Each entry in the list displays in this format:
Qty
Composer: Composition
Unit Price
Price
<Remove from Cart hyperlink>

Test Case Group 2: Shop Functionality

TC ID

Condition being

CD Title

Expected Result

FTC_Sho
p1

FTC_Sho
p2

tested
Add CD selection
from catalog page

Bach: Violin
Concertos

Shopping cart should display Bach:


Violin Concertos.
Quantity: 1
Unit price, Price and Subtotal
$14.99.
Tax: $0.90
Total: $15.89

Add CD selection
from CD details
page

Beethoven:
Symphonie
Nr. 7

Shopping cart should display


Beethoven: Symphonie Nr. 7.
Quantity: 1
Unit price, Price and Subtotal
$16.95.
Tax: $1.02
Total: $17.97

FTC_Sho
p3

Add multiple copies


of a single CD
selection.

FTC_Sho
p4

View an empty
shopping cart

FTC_Sho
p5

Add a single CD
selection and then
remove it from the
cart

Haydn:
Violin
Concertos

Beethoven:
Symphonie
Nr. 5

*tax should be calculated by state. Is


this too detailed then?
Shopping cart should display Haydn:
Violin Concertos.
Quantity: 4
Unit price: $14.99
Price: $59.96
Subtotal: $59.96
Tax: $3.60
Total: $63.56
Display text string Your shopping
cart is empty.
Before removing:
Shopping cart should display
Beethoven: Symphonie Nr. 5.
Quantity: 1
Unit price: $15.99
Price: $15.99
Subtotal: $15.00
Tax: $0.96
Total: $16.95
After removing:
Display text string Your shopping cart is empty.

FTC_Sho
p6

Add multiple copies


of a single CD
selection and then
remove them from
the cart

Beethoven:
Symphonie
Nr. 5

Before removing:
Shopping cart should display
Beethoven: Symphonie Nr. 5.
Quantity: 4
Unit price: $15.99
Price: $63.96
Subtotal: $63.96
Tax: $3.84
Total: $67.80

After removing:
Display text string Your shopping cart is empty.

FTC_Sho
p7

Add multiple CD
selections and then
remove a single
selection from the
cart

Beethoven:
Symphonie
Nr. 5
Mozart:
Symphonie
Nr. 34

Before removing:
Shopping cart should display
Beethoven: Symphonie Nr. 5.
Quantity: 4
Unit price: $15.99
Price: $63.96
Mozart: Symphonie Nr. 34
Quantity: 1
Unit price: $14.95
Price: $14.95
Subtotal: $78.91
Tax: $4.73
Total: $83.64
After removing Beethoven
Symphonie Nr. 5
Mozart: Symphonie Nr. 34
Quantity: 1
Unit price: $14.95
Price: $14.95
Subtotal: $14.95
Tax: $0.91
Total: $15.85

Quick Start step 6: Creating requirements


Introduction
This document provides an overview of the test procedures associated with the functional test cases located
in the Test Cases for Use Case: Browse Catalog document.
1.29

Purpose
This document enumerates test procedures for each of the test cases listed in the Test Cases for Use Case:
Browse Catalog..

1.30

Scope
The test procedures described in this document enumerate the actual steps necessary to determine pass / fail
status of each test case listed in the Test Cases for Use Case: Locate CD document. These test procedures
attempt to cover all test cases for which a customer can visit the ClassicsCD.com site and search for a
specific CD.

1.31

Definitions, Acronyms and Abbreviations


Refer to project Glossary document.

1.32

References

1.33

Use Case Specification: Browse Catalog

Functional Test Cases for Use Case: Browse Catalog

ClassicsCD.com Test Plan

Overview
TBD

Test Procedure
Test Procedure ID
Quick Start step 6: Creating requirements

Description: Test procedure configuration for all functional test cases for Use Case: Browse Cat

The following configuration is the most common configuration and is therefore the recommend configuration
executing all test scripts. Deviations from this configuration should be noted.

Configuration Settings
Software
Version: 1.0
Windows Version: 98 SP1, 2000, WinNT 4.0 SP6
Browsers:

Netscape 4.6, I. E. 5

Rational Suite 1.5


Enterprise
Databases MS Access, MS SQL Server 7.0

Hardware
Processor Type: Pentium class

Processor Speed: 133Mhz or bette


performance
Memory: 64 MB minimum

Other:

Test Procedure Execution Information


Test Procedures for Test Case Group 1: User Interface

Step
0
1

TC

Action

UI Control

Value

The user is at the


ClassicsCD.com home page.
The user selects Catalog from
the home page.

Expected
Result
Catalog page
appears with
all the existing
CDs in the
catalog
displayed on
single lines.

The user selects a line item


from the Catalog to display
the details of that item.

Bach: Violin
Concertos

Bach: Violin
Concertos

The correct
detail page for
the CD
selected is
displayed.

Select Catalog from the CD


details page to return to
Catalog page.

Catalog page
appears with
all the existing
CDs in the
catalog
displayed on
single lines.

Select Home from the


Catalog details page.

User is
returned to the
ClassicsCD.co
m homepage.

Test Procedures For Test Group 2: Catalog Search Functionality

Step
0
1

2
3
4

TC

Action

UI Control

Value

The user is at the


ClassicsCD.com
home page.
The user selects
Catalog from the
home page.

The user chooses


search criteria
The user enters
search string.
Initiate search given
the search criteria.

Return to home page.

Expected
Result

Catalog page
appears with
all the existing
CDs in the
catalog
displayed on
single lines.

Search
criteria:
Quick Search
criteria

Composer
Bach
A list of two
CDs is
displayed.
Bach:
Brandenburg
Concertos 1+
3
Bach: Violin
Concertos

Step

TC

The user chooses


search criteria
The user enters
search string.
Initiate search given
the search criteria.

3
4

0
1

2
3

UI Control

Value

The user is at the


ClassicsCD.com
home page.
The user selects
Catalog from the
home page.

Step

Action

Expected
Result

Catalog page
appears with
all the existing
CDs in the
catalog
displayed on
single lines.

Search
criteria:
Quick Search
criteria

Composition
Violin
Concertos
A list of two
CDs is
displayed.
Bach: Violin
Concertos
Haydn: Violin
Concertos.

Return to home page.

TC

Action

UI Control

Value

The user is at the


ClassicsCD.com
home page.
The user selects
Catalog from the
home page.

The user chooses


search criteria
The user enters
search string.

Expected
Result

Catalog page
appears with
all the existing
CDs in the
catalog
displayed on
single lines.

Search
criteria:
Quick Search
criteria

Performer
Beatles

Initiate search given


the search criteria.

Return to home page.

Step

TC

The user chooses


search criteria
The user enters
search string.
Initiate search given
the search criteria.

3
4

0
1

UI Control

Value

The user is at the


ClassicsCD.com
home page.
The user selects
Catalog from the
home page.

Step

Action

No CDs are
displayed.

Expected
Result

Catalog page
appears with
all the existing
CDs in the
catalog
displayed on
single lines.

Search
criteria:
Quick Search
criteria

Composition
Violin
A list of two
CDs is
displayed.
Bach: Violin
Concertos
Haydn: Violin
Concertos.

Return to home page.

TC

Action
The user is at the
ClassicsCD.com home
page.
The user selects Catalog
from the home page.

UI Control

Value

Expected
Result

Catalog page
appears with
all the existing
CDs in the
catalog
displayed on
single lines.

2
3
4

The user chooses search


criteria
The user enters search
string.
Initiate search given the
search criteria.

Return to home page.

Search
criteria:
Quick Search
criteria

Composer
B
A list of CDs
composed by
Bach and
Beethoven is
displayed.

Das könnte Ihnen auch gefallen