Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 14

Template for classification tree and test cases with all data items at the same level

© Sogeti 2022
Data item Data-item1 Data-itemA

Class Class1 Class2 Class3 Class4 Class5 ClassA ClassB ClassC

Testcase01 x
Testcase02 x
Testcase03 x x
Testcase04 x x
Testcase05 x x

This example shows 4 data items that all have 5 classes (or partitions)
The test cases have the lowest coverage level which is that every class (partition) of every data-item h
Data-itemI Data-itemZ

ClassD ClassE ClassI ClassII ClassIII ClassIV ClassV ClassZ ClassY

x x
x x
x
x x
x x

tition) of every data-item has been used at least once. Therefore 5 test cases are sufficient.
ClassX ClassW ClassV

x
x
x
Magic Boat Ride - classification tree and test cases

Data item Length Weight

Class < 120 > 120 < 100 >100 & <300 > 300

Testcase01 x x These test cases have the lowest


Testcase02 x x of every data-item has been use
Therefore test cases 1 through 3
Testcase03 x x
Testcase04 x x
The highest coverage level is ever
Testcase05 x x That needs test cases 1 through 6
Testcase06 x x

This example shows 2 data items that have 2 and 3 classes (or partitions)
This example is described in the TMAP book "Quality for DevOps teams", par

Length
< 120

> 120
© Sogeti 2022

est cases have the lowest coverage level which is that every class (partition)
y data-item has been used at least once.
re test cases 1 through 3 are sufficient.

est coverage level is every combination of all classes.


ds test cases 1 through 6.

classes (or partitions)


y for DevOps teams", part 8 - test design.

Magic boat
ride

Length Weight
> 100 &
> 120

> 300
< 100

< 300
Template for classification tree and test cases with data items multiple levels
© Sogeti 2022
Data item Data-item1 Data-itemA
Class Class1 Class2 Class3 Class4 ClassA
Dependant data item Sub data-item1
Class sub data-item Class4a Class4b Class4c Class4d

Testcase01 x
Testcase02 x
Testcase03 x
Testcase04 x
Testcase05 x x
Testcase06 x x
Testcase07 x

This example shows 4 data items, the first has 4 classes of which one has a dependant data-item wi
The test cases have the lowest coverage level which is that every class (partition) of every data-item
Note that Data-item1 has 7 partitions in total, because the 4 partitions of the dependant data-item
Data-itemA Data-itemI
ClassB ClassC ClassD ClassE ClassI ClassII ClassIII ClassIV ClassV

x x
x x
x x
x x
x
x
x x

a dependant data-item with 4 classes, the others all have 5 classes (or partitions).
artition) of every data-item has been used at least once. Therefore 5 test cases are sufficient.
f the dependant data-item are a continuation of the last class of the previous data item.
Data-itemZ
ClassZ ClassY ClassX ClassW ClassV

x
x
x
x
x
x
x
Ticket payment - classification tree and test cases with data items with multiple levels © Sogeti 2022

Data item Payment type


Class Cash Credit Card
Dependant data item Card type
Class sub data-item Mastercard VISA

Testcase01 x
Testcase02 x
Testcase03 x

This example shows 2 data items, the first has 2 classes of which one has a dependant data-item with 2 classes.
Note that Data-item1 has 3 partitions in total, because the 2 partitions of the dependant data-item are
a continuation of the last class of the previous data item.
© Sogeti 2022

em with 2 classes.
-item are
Example FAIRYTALE RIDE TICKETS for classification tree and test cases with data items multiple levels
© Sogeti 2022
Data item Ticket quantity
Class Individual Group
Dependant data Age class
Class sub data-i Young Normal Old

Testcase01 x
Testcase02 x
Testcase03 x
Testcase04 x

This example shows 1 data item, that has 2 classes of which one has a dependant data-item with 3 classes.
The test cases have always the same coverage level because there is only one highest level data item, so every class is a
with 3 classes.
ta item, so every class is a test case and that's it.
CLASSIFICATION TREE
Use the elements of a classification tree on this sheet to draw your own classification tree.

Root

Data item 1 Data item 2


Data item 1

Data item 1

Data item 1

Data item 2

Data item 2

Data item 2
Class Q
Class A

Class B

Class R
Class C

Class P
Data item 2
Class R

Root
Data item 3
Class X

Data item 3
Class Y

Data item 3

3
Data item 3

Sub Data item


Class Z

Data item 4
Class I

Data item 4
Class II
Data item 4

Data item 4
© Sogeti 2022

Class III

You might also like