You are on page 1of 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
Use Case Specification: Checkout
ClassicsCD Web Shop Test Plan
1.5 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 Condition Being Expected Result
Tested
UITC_Ck Display member Displays CustomerID and Password text boxes.
Ot1 login page
UITC_Ck Order Summary Page displaying information for each CD selection:
Ot2 page 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 Inspect order Page displaying text string confirming the order
Ot3 confirmation page and containing the order ID.

1.7 Test Case Group 2: Checkout Functionality


TC ID Condition being CustomerID / Cart Expected Result
tested Password Contents /
Qty
FTC_Ck Password text box Empty string / Mozart Password text box
Ot1 encodes entry password Symphonie should have a string
Nr. 34 / 1 ****** displayed.
FTC_Ck Blank customer ID Empty string / Mozart Login page displays text
Ot2 with blank Empty string Symphonie string Your
password Nr. 34 / 1 CustomerID/Password
combination is not
valid.
FTC_Ck Invalid customerID empty string / Mozart Login page displays text
Ot3 with valid jmoore Symphonie string Your
password Nr. 34 / 1 CustomerID/Password
combination is not
valid.
FTC_Ck Valid CustomerID jmoore / Mozart Login page displays text
Ot4 and Password with empty string Symphonie string Your
more than 1 item in Nr. 34 / 1 CustomerID/Password
the shopping cart. combination is not
valid.
FTC_Ck Valid customerID jmoore / Mozart Order Summary page
Ot5 and password with jmoore Symphonie displays greeting: Hello
1 item in the Nr. 34 / 1 Jim, Here is a summary
shopping cart. 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
FTC_Ck Valid customerID jmoore / Bach: Violin Order Summary page
Ot6 and password with jmoore Concertos displays greeting: Hello
3 CD selections in Beethoven: Jim, Here is a summary
TC ID Condition being CustomerID / Cart Expected Result
tested Password Contents /
Qty
the shopping cart Symphonie of your order.
Nr. 5 Quantity: 2
Mozart: Title: Bach: Violin
Klavierkonzer Concertos
t in D 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
FTC_Ck Valid customer ID Text string displays
Ot7 and password with message Your
empty cart shopping cart is empty.
FTC_Ck Valid member jmoore / Mozart Order confirmation
Ot8 places order jmoore Symphonie page displays text string
Nr. 34 / 1 Your order has been
placed. For future
reference, your order ID
is XXXX. Thanks for
shopping at
ClassicsCD.com

FTC_Ck Check to see if jmoore / Mozart Order confirmation


Ot9 order ID is jmoore Symphonie page displays text string
incrementing and Nr. 34 / 1 Your order has been
unique 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
ClassicsCD.com Test Plan
1.12 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 Bach List of all CDs from BACH,
composer - the search
TC ID Condition being tested Search type Search String Expected Result
string is a valid, existing There are currently at least 2
value CDs in the catalog meeting
this criterion.
FTC_Loc2 Search for CD by Composition Violin Concertos List of at least 2 CDs titled
Composition - the search Violin Concertos
string is a valid, existing
value
FTC_Loc3 Search for CD by Performer Philharmonic List of at least 3 CDs
Performer - the search recorded by orchestras whose
string is a valid, existing name includes
value Philharmonic
FTC_Loc4 Browse CD - search Performer Beatles No CDs are displayed
criteria does not exist in
catalog
FTC_Loc5 Search string is partial Composition Violin List of 2 CDs titled Violin
name Concertos
FTC_Loc6 Search string will return Composer B List of CDs composed by
multiple names 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

ClassicsCD Web Shop Test Plan


1.19 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 Condition Being Expected Result
Tested
UITC_AS1 Order summary Page displaying information for each CD selection:
page with Quantity
estimated delivery Title Composer: Composition
date . 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 Order confirmation Page displaying text string confirming the order
S2 page is displayed and containing the order ID.
correctly
1.21 Test Case Group 2: Arrange Shipment Functionality
TC ID Condition being CustomerID / Cart Expected Result
tested Password Contents /
Qty
FTC_A Generates jmoore / Mozart Order Summary page
S1 estimated delivery jmoore Symphonie displays greeting: Hello
given valid Nr. 34 / 1 Jim, Here is a summary
customer ID, valid of your order.
password and at Quantity: 1
least one item in Title Mozart Symphonie
the shopping cart. 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
FTC_A Valid member jmoore / Mozart Order confirmation
S2 places order . jmoore Symphonie page displays text string
Nr. 34 / 1 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.
o Purpose
This document enumerates test cases for each of the flows described in the Use Case Specification:
Checkout documents.
o 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.
o Definitions, Acronyms and Abbreviations
Refer to project Glossary document.
o References
Use Case Specification: Checkout
ClassicsCD Web Shop Test Plan
o 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.
o Test Case Group 1: User Interface
TC ID Condition Being Expected Result
Tested
UITC_Ck Display member Displays CustomerID and Password text boxes.
Ot1 login page
UITC_Ck Order Summary Page displaying information for each CD selection:
Ot2 page 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 Inspect order Page displaying text string confirming the order
Ot3 confirmation page and containing the order ID.
o Test Case Group 2: Checkout Functionality
TC ID Condition being CustomerID / Cart Expected Result
tested Password Contents /
Qty
FTC_Ck Password text box Empty string / Mozart Password text box
Ot1 encodes entry password Symphonie should have a string
Nr. 34 / 1 ****** displayed.
FTC_Ck Blank customer ID Empty string / Mozart Login page displays text
Ot2 with blank Empty string Symphonie string Your
password Nr. 34 / 1 CustomerID/Password
combination is not
valid.
FTC_Ck Invalid customerID empty string / Mozart Login page displays text
Ot3 with valid jmoore Symphonie string Your
password Nr. 34 / 1 CustomerID/Password
combination is not
valid.
FTC_Ck Valid CustomerID jmoore / Mozart Login page displays text
Ot4 and Password with empty string Symphonie string Your
more than 1 item in Nr. 34 / 1 CustomerID/Password
the shopping cart. combination is not
valid.
FTC_Ck Valid customerID jmoore / Mozart Order Summary page
Ot5 and password with jmoore Symphonie displays greeting: Hello
1 item in the Nr. 34 / 1 Jim, Here is a summary
shopping cart. 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
FTC_Ck Valid customerID jmoore / Bach: Violin Order Summary page
Ot6 and password with jmoore Concertos displays greeting: Hello
3 CD selections in Beethoven: Jim, Here is a summary
the shopping cart Symphonie of your order.
Nr. 5 Quantity: 2
Mozart: Title: Bach: Violin
Klavierkonzer Concertos
t in D Unit Price: $14.99
TC ID Condition being CustomerID / Cart Expected Result
tested Password Contents /
Qty
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
FTC_Ck Valid customer ID Text string displays
Ot7 and password with message Your
empty cart shopping cart is empty.
FTC_Ck Valid member jmoore / Mozart Order confirmation
Ot8 places order jmoore Symphonie page displays text string
Nr. 34 / 1 Your order has been
placed. For future
reference, your order ID
is XXXX. Thanks for
shopping at
ClassicsCD.com

FTC_Ck Check to see if jmoore / Mozart Order confirmation


Ot9 order ID is jmoore Symphonie page displays text string
incrementing and Nr. 34 / 1 Your order has been
unique 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
Use Case Specification: Shop for CD
ClassicsCD Web Shop Test
1.26 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 Condition Being Expected Result
Tested
UITC_Sho Display Shopping Page displaying information for all items in the cart
p1 Cart page 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>

1.28 Test Case Group 2: Shop Functionality


TC ID Condition being CD Title Expected Result
tested
FTC_Sho Add CD selection Bach: Violin Shopping cart should display Bach:
p1 from catalog page Concertos Violin Concertos.
Quantity: 1
Unit price, Price and Subtotal
$14.99.
Tax: $0.90
Total: $15.89

FTC_Sho Add CD selection Beethoven: Shopping cart should display


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

*tax should be calculated by state. Is


this too detailed then?
FTC_Sho Add multiple copies Haydn: Shopping cart should display Haydn:
p3 of a single CD Violin Violin Concertos.
selection. Concertos Quantity: 4
Unit price: $14.99
Price: $59.96
Subtotal: $59.96
Tax: $3.60
Total: $63.56
FTC_Sho View an empty Display text string Your shopping
p4 shopping cart cart is empty.

FTC_Sho Add a single CD Beethoven: Before removing:


p5 selection and then Symphonie Shopping cart should display
remove it from the Nr. 5 Beethoven: Symphonie Nr. 5.
cart 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 Add multiple copies Beethoven: Before removing:
p6 of a single CD Symphonie Shopping cart should display
selection and then Nr. 5 Beethoven: Symphonie Nr. 5.
remove them from Quantity: 4
the cart 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 Add multiple CD Beethoven: Before removing:
p7 selections and then Symphonie Shopping cart should display
remove a single Nr. 5 Beethoven: Symphonie Nr. 5.
selection from the Quantity: 4
cart Mozart: Unit price: $15.99
Symphonie Price: $63.96
Nr. 34
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
Use Case Specification: Browse Catalog
Functional Test Cases for Use Case: Browse Catalog
ClassicsCD.com Test Plan
1.33 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 Hardware
Version: 1.0 Processor Type: Pentium class
Windows Version: 98 SP1, 2000, WinNT 4.0 SP6 Processor Speed: 133Mhz or bette
performance
Browsers: Netscape 4.6, I. E. 5 Memory: 64 MB minimum

Rational Suite 1.5


Enterprise
Databases MS Access, MS SQL Server 7.0 Other:
Test Procedure Execution Information
Test Procedures for Test Case Group 1: User Interface

Step TC Action UI Control Value Expected


Result
0 The user is at the
ClassicsCD.com home page.
1 The user selects Catalog from Catalog page
the home page. appears with
all the existing
CDs in the
catalog
displayed on
single lines.

2 The user selects a line item Bach: Violin Bach: Violin The correct
from the Catalog to display Concertos Concertos detail page for
the details of that item. the CD
selected is
displayed.

3 Select Catalog from the CD Catalog page


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

4 Select Home from the User is


Catalog details page. returned to the
ClassicsCD.co
m homepage.
Test Procedures For Test Group 2: Catalog Search Functionality
Step TC Action UI Control Value Expected
Result
0 The user is at the
ClassicsCD.com
home page.
1 The user selects Catalog page
Catalog from the appears with
home page. all the existing
CDs in the
catalog
displayed on
single lines.

2 The user chooses Search Composer


search criteria criteria:
3 The user enters Quick Search Bach
search string. criteria
4 Initiate search given A list of two
the search criteria. CDs is
displayed.
Bach:
Brandenburg
Concertos 1+
3
Bach: Violin
Concertos
5 Return to home page.
Step TC Action UI Control Value Expected
Result
0 The user is at the
ClassicsCD.com
home page.
1 The user selects Catalog page
Catalog from the appears with
home page. all the existing
CDs in the
catalog
displayed on
single lines.

2 The user chooses Search Composition


search criteria criteria:
3 The user enters Quick Search Violin
search string. criteria Concertos
4 Initiate search given A list of two
the search criteria. CDs is
displayed.
Bach: Violin
Concertos
Haydn: Violin
Concertos.
5 Return to home page.

Step TC Action UI Control Value Expected


Result
0 The user is at the
ClassicsCD.com
home page.
1 The user selects Catalog page
Catalog from the appears with
home page. all the existing
CDs in the
catalog
displayed on
single lines.

2 The user chooses Search Performer


search criteria criteria:
3 The user enters Quick Search Beatles
search string. criteria
4 Initiate search given No CDs are
the search criteria. displayed.

5 Return to home page.

Step TC Action UI Control Value Expected


Result
0 The user is at the
ClassicsCD.com
home page.
1 The user selects Catalog page
Catalog from the appears with
home page. all the existing
CDs in the
catalog
displayed on
single lines.

2 The user chooses Search Composition


search criteria criteria:
3 The user enters Quick Search Violin
search string. criteria
4 Initiate search given A list of two
the search criteria. CDs is
displayed.
Bach: Violin
Concertos
Haydn: Violin
Concertos.
5 Return to home page.

Step TC Action UI Control Value Expected


Result
0 The user is at the
ClassicsCD.com home
page.
1 The user selects Catalog Catalog page
from the home page. appears with
all the existing
CDs in the
catalog
displayed on
single lines.
2 The user chooses search Search Composer
criteria criteria:
3 The user enters search Quick Search B
string. criteria
4 Initiate search given the A list of CDs
search criteria. composed by
Bach and
Beethoven is
displayed.

5 Return to home page.

You might also like