Test Case Example
Test Case Example
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
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
Page displaying text string confirming the order and containing the order ID.
1.7
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
FTC_Ck Ot5
jmoore / jmoore
FTC_Ck Ot6
jmoore / jmoore
TC ID
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
Valid customer ID and password with empty cart Valid member places order
jmoore / jmoore
FTC_Ck Ot9
jmoore / jmoore
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
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
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
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
Page displaying text string confirming the order and containing the order ID.
1.21
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
jmoore / jmoore
Test Cases
In each of these test cases, the results are verified by visual inspection. o Test Case Group 1: User Interface
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
Page displaying text string confirming the order and containing the order ID.
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
FTC_Ck Ot5
jmoore / jmoore
FTC_Ck Ot6
jmoore / jmoore
TC ID
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
Valid customer ID and password with empty cart Valid member places order
jmoore / jmoore
FTC_Ck Ot9
jmoore / jmoore
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
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
TC ID FTC_Sho p1
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
FTC_Sho p3
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
Before removing: Shopping cart should display Beethoven: Symphonie Nr. 5. Quantity: 4 Unit price: $15.99 Price: $63.96 Subtotal: $63.96
FTC_Sho p7
Add multiple CD selections and then remove a single selection from the cart
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
1.30
1.31 1.32
Overview TBD
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
Other:
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.
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.
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.
Composer Bach A list of two CDs is displayed. Bach: Brandenburg Concertos 1+ 3 Bach: Violin Concertos
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.
Composition Violin Concertos A list of two CDs is displayed. Bach: Violin Concertos Haydn: Violin Concertos.
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.
Performer Beatles
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.
Composition Violin A list of two CDs is displayed. Bach: Violin Concertos Haydn: Violin Concertos.
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.