Test Case Example
Test Case Example
1.
1.! 1.(
+'er'ie, This subsection should describe what the rest of the Functional Test Cases document contains and e%plain how the document is organi&ed. 'n each of these test cases, the results are verified by visual inspection.
Test Cases
1.6 Test Case -roup 1: .ser Inter"ace
Condition /eing Tested Display member login page Order Summary page
Expected )esult Displays CustomerID and Pass,ord text boxes. Page displaying in ormation or ea!" CD sele!tion# Quantity Title Composer: Composition Unit Price Price Page t"en displays t"e ollo$ing in ormation# 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 utton
UITC_Ck Ot%
Page displaying text string !on irming t"e order and !ontaining t"e order ID.
1.0
Condition &eing tested Pass$ord text box en!odes entry 1lank !ustomer ID $it" blank pass$ord In/alid !ustomerID $it" /alid pass$ord 5alid CustomerID and Pass$ord $it" more t"an 1 item in t"e s"opping !art. 5alid !ustomerID and pass$ord $it" 1 item in t"e s"opping !art.
CustomerID 3 Cart Pass,ord Contents 3 Qt% 'mpty string ( +o,art )pass$ord* Symp"onie -r. %. ( 1 'mpty string ( +o,art 'mpty string Symp"onie -r. %. ( 1 empty string ( )4moore* +o,art Symp"onie -r. %. ( 1 +o,art Symp"onie -r. %. ( 1 +o,art Symp"onie -r. %. ( 1
Expected )esult Pass$ord text box s"ould "a/e a string )000000* displayed. 2ogin page displays text string )3our CustomerID(Pass$ord !ombination is not /alid.* 2ogin page displays text string )3our CustomerID(Pass$ord !ombination is not /alid.* 2ogin page displays text string )3our CustomerID(Pass$ord !ombination is not /alid.* Order Summary page displays greeting# )7ello 8im9 7ere is a summary o your order.* :uantity# 1 Title +o,art Symp"onie -r. %. Unit Pri!e# ;1..<6 Pri!e# ;1..<6 SubTotal# ;1..<6 Tax# ;=.<> Total# ;16.<1 S"ip To ?ddress# 2. 'agle Cir!le P"iladelp"ia9 P? 1<1=2 Credit Card . digits# 1.@A 'stimated days or s"ipment# > business days Order Summary page displays greeting# )7ello
&TC_Ck Ot%
&TC_Ck Ot.
&TC_Ck Ot6
)4moore* ( )4moore*
&TC_Ck Ot>
)4moore* ( )4moore*
TC ID
CustomerID 3 Cart Pass,ord Contents 3 Qt% 1eet"o/en# Symp"onie -r. 6 +o,art# Bla/ierkon,er t in D
Expected )esult 8im9 7ere is a summary o your order.* :uantity# 2 Title# 1a!"# 5iolin Con!ertos Unit Pri!e# ;1..<< Pri!e# ;2<.<A Title 1eet"o/en# Symp"onie -r. 6 Unit Pri!e# ;16.<< Pri!e# ;16.<< Title# +o,art# Bla/ierkon,ert in D Unit Pri!e# ;1>.<6 Pri!e# ;1>.<6 SubTotal# ;>2.<2 Tax# ;%.@A Total# ;>>.@= S"ip To ?ddress# 2. 'agle Cir!le P"iladelp"ia9 P? 1<1=2 Credit Card . digits# 1.@A 'stimated days or s"ipment# > business days Text string displays message )3our s"opping !art is empty. Order !on irmation page displays text string )3our order "as been pla!ed. &or uture re eren!e9 your order ID is CCCC. T"anks or s"opping at Classi!sCD.!om* Order !on irmation page displays text string )3our order "as been pla!ed. &or uture re eren!e9 your order ID is CCCC E 1. T"anks or s"opping at Classi!sCD.!om*
5alid !ustomer ID and pass$ord $it" empty !art 5alid member pla!es order
)4moore* ( )4moore*
&TC_Ck Ot<
)4moore* ( )4moore*
1.5
1.16 1.11
+'er'ie, )This subsection should describe what the rest of the Functional Test Cases document contains and e%plain how the document is organi&ed.* 'n each of these test cases, the results are verified by visual inspection.
Test Cases
1.1! Test Case -roup 1: .ser Inter"ace TC ID 'TC+,ocCondition Being Tested Display catalog page Expected Result ,ist of CDs on a single page. .ach entry in the list displays in this format" Composer" Composition $rice /Cart 'con0 Performer, Conductor 'TC+,oc1 Displays CD details page $age displaying information for - CD, including" $icture of the CD 2ewel Case Current $rice /Cart icon0 Composer" Composition Performer Conductor Comments or other descriptive information
1.1(
Test Case -roup : Catalog Searc1 2unctionalit% TC ID 3TC+,ocCondition being tested !earch for CD by composer 4 the search Search type Composer Search String (ach Expected Result ,ist of all CDs from (5C6,
TC ID
Search type
Search String
Expected Result There are currently at least 1 CDs in the catalog meeting this criterion.
3TC+,oc1
!earch for CD by Composition 4 the search string is a valid, e%isting value !earch for CD by $erformer 4 the search string is a valid, e%isting value (rowse CD 4 search criteria does not e%ist in catalog !earch string is partial name !earch string will return multiple names
Composition
7iolin Concertos
3TC+,oc:
$erformer
$hilharmonic
,ist of at least : CDs recorded by orchestras whose name includes 8$hilharmonic9 <o CDs are displayed
3TC+,oc;
$erformer
(eatles
3TC+,oc= 3TC+,oc>
Composition Composer
7iolin (
,ist of 1 CDs titled 87iolin Concertos9 ,ist of CDs composed by both (ach and (eethoven
1.16
1.10 1.14
+'er'ie,
FT"is subse!tion s"ould des!ribe $"at t"e rest o t"e 2unctional Test Cases do!ument !ontains and explain "o$ t"e do!ument is organi,ed.G Test Cases
'n each of these test cases, the results are verified by visual inspection. 1. 6 Test Case -roup 1: .ser Inter"ace
TC ID
'TC+5!-
Condition /eing Tested Order summary page $it" estimated deli/ery date .
Expected )esult Page displaying in ormation or ea!" CD sele!tion# Quantity Title Composer: Composition Unit Price Price Page t"en displays t"e ollo$ing in ormation# Subtotal Tax Total Shipping address Last four digits of the purchasing members credit card Estimated days for deli!ery E-mail address text box for notification of order Place Order utton
UITC_? S2
Page displaying text string !on irming t"e order and !ontaining t"e order ID.
1. 1
TC ID &TC_? S1
Condition &eing tested Henerates estimated deli/ery gi/en /alid !ustomer ID9 /alid pass$ord and at least one item in t"e s"opping !art.
CustomerID 3 Cart Pass,ord Contents 3 Qt% )4moore* ( +o,art )4moore* Symp"onie -r. %. ( 1
Expected )esult Order Summary page displays greeting# )7ello 8im9 7ere is a summary o your order.* :uantity# 1 Title +o,art Symp"onie -r. %. Unit Pri!e# ;1..<6 Pri!e# ;1..<6 SubTotal# ;1..<6 Tax# ;=.<> Total# ;16.<1 S"ip To ?ddress# 2. 'agle Cir!le P"iladelp"ia9 P? 1<1=2 Credit Card . digits# 1.@A 'stimated days or s"ipment# > business days Order !on irmation page displays text string )3our order "as been pla!ed. &or uture re eren!e9 your order ID is CCCC. T"anks or s"opping at Classi!sCD.!om*
&TC_? S2
)4moore* ( )4moore*
Test Cases
'n each of these test cases, the results are verified by visual inspection. o Test Case -roup 1: .ser Inter"ace
Condition /eing Tested Display member login page Order Summary page
Expected )esult Displays CustomerID and Pass,ord text boxes. Page displaying in ormation or ea!" CD sele!tion# Quantity Title Composer: Composition Unit Price Price Page t"en displays t"e ollo$ing in ormation# 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 utton
UITC_Ck Ot%
Page displaying text string !on irming t"e order and !ontaining t"e order ID.
Condition &eing tested Pass$ord text box en!odes entry 1lank !ustomer ID $it" blank pass$ord In/alid !ustomerID $it" /alid pass$ord 5alid CustomerID and Pass$ord $it" more t"an 1 item in t"e s"opping !art. 5alid !ustomerID and pass$ord $it" 1 item in t"e s"opping !art.
CustomerID 3 Cart Pass,ord Contents 3 Qt% 'mpty string ( +o,art )pass$ord* Symp"onie -r. %. ( 1 'mpty string ( +o,art 'mpty string Symp"onie -r. %. ( 1 empty string ( )4moore* +o,art Symp"onie -r. %. ( 1 +o,art Symp"onie -r. %. ( 1 +o,art Symp"onie -r. %. ( 1
Expected )esult Pass$ord text box s"ould "a/e a string )000000* displayed. 2ogin page displays text string )3our CustomerID(Pass$ord !ombination is not /alid.* 2ogin page displays text string )3our CustomerID(Pass$ord !ombination is not /alid.* 2ogin page displays text string )3our CustomerID(Pass$ord !ombination is not /alid.* Order Summary page displays greeting# )7ello 8im9 7ere is a summary o your order.* :uantity# 1 Title +o,art Symp"onie -r. %. Unit Pri!e# ;1..<6 Pri!e# ;1..<6 SubTotal# ;1..<6 Tax# ;=.<> Total# ;16.<1 S"ip To ?ddress# 2. 'agle Cir!le P"iladelp"ia9 P? 1<1=2 Credit Card . digits# 1.@A 'stimated days or s"ipment# > business days Order Summary page displays greeting# )7ello 8im9 7ere is a summary o your order.* :uantity# 2 Title# 1a!"# 5iolin
&TC_Ck Ot%
&TC_Ck Ot.
&TC_Ck Ot6
)4moore* ( )4moore*
&TC_Ck Ot>
)4moore* ( )4moore*
TC ID
Expected )esult Con!ertos Unit Pri!e# ;1..<< Pri!e# ;2<.<A Title 1eet"o/en# Symp"onie -r. 6 Unit Pri!e# ;16.<< Pri!e# ;16.<< Title# +o,art# Bla/ierkon,ert in D Unit Pri!e# ;1>.<6 Pri!e# ;1>.<6 SubTotal# ;>2.<2 Tax# ;%.@A Total# ;>>.@= S"ip To ?ddress# 2. 'agle Cir!le P"iladelp"ia9 P? 1<1=2 Credit Card . digits# 1.@A 'stimated days or s"ipment# > business days Text string displays message )3our s"opping !art is empty. Order !on irmation page displays text string )3our order "as been pla!ed. &or uture re eren!e9 your order ID is CCCC. T"anks or s"opping at Classi!sCD.!om* Order !on irmation page displays text string )3our order "as been pla!ed. &or uture re eren!e9 your order ID is CCCC E 1. T"anks or s"opping at Classi!sCD.!om*
5alid !ustomer ID and pass$ord $it" empty !art 5alid member pla!es order
)4moore* ( )4moore*
&TC_Ck Ot<
)4moore* ( )4moore*
1. !
1. ( 1. *
+'er'ie,
FT"is subse!tion s"ould des!ribe $"at t"e rest o t"e 2unctional Test Cases do!ument !ontains and explain "o$ t"e do!ument is organi,ed.G Test Cases
1. 0 Test Case -roup 1: .ser Inter"ace
TC ID UITC_S"o p1
Expected )esult Page displaying in ormation or all items in t"e !art in!luding# 2ist o CDs on a single page9 Sub Total9 Tax and Total. 'a!" entry in t"e list displays in t"is ormat# :ty Composer: Composition Unit Pri!e Pri!e IJemo/e rom Cart "yperlinkK
1. 4
TC ID &TC_S"o p1
Expected )esult S"opping !art s"ould display 1a!"# 5iolin Con!ertos. :uantity# 1 Unit pri!e9 Pri!e and Subtotal ;1..<<. Tax# ;=.<= Total# ;16.A< S"opping !art s"ould display 1eet"o/en# Symp"onie -r. @. :uantity# 1 Unit pri!e9 Pri!e and Subtotal ;1>.<6. Tax# ;1.=2 Total# ;1@.<@ 0tax s"ould be !al!ulated by state. Is t"is too detailed t"enL S"opping !art s"ould display 7aydn# 5iolin Con!ertos. :uantity# . Unit pri!e# ;1..<< Pri!e# ;6<.<> Subtotal# ;6<.<> Tax# ;%.>= Total# ;>%.6> Display text string )3our s"opping !art is empty. efore remo!ing" S"opping !art s"ould display 1eet"o/en# Symp"onie -r. 6. :uantity# 1 Unit pri!e# ;16.<< Pri!e# ;16.<< Subtotal# ;16.== Tax# ;=.<> Total# ;1>.<6 #fter remo!ing"
Display te%t string 8@our shopping cart is empty.
&TC_S"o p2
&TC_S"o p%
&TC_S"o p. &TC_S"o p6
5ie$ an empty s"opping !art ?dd a single CD sele!tion and t"en remo/e it rom t"e !art 1eet"o/en# Symp"onie -r. 6
&TC_S"o p>
?dd multiple !opies o a single CD sele!tion and t"en remo/e t"em rom t"e !art
efore remo!ing" S"opping !art s"ould display 1eet"o/en# Symp"onie -r. 6. :uantity# . Unit pri!e# ;16.<< Pri!e# ;>%.<> Subtotal# ;>%.<>
&TC_S"o p@
?dd multiple CD sele!tions and t"en remo/e a single sele!tion rom t"e !art
efore remo!ing" S"opping !art s"ould display 1eet"o/en# Symp"onie -r. 6. :uantity# . Unit pri!e# ;16.<< Pri!e# ;>%.<> +o,art# Symp"onie -r. %. :uantity# 1 Unit pri!e# ;1..<6 Pri!e# ;1..<6 Subtotal# ;@A.<1 Tax# ;..@% Total# ;A%.>. #fter remo!ing eetho!en Symphonie $r% & +o,art# Symp"onie -r. %. :uantity# 1 Unit pri!e# ;1..<6 Pri!e# ;1..<6 Subtotal# ;1..<6 Tax# ;=.<1 Total# ;16.A6
1.!6
1.!1 1.!
+'er'ie, T(D
Test Procedure Test Procedure '( :ui!k Start step ># Creating reDuirements
Des!ription# Test pro!edure !on iguration or all un!tional test !ases or Use )ase" ro*se )a
The following configuration is the most common configuration and is therefore the recommend configuration e%ecuting all test scripts. Deviations from this configuration should be noted.
Con"iguration Settings So"t,are 5ersion# 1.= Mindo$s 5ersion# <A SP19 2===9 Min-T ..= SP> 1ro$sers# -ets!ape ..>9 I. '. 6 7ard,are Pro!essor Type# Pentium !lass
Ot"er#
Step = 1
TC
$ction T"e user is at t"e Classi!sCD.!om "ome page. T"e user sele!ts Catalog rom t"e "ome page.
.I Control
8alue
Expected )esult Catalog page appears $it" all t"e existing CDs in t"e !atalog displayed on single lines.
T"e user sele!ts a line item rom t"e Catalog to display t"e details o t"at item.
T"e !orre!t detail page or t"e CD sele!ted is displayed. Catalog page appears $it" all t"e existing CDs in t"e !atalog displayed on single lines.
Step = 1
TC
$ction T"e user is at t"e Classi!sCD.!om "ome page. T"e user sele!ts Catalog rom t"e "ome page.
.I Control
8alue
Expected )esult
Catalog page appears $it" all t"e existing CDs in t"e !atalog displayed on single lines.
2 % .
T"e user !"ooses sear!" !riteria T"e user enters sear!" string. Initiate sear!" gi/en t"e sear!" !riteria.
Composer 1a!" ? list o t$o CDs is displayed. 1a!"# 1randenburg Con!ertos 1E % 1a!"# 5iolin Con!ertos
Step = 1
TC
$ction T"e user is at t"e Classi!sCD.!om "ome page. T"e user sele!ts Catalog rom t"e "ome page.
.I Control
8alue
Expected )esult
Catalog page appears $it" all t"e existing CDs in t"e !atalog displayed on single lines.
2 % .
T"e user !"ooses sear!" !riteria T"e user enters sear!" string. Initiate sear!" gi/en t"e sear!" !riteria.
Composition 5iolin Con!ertos ? list o t$o CDs is displayed. 1a!"# 5iolin Con!ertos 7aydn# 5iolin Con!ertos.
Step = 1
TC
$ction T"e user is at t"e Classi!sCD.!om "ome page. T"e user sele!ts Catalog rom t"e "ome page.
.I Control
8alue
Expected )esult
Catalog page appears $it" all t"e existing CDs in t"e !atalog displayed on single lines.
2 %
T"e user !"ooses sear!" !riteria T"e user enters sear!" string.
Step = 1
TC
$ction T"e user is at t"e Classi!sCD.!om "ome page. T"e user sele!ts Catalog rom t"e "ome page.
.I Control
8alue
Expected )esult
Catalog page appears $it" all t"e existing CDs in t"e !atalog displayed on single lines.
2 % .
T"e user !"ooses sear!" !riteria T"e user enters sear!" string. Initiate sear!" gi/en t"e sear!" !riteria.
Composition 5iolin ? list o t$o CDs is displayed. 1a!"# 5iolin Con!ertos 7aydn# 5iolin Con!ertos.
Step = 1
TC
$ction T"e user is at t"e Classi!sCD.!om "ome page. T"e user sele!ts Catalog rom t"e "ome page.
.I Control
8alue
Expected )esult
Catalog page appears $it" all t"e existing CDs in t"e !atalog displayed on single lines.
2 % .
T"e user !"ooses sear!" !riteria T"e user enters sear!" string. Initiate sear!" gi/en t"e sear!" !riteria.