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. 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 1.5 Use Case Specification: Checkout ClassicsCD Web Shop Test Plan
1.2
1.3 1.4
Overview This subsection should describe what the rest of the Functional Test Cases document contains and explain how the document is organized. In each of these test cases, the results are verified by visual inspection.
Test Cases
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 FTC_Ck Ot1 FTC_Ck Ot2
Condition being tested Password text box encodes entry Blank customer ID with blank password Invalid customerID with valid password Valid CustomerID and Password with more than 1 item in the shopping cart. Valid customerID and password with 1 item in the shopping cart.
CustomerID / Cart Password Contents / Qty Empty string / Mozart password Symphonie Nr. 34 / 1 Empty string / Mozart Empty string Symphonie Nr. 34 / 1 empty string / jmoore Mozart Symphonie Nr. 34 / 1 Mozart Symphonie Nr. 34 / 1 Mozart Symphonie Nr. 34 / 1
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
FTC_Ck Ot3
FTC_Ck Ot4
jmoore / empty string
FTC_Ck Ot5
jmoore / jmoore
FTC_Ck Ot6
Valid customerID and password with
jmoore / jmoore
Bach: Violin Concertos
TC ID
Condition being tested 3 CD selections in the shopping cart
CustomerID / Cart Password Contents / Qty Beethoven: Symphonie Nr. 5 Mozart: Klavierkonzer t in D
Expected Result Jim, Here is a summary of your order. Quantity: 2 Title: Bach: Violin 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
FTC_Ck Ot7 FTC_Ck Ot8
Valid customer ID and password with empty cart Valid member places order
jmoore / jmoore
Mozart Symphonie Nr. 34 / 1
FTC_Ck Ot9
Check to see if order ID is incrementing and unique
jmoore / jmoore
Mozart Symphonie Nr. 34 / 1
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. 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. Definitions, Acronyms and Abbreviations Refer to project Glossary document. References 1.12 Use Case Specification: Browse Catalog ClassicsCD.com Test Plan
1.9
1.10 1.11
Overview [This subsection should describe what the rest of the Functional Test Cases document contains and explain how the document is organized.] In each of these test cases, the results are verified by visual inspection.
Test Cases
1.13 Test Case Group 1: User Interface TC ID UITC_Loc1 Condition Being Tested Display catalog page Expected Result 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 FTC_Loc1 Condition being tested Search for CD by composer - the search Search type Composer Search String Bach Expected Result List of all CDs from BACH,
TC ID
Condition being tested string is a valid, existing value
Search type
Search String
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 Search for CD by Performer - the search string is a valid, existing value Browse CD - search criteria does not exist in catalog Search string is partial name Search string will return multiple names
Composition
Violin Concertos
List of at least 2 CDs titled Violin Concertos
FTC_Loc3
Performer
Philharmonic
List of at least 3 CDs recorded by orchestras whose name includes Philharmonic No CDs are displayed
FTC_Loc4
Performer
Beatles
FTC_Loc5 FTC_Loc6
Composition Composer
Violin B
List of 2 CDs titled Violin Concertos 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. 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. Definitions, Acronyms and Abbreviations Refer to project Glossary document. References Use Case Specification: Arrange Shipment 1.19 ClassicsCD Web Shop Test Plan
1.16
1.17 1.18
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 FTC_A S1
Condition being tested Generates estimated delivery given valid customer ID, valid password and at least one item in the shopping cart.
CustomerID / Cart Password Contents / Qty jmoore / Mozart jmoore 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
FTC_A S2
Valid member places order .
jmoore / jmoore
Mozart Symphonie Nr. 34 / 1
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 o o 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. o 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 FTC_Ck Ot1 FTC_Ck Ot2
Condition being tested Password text box encodes entry Blank customer ID with blank password Invalid customerID with valid password Valid CustomerID and Password with more than 1 item in the shopping cart. Valid customerID and password with 1 item in the shopping cart.
CustomerID / Cart Password Contents / Qty Empty string / Mozart password Symphonie Nr. 34 / 1 Empty string / Mozart Empty string Symphonie Nr. 34 / 1 empty string / jmoore Mozart Symphonie Nr. 34 / 1 Mozart Symphonie Nr. 34 / 1 Mozart Symphonie Nr. 34 / 1
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
FTC_Ck Ot3
FTC_Ck Ot4
jmoore / empty string
FTC_Ck Ot5
jmoore / jmoore
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:
TC ID
Condition being tested
CustomerID / Cart Password Contents / Qty Klavierkonzer t in D
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
FTC_Ck Ot7 FTC_Ck Ot8
Valid customer ID and password with empty cart Valid member places order
jmoore / jmoore
Mozart Symphonie Nr. 34 / 1
FTC_Ck Ot9
Check to see if order ID is incrementing and unique
jmoore / jmoore
Mozart Symphonie Nr. 34 / 1
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. 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. Definitions, Acronyms and Abbreviations Refer to project Glossary document. References 1.26 Use Case Specification: Shop for CD ClassicsCD Web Shop Test
1.23
1.24 1.25
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
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>
1.28
Test Case Group 2: Shop Functionality
TC ID FTC_Sho p1
Condition being tested Add CD selection from catalog page
CD Title Bach: Violin Concertos
Expected Result Shopping cart should display Bach: Violin Concertos. Quantity: 1 Unit price, Price and Subtotal $14.99. Tax: $0.90 Total: $15.89 Shopping cart should display Beethoven: Symphonie 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? 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 p2
Add CD selection from CD details page
Beethoven: Symphonie Nr. 7
FTC_Sho p3
Add multiple copies of a single CD selection.
Haydn: Violin Concertos
FTC_Sho p4 FTC_Sho p5
View an empty shopping cart Add a single CD selection and then remove it from the cart Beethoven: Symphonie Nr. 5
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.. 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. Definitions, Acronyms and Abbreviations Refer to project Glossary document. References 1.33 Use Case Specification: Browse Catalog Functional Test Cases for Use Case: Browse Catalog ClassicsCD.com Test Plan
1.30
1.31 1.32
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 Ca
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 Hardware Processor Type: Pentium class
Processor Speed: 133Mhz or bette performance 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 0 1
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.
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. Catalog page appears with all the existing CDs in the catalog displayed on single lines.
Select Catalog from the CD details page to return to Catalog page.
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
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.
Search criteria: Quick Search criteria
Composer Bach A list of two CDs is displayed. Bach: Brandenburg Concertos 1+ 3 Bach: Violin Concertos
Return to home page.
Step 0 1
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.
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.
Step 0 1
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
The user chooses search criteria The user enters search string.
Search criteria: Quick Search criteria
Performer Beatles
Initiate search given the search criteria. Return to home page.
No CDs are displayed.
Step 0 1
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.
Search criteria: Quick Search criteria
Composition Violin A list of two CDs is displayed. Bach: Violin Concertos Haydn: Violin Concertos.
Return to home page.
Step 0 1
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.
Search criteria: Quick Search criteria
Composer B A list of CDs composed by Bach and Beethoven is displayed.
Return to home page.