28
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 Purpose This document enumerates test cases for each of the flows described in the Use Case Specification: Checkout documents. .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. .3 Definitions, Acronyms and Abbreviations Refer to project Glossary document. .4 References Use Case Specification: Checkout ClassicsCD Web Shop Test Plan .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. .6 Test Case Group 1: User Interface TC ID Condition Being Tested Expected Result UITC_Ck Ot1 Display member login page Displays CustomerID and Password text boxes. UITC_Ck Ot2 Order Summary page Page displaying information for each CD selection: Quantity Title Composer: Composition Unit Price Price Page then displays the following information: Subtotal Tax Total

Test Cases 2

Embed Size (px)

DESCRIPTION

Test Cases 2

Citation preview

Page 1: Test Cases 2

Example Test Case Documentation

Quick Start step 6: Creating requirementsIntroduction

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

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

1.2 ScopeThe 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 AbbreviationsRefer to project Glossary document.

1.4 References Use Case Specification: Checkout

ClassicsCD Web Shop Test Plan

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

Test CasesIn each of these test cases, the results are verified by visual inspection.

1.6 Test Case Group 1: User InterfaceTC ID Condition Being

TestedExpected Result

UITC_CkOt1

Display member login page 

Displays CustomerID and Password text boxes.

UITC_CkOt2

Order Summary page 

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

member’s credit card E-mail address text box for notification

of order Place Order Button

UITC_CkOt3

Inspect order confirmation page 

Page displaying text string confirming the order and containing the order ID.

Page 2: Test Cases 2

1.7 Test Case Group 2: Checkout Functionality TC ID Condition being

testedCustomerID / Password

Cart Contents / Qty

Expected Result

FTC_CkOt1

Password text box encodes entry 

Empty string / “password”

Mozart Symphonie Nr. 34 / 1

Password text box should have a string “******” displayed.

FTC_CkOt2

Blank customer ID with blank password 

Empty string / Empty string

Mozart Symphonie Nr. 34 / 1

Login page displays text string “Your CustomerID/Password combination is not valid.”

FTC_CkOt3

Invalid customerID with valid password 

empty string / “jmoore”

Mozart Symphonie Nr. 34 / 1

Login page displays text string “Your CustomerID/Password combination is not valid.”

FTC_CkOt4

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

“jmoore” / empty string

Mozart Symphonie Nr. 34 / 1

Login page displays text string “Your CustomerID/Password combination is not valid.”

FTC_CkOt5

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

“jmoore” / “jmoore”

Mozart Symphonie Nr. 34 / 1

Order Summary page displays greeting: “Hello Jim, Here is a summary of your order.”Quantity: 1Title Mozart Symphonie Nr. 34Unit Price: $14.95Price: $14.95SubTotal: $14.95Tax: $0.96Total: $15.91Ship To Address:24 Eagle CirclePhiladelphia, PA 19102Credit Card 4 digits: 1478Estimated days for shipment: 6 business days

FTC_CkOt6

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

“jmoore” / “jmoore”

Bach: Violin ConcertosBeethoven: Symphonie Nr. 5Mozart: Klavierkonzer

Order Summary page displays greeting: “Hello Jim, Here is a summary of your order.”Quantity: 2Title: Bach: Violin Concertos

Page 3: Test Cases 2

TC ID Condition being tested

CustomerID / Password

Cart Contents / Qty

Expected Result

t in D Unit Price: $14.99Price: $29.98Title Beethoven: Symphonie Nr. 5Unit Price: $15.99Price: $15.99Title: Mozart: Klavierkonzert in DUnit Price: $16.95Price: $16.95

SubTotal: $62.92Tax: $3.78Total: $66.70Ship To Address:24 Eagle CirclePhiladelphia, PA 19102Credit Card 4 digits: 1478Estimated days for shipment: 6 business days

FTC_CkOt7

Valid customer ID and password with empty cart 

Text string displays message “Your shopping cart is empty.

FTC_CkOt8

Valid member places order 

“jmoore” / “jmoore”

Mozart Symphonie Nr. 34 / 1

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_CkOt9

Check to see if order ID is incrementing and unique 

“jmoore” / “jmoore”

Mozart Symphonie Nr. 34 / 1

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”

Page 4: Test Cases 2

Quick Start step 6: Creating requirements

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

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

1.9 ScopeThe 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 AbbreviationsRefer 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 CasesIn each of these test cases, the results are verified by visual inspection.

1.13 Test Case Group 1: User InterfaceTC 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,

Page 5: Test Cases 2

TC ID Condition being tested Search type Search String Expected Result

string is a valid, existing value 

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 B List of CDs composed by both Bach and Beethoven

Page 6: Test Cases 2

Quick Start step 6: Creating requirements

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

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

1.16 ScopeThe 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 AbbreviationsRefer to project Glossary document.

1.18 ReferencesUse 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 CasesIn each of these test cases, the results are verified by visual inspection.

1.20 Test Case Group 1: User InterfaceTC ID Condition Being

TestedExpected Result

UITC_AS1 Order summary page with estimated delivery date . 

Page displaying information for each CD selection:QuantityTitle Composer: CompositionUnit PricePrice

Page then displays the following information:SubtotalTaxTotalShipping addressLast four digits of the purchasing member’s credit cardEstimated days for deliveryE-mail address text box for notification of orderPlace Order Button

UITC_AS2

Order confirmation page is displayed correctly 

Page displaying text string confirming the order and containing the order ID.

Page 7: Test Cases 2

1.21 Test Case Group 2: Arrange Shipment Functionality TC ID Condition being

testedCustomerID / Password

Cart Contents / Qty

Expected Result

FTC_AS1

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

“jmoore” / “jmoore”

Mozart Symphonie Nr. 34 / 1

Order Summary page displays greeting: “Hello Jim, Here is a summary of your order.”Quantity: 1Title Mozart Symphonie Nr. 34Unit Price: $14.95Price: $14.95SubTotal: $14.95Tax: $0.96Total: $15.91Ship To Address:24 Eagle CirclePhiladelphia, PA 19102Credit Card 4 digits: 1478Estimated days for shipment: 6 business days

FTC_AS2

Valid member places order . 

“jmoore” / “jmoore”

Mozart Symphonie Nr. 34 / 1

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”

Page 8: Test Cases 2

Quick Start step 6: Creating requirementsIntroduction

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

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

o ScopeThe 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 AbbreviationsRefer to project Glossary document.

o References Use Case Specification: Checkout

ClassicsCD Web Shop Test Plan

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

Test CasesIn each of these test cases, the results are verified by visual inspection.

o Test Case Group 1: User Interface

TC ID Condition Being Tested

Expected Result

UITC_CkOt1

Display member login page 

Displays CustomerID and Password text boxes.

UITC_CkOt2

Order Summary page 

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

member’s credit card E-mail address text box for notification

of order Place Order Button

UITC_CkOt3

Inspect order confirmation page 

Page displaying text string confirming the order and containing the order ID.

Page 9: Test Cases 2

o Test Case Group 2: Checkout Functionality 

TC ID Condition being tested

CustomerID / Password

Cart Contents / Qty

Expected Result

FTC_CkOt1

Password text box encodes entry 

Empty string / “password”

Mozart Symphonie Nr. 34 / 1

Password text box should have a string “******” displayed.

FTC_CkOt2

Blank customer ID with blank password 

Empty string / Empty string

Mozart Symphonie Nr. 34 / 1

Login page displays text string “Your CustomerID/Password combination is not valid.”

FTC_CkOt3

Invalid customerID with valid password 

empty string / “jmoore”

Mozart Symphonie Nr. 34 / 1

Login page displays text string “Your CustomerID/Password combination is not valid.”

FTC_CkOt4

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

“jmoore” / empty string

Mozart Symphonie Nr. 34 / 1

Login page displays text string “Your CustomerID/Password combination is not valid.”

FTC_CkOt5

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

“jmoore” / “jmoore”

Mozart Symphonie Nr. 34 / 1

Order Summary page displays greeting: “Hello Jim, Here is a summary of your order.”Quantity: 1Title Mozart Symphonie Nr. 34Unit Price: $14.95Price: $14.95SubTotal: $14.95Tax: $0.96Total: $15.91Ship To Address:24 Eagle CirclePhiladelphia, PA 19102Credit Card 4 digits: 1478Estimated days for shipment: 6 business days

FTC_CkOt6

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

“jmoore” / “jmoore”

Bach: Violin ConcertosBeethoven: Symphonie Nr. 5Mozart: Klavierkonzert in D

Order Summary page displays greeting: “Hello Jim, Here is a summary of your order.”Quantity: 2Title: Bach: Violin ConcertosUnit Price: $14.99

Page 10: Test Cases 2

TC ID Condition being tested

CustomerID / Password

Cart Contents / Qty

Expected Result

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

SubTotal: $62.92Tax: $3.78Total: $66.70Ship To Address:24 Eagle CirclePhiladelphia, PA 19102Credit Card 4 digits: 1478Estimated days for shipment: 6 business days

FTC_CkOt7

Valid customer ID and password with empty cart 

Text string displays message “Your shopping cart is empty.

FTC_CkOt8

Valid member places order 

“jmoore” / “jmoore”

Mozart Symphonie Nr. 34 / 1

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_CkOt9

Check to see if order ID is incrementing and unique 

“jmoore” / “jmoore”

Mozart Symphonie Nr. 34 / 1

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”

Page 11: Test Cases 2

Quick Start step 6: Creating requirements

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

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

1.23 ScopeThe 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 customer’s 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 AbbreviationsRefer 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 Cases1.27 Test Case Group 1: User Interface

TC ID Condition Being Tested

Expected Result

UITC_Shop1

Display Shopping Cart page 

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 Condition being CD Title Expected Result

Page 12: Test Cases 2

testedFTC_Shop1

Add CD selection from catalog page 

Bach: Violin Concertos

Shopping cart should display Bach: Violin Concertos. Quantity: 1Unit price, Price and Subtotal $14.99. Tax: $0.90Total: $15.89

FTC_Shop2

Add CD selection from CD details page 

Beethoven: Symphonie Nr. 7

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

*tax should be calculated by state. Is this too detailed then?

FTC_Shop3

Add multiple copies of a single CD selection. 

Haydn: Violin Concertos

Shopping cart should display Haydn: Violin Concertos. Quantity: 4Unit price: $14.99Price: $59.96Subtotal: $59.96Tax: $3.60Total: $63.56

FTC_Shop4

View an empty shopping cart 

Display text string “Your shopping cart is empty.

FTC_Shop5

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

Beethoven: Symphonie Nr. 5

Before removing:Shopping cart should display Beethoven: Symphonie Nr. 5. Quantity: 1Unit price: $15.99Price: $15.99Subtotal: $15.00Tax: $0.96Total: $16.95

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

FTC_Shop6

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: 4Unit price: $15.99Price: $63.96Subtotal: $63.96Tax: $3.84Total: $67.80

Page 13: Test Cases 2

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

FTC_Shop7

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: 4Unit price: $15.99Price: $63.96

Mozart: Symphonie Nr. 34 Quantity: 1Unit price: $14.95Price: $14.95

Subtotal: $78.91Tax: $4.73Total: $83.64

After removing Beethoven Symphonie Nr. 5Mozart: Symphonie Nr. 34 Quantity: 1Unit price: $14.95Price: $14.95

Subtotal: $14.95Tax: $0.91Total: $15.85

Page 14: Test Cases 2

Quick Start step 6: Creating requirements

IntroductionThis 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 PurposeThis document enumerates test procedures for each of the test cases listed in the Test Cases for Use Case: Browse Catalog..

1.30 ScopeThe 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 AbbreviationsRefer 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 Catalog.The following configuration is the most common configuration and is therefore the recommend configuration for creating and executing all test scripts. Deviations from this configuration should be noted.

Configuration SettingsSoftware Hardware

Version: 1.0 Processor Type: Pentium class

Windows Version: 98 SP1, 2000, WinNT 4.0 SP6 Processor Speed: 133Mhz or better for optimal performance

Browsers: Netscape 4.6, I. E. 5 Memory: 64 MB minimum

Rational Suite Enterprise

1.5

Databases MS Access, MS SQL Server 7.0 Other:

Page 15: Test Cases 2

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 the home page.

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

2 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.

3 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.

4 Select Home from the Catalog details page.

User is returned to the ClassicsCD.com homepage.

Page 16: Test Cases 2

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 from the home page.

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

2 The user chooses search criteria

Search criteria:

Composer

3 The user enters search string.

Quick Search criteria

Bach

4 Initiate search given the search criteria.

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

5 Return to home page.

Page 17: Test Cases 2

Step TC Action UI Control Value Expected Result

0 The user is at the ClassicsCD.com home page.

1 The user selects Catalog from the home page.

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

2 The user chooses search criteria

Search criteria:

Composition

3 The user enters search string.

Quick Search criteria

Violin Concertos

4 Initiate search given the search criteria.

A list of two CDs is displayed.Bach: Violin ConcertosHaydn: 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 from the home page.

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

2 The user chooses search criteria

Search criteria:

Performer

3 The user enters search string.

Quick Search criteria

Beatles

Page 18: Test Cases 2

4 Initiate search given the search criteria.

No CDs are 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 from the home page.

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

2 The user chooses search criteria

Search criteria:

Composition

3 The user enters search string.

Quick Search criteria

Violin

4 Initiate search given the search criteria.

A list of two CDs is displayed.Bach: Violin ConcertosHaydn: 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 from the home page.

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

Page 19: Test Cases 2

2 The user chooses search criteria

Search criteria:

Composer

3 The user enters search string.

Quick Search criteria

B

4 Initiate search given the search criteria.

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

5 Return to home page.