ISTQB FOUNDATION 4.0 | Tutorial 32 | Decision Table Testing | Test Case Design Techniques | CTFL

TM SQUARE
26 Jan 202409:59

Summary

TLDRThis tutorial delves into decision table testing, a technique for analyzing and designing test cases based on logical conditions and actions. It simplifies the process by reducing the number of test cases needed through a tabular representation of possible outcomes. The instructor explains how to apply this method using examples, emphasizing its ease of use and effectiveness in software testing. The video guides viewers through understanding decision tables, calculating combinations, and applying the technique to given scenarios, preparing them for real-world applications and exam situations.

Takeaways

  • 😀 Decision Table Testing is a technique used to analyze and design tests based on conditions and their outcomes.
  • 🔍 It is particularly useful for requirements that are condition-driven, such as eligibility for an event based on car ownership.
  • 📊 The method is reminiscent of truth tables from basic mathematics, where combinations of conditions are used to determine possible outcomes.
  • 📝 The process involves creating a table with conditions and deriving the outcomes for those combinations from the requirements.
  • 📚 Detailed requirements are essential for this technique; without them, it may not be applicable.
  • 📉 The number of combinations for testing is calculated using the formula 2 raised to the power of 'n', where 'n' is the number of conditions.
  • 👉 For example, with two conditions, there are four possible combinations (true-true, true-false, false-true, false-false).
  • 📋 In exams, the decision table will be provided, and the task is to apply the given context to the table to find the correct answer.
  • 💡 The technique simplifies the process of creating exhaustive test cases by focusing on combinations of conditions.
  • 📝 The input conditions and actions in the table are often binary, stated as true/false, yes/no, or similar.
  • 🔑 Understanding the decision table involves reading the table and matching the given scenarios to find the expected results.

Q & A

  • What is the main topic of this tutorial?

    -The main topic of this tutorial is decision table testing, a blackbox test technique covered in chapter 4.2 of the ISTQB Foundation Level certification.

  • What is decision table testing?

    -Decision table testing is a unique testing technique used to analyze and design tests based on conditions and their outcomes. It involves creating a table of combinations of conditions and deriving the possible outcomes from these combinations.

  • How is decision table testing related to the concept of truth tables in mathematics?

    -Decision table testing is related to truth tables in that it involves creating combinations of conditions to determine possible outcomes, similar to how truth tables are used to evaluate logical expressions.

  • What is the significance of 'n' in the context of calculating the number of combinations in a decision table?

    -In the context of decision table testing, 'n' represents the number of conditions. The number of combinations is calculated as 2 raised to the power of n (2^n), which determines the possible permutations of true/false for each condition.

  • Why is having detailed requirements important for decision table testing?

    -Having detailed requirements is important for decision table testing because it allows for the accurate identification of conditions and actions in a tabular form, which is essential for creating an effective decision table.

  • How are input conditions and actions typically stated in a decision table?

    -Input conditions and actions in a decision table are typically stated in a way that they must be true or false, which can also be represented as positive or negative, yes or no.

  • What is the purpose of creating a decision table in software testing?

    -The purpose of creating a decision table is to minimize the number of test cases needed by systematically covering all possible combinations of conditions and their outcomes, thus ensuring thorough testing with fewer test cases.

  • How does the tutorial suggest approaching a decision table test in an examination scenario?

    -In an examination scenario, the tutorial suggests that the decision table will be provided, and the examinee's task is to apply the given context to the table and determine the correct outcomes or answers based on the combinations presented.

  • What is an example of how decision table testing can be applied in a real-world scenario mentioned in the tutorial?

    -An example given in the tutorial is a hotel scenario where the decision to offer an upgrade to a guest's room depends on whether they are a City Bank card member and the type of room they are currently holding.

  • How does the tutorial describe the process of identifying the correct answer from a decision table in an exam question?

    -The tutorial describes the process as reading the table and understanding the conditions and actions, then applying the given test case scenarios to the table to find the matching rule and corresponding expected outcome.

Outlines

00:00

📘 Introduction to Decision Table Testing

The first paragraph introduces the concept of decision table testing as part of the ISTQB Foundation Level certification. It is a technique used for analyzing requirements where the output is driven by certain conditions, similar to truth tables in mathematics. The speaker uses the example of a car ownership condition for event registration to illustrate how conditions can determine outcomes. The technique involves creating a table with combinations of conditions and deriving possible outcomes, which helps in minimizing test cases. The importance of detailed requirements for this technique is highlighted, and it's noted that at the foundation level, the table will be provided, and the task is to apply the context to arrive at the correct answer.

05:02

📌 Understanding Decision Table Testing with Examples

The second paragraph delves deeper into decision table testing with real exam question examples. It explains how to interpret the decision table provided in an exam scenario, using a hotel's room upgrade policy as an example. The paragraph demonstrates how to match test cases to the conditions and actions outlined in the table to determine expected outcomes. It also covers how to identify missing test cases by recognizing the combinations of conditions that have not been covered. The speaker emphasizes the simplicity of this technique for exam purposes, as the table will be provided, and the task is to apply the given statements to find the correct answer. The paragraph concludes by encouraging viewers to keep learning and exploring the subject matter.

Mindmap

Keywords

💡ISTQB

ISTQB stands for the International Software Testing Qualifications Board, which is a non-profit organization that certifies software testers. In the context of the video, it is the organization that provides certifications at various levels, and the tutorial is focused on the Foundation level certifications, indicating the beginner's level in software testing.

💡Test Analysis and Design

Test Analysis and Design is a fundamental phase in the software testing process where testers analyze the requirements and design test cases. In the video, it is the chapter being discussed, emphasizing the importance of understanding requirements to create effective test strategies.

💡Blackbox Testing

Blackbox testing is a method of software testing where the tester focuses on the functionality of the software without considering the internal structure or code. The video mentions this as a segment, indicating that the tutorial covers various testing techniques that do not require knowledge of the internal workings of the software.

💡Decision Table Testing

Decision Table Testing is a specific testing technique used to test conditions and their outcomes systematically. The video tutorial delves into this technique, explaining how it helps in minimizing test cases by creating combinations of conditions and their corresponding outcomes.

💡Conditions

In the context of decision table testing, conditions are the criteria or requirements that need to be met for a particular outcome to occur. The video script uses the example of having a car as a condition for qualification, illustrating how conditions can drive the output or further processing in testing scenarios.

💡Truth Table

A truth table is a basic mathematical concept used to determine all possible outcomes of logical conditions. The video script refers to the truth table as a way to recall the combinations of conditions, which is essential in decision table testing to understand all possible outcomes.

💡Combinations

Combinations in decision table testing refer to the various possible scenarios that can occur based on different conditions. The video explains that instead of creating numerous test cases, a decision table can be used to cover all combinations efficiently.

💡Tabular Form

Tabular form is the way in which decision table testing organizes conditions and actions into a table. The video script mentions that the system's requirements are captured in this form, making it easier to analyze and understand the relationships between conditions and outcomes.

💡Logical Conditions

Logical conditions are statements that can be evaluated as true or false. In the context of the video, these conditions are used in decision tables to determine the system's behavior. The script gives examples of conditions like having a bank card or a certain age to illustrate this.

💡Examination

The term examination in the video refers to the ISTQB certification test. The script explains that during the exam, the decision table will be provided, and the examinee's task is to apply the given context to the table to determine the correct outcomes or answers.

💡Characteristics of Decision Table

Characteristics of decision table refer to the properties and features that define this testing technique. The video mentions that the number of combinations is calculated using 2 raised to the power of n, where n is the number of conditions, which is a key characteristic in understanding how to construct a decision table.

Highlights

Introduction to decision table testing as a unique blackbox technique.

Explanation of decision table testing in the context of condition-driven output requirements.

The importance of detailed requirements for the applicability of decision table testing.

Connection between decision table testing and the mathematical concept of truth tables.

Minimization of test cases through the creation of decision tables.

Characteristics of decision table testing, capturing logical conditions and actions in a tabular form.

The method of stating input conditions and actions as true or false in decision tables.

Calculation of combinations in decision tables using 2 raised to the power of n.

Example of creating test cases using decision tables with conditions like card type and age.

Clarification that during exams, the decision table will be provided, and candidates need to apply context.

Guidance on how to approach questions in exams using provided decision tables.

Explanation of how to identify the correct answer using the decision table in exam scenarios.

The process of checking all possible combinations in decision tables to ensure test case coverage.

Importance of keeping the approach simple when applying decision table testing in exams.

Demonstration of how to use a decision table to answer a sample exam question.

Strategy for identifying the valid test case and expected result from a decision table.

Final thoughts on the simplicity and effectiveness of decision table testing for exam preparation.

Encouragement to keep learning and exploring the context of decision table testing.

Transcripts

play00:00

Hello friends and greetings for the day

play00:02

welcome back to another tutorial on istb

play00:04

Foundation level certifications we are

play00:06

in chapter 4 talking about test analysis

play00:09

and design and continuing ahead with our

play00:11

same segment that is 4.2 the blackbox

play00:15

test techniques and as a part of today's

play00:16

tutorial we'll be getting into the next

play00:18

technique which is called as decision

play00:21

table

play00:28

testing

play00:32

now decision table testing is a unique

play00:34

testing in itself of course uh there are

play00:37

different types of requirement when we

play00:38

work on any type of product and one of

play00:41

among them could be about a condition

play00:44

driven output of course there are

play00:46

requirements where we say like hey if

play00:48

you have a car you are qualified you

play00:51

don't have a car you're not qualified so

play00:53

maybe I can ask you a question very

play00:54

first thing uh while filling up a form

play00:57

or probably registration for event that

play01:00

do you have or do you own a car and if

play01:02

you say yes I'll give you the form

play01:04

further if you say no hey you're not

play01:06

qualified to participate because

play01:08

probably this is a racing event or it's

play01:10

more about the car kind of like you know

play01:12

exhibition or maybe some kind of event

play01:15

related to automobiles so in that

play01:17

context the output or further processing

play01:19

is dependent on the Fulfillment of the

play01:21

conditions and the output which is

play01:23

action in our case will be driven by the

play01:25

set of conditions so now conditions can

play01:27

be in any number sometime it can can be

play01:30

just one single condition it could be

play01:31

two conditions three conditions four

play01:33

conditions and that reminds us about a

play01:36

basic mathematic concept which you

play01:39

probably learned during your school days

play01:41

of truth table concept where we create

play01:43

create the combination of conditions to

play01:45

get to know what are the possible

play01:47

outcomes and that's how we minimize our

play01:49

test cases now that's very simple and

play01:51

easy and should quickly recall you about

play01:53

the basics of maths and help you to

play01:54

easily remember about this technique but

play01:57

most important thing that the technique

play01:59

works works on creation of the table

play02:01

okay you need to generally create the

play02:03

table which is combinations and then

play02:06

derive the you know possible outcomes of

play02:08

those combinations from the set of

play02:10

requirements what you have with you so

play02:13

it certainly depends on the detailed

play02:14

requirements as well and if you don't

play02:16

have the detail requirements then this

play02:18

technique may not be applicable so let's

play02:20

quickly look at some of the quick

play02:21

characteristics from here and try to

play02:24

understand what this technique is all

play02:25

about so when it comes to decision table

play02:27

testing it captures the system re

play02:29

requirement that contains logical

play02:32

conditions the specifications are

play02:34

analyzed and conditions and actions of

play02:36

the system are identified in a tabular

play02:39

form right below what you see so the

play02:42

input conditions and actions are most

play02:44

often stated in a way that they must be

play02:47

true or false that means positive or

play02:49

negative or should yes or no or true or

play02:52

false any of these WIS now here the

play02:55

number of combinations will also always

play02:58

be calculated by measuring 2 raised to

play03:01

the power of n okay 2 raised to the

play03:03

power of n now here n is basically the

play03:06

number of conditions so taking a quick

play03:08

example in the table below assume that

play03:10

you have two conditions to be fulfilled

play03:13

so instead of thinking of n number of

play03:14

combinations or a number of

play03:16

possibilities of each of them for

play03:19

example if condition number one is a

play03:21

card bank card then you have debit card

play03:24

credit card in that credit card you have

play03:26

so many providers like you have Visa

play03:28

Master m X diners and whatnot so instead

play03:31

of thinking of n number of test cases

play03:34

which is exhaustive I use decision table

play03:36

and I just put combinations of that

play03:39

along with probably say condition number

play03:40

two is more about your age so age can be

play03:44

again any number of Ages are possible so

play03:46

instead of thinking of so many numbers

play03:48

to compile together and come with a

play03:51

number of permutation and combinations I

play03:53

use decision table where I just create

play03:56

four test cases if you notice here I

play03:58

have true true where the card and age

play04:00

are true both are true what should

play04:02

happen then we have true and false where

play04:04

means card is true but the age is false

play04:07

again I'm not talking about any scenario

play04:09

right now I'm just giving an example

play04:10

that how do we create the combinations

play04:12

so true true true false then we have

play04:15

false true and then we have false false

play04:18

so there are just four combinations all

play04:20

I'll do is sit down with the

play04:21

requirements and pick up the right

play04:22

actions of these combinations and just

play04:25

the four test cases are enough so will

play04:27

they ask you to create the table in the

play04:28

examination answer is no at this point

play04:31

at the foundation level the table will

play04:34

be provided to you all you will have to

play04:36

do is apply the given context to the

play04:38

table and get to the right answer a very

play04:41

easy way to solve this okay but again

play04:44

the table can be anything it can be

play04:46

about any such thing which happens

play04:48

around the world so you don't have to

play04:50

again get influenced sometime it can be

play04:52

hypothetical too which do not exist in

play04:54

this world at all so you will just have

play04:56

to uh read the data and get to the

play04:59

answer answer so to get more clarity

play05:01

let's quickly look at one of the sample

play05:03

questions to understand what does that

play05:05

even mean so taking an example right

play05:07

here uh here if you read this is a real

play05:10

exam question so don't overexp anything

play05:13

from uh the screen so this is how the

play05:15

examination question will look like so

play05:17

what is the expected result for each of

play05:19

the following test cases based on the

play05:21

table of course so there are two uh test

play05:25

case given to you that is user X and

play05:27

user Y and they have given you some

play05:29

criteria or combination and on the right

play05:31

hand side they have given you the table

play05:32

to understand so the first and foremost

play05:34

thing would be to read the table and

play05:36

understand it so right here if I read

play05:38

the table I understand this is about a

play05:40

hotel where uh they are talking about

play05:43

one condition is City Bank card member

play05:45

so if the person or the guest is holding

play05:47

a City bank card membership and second

play05:50

the type of room so of course they may

play05:52

have a different grade of room so if

play05:54

they say that they have combined two

play05:57

conditions of core four combination 2

play05:58

rais to n so 2 to two is four so we got

play06:02

four combinations here and their

play06:04

combinations are if you are a City bank

play06:06

card member holding a silver room then

play06:08

what should happen offer upgrade to Gold

play06:10

luxury then yes and platinum what should

play06:12

happen no and silver nothing no and

play06:15

platinum nothing so they have given you

play06:18

a scenario that user X that is guest X

play06:21

is holding City bank card membership and

play06:24

a silver room so if I have to just pick

play06:26

up the scenario put it into the table

play06:28

and I come to room rule one which meets

play06:30

that particularly right so it's City

play06:32

bank card member yes holding a silver

play06:35

room rule one right what should happen

play06:37

in rule one what is the output the gold

play06:39

luxury upgrade should happen so I go to

play06:42

the options AB BC D and check where a is

play06:45

offer upgrade to go luxury right and

play06:48

that's D which is very straightforward

play06:51

but however we just want to make sure

play06:53

with the second statement also the

play06:54

second statement reads as user y non

play06:58

City Bank member which which is Rule

play06:59

three and rule four and holding a

play07:01

platinum room which comes to rule four

play07:03

and for rule four it says no and no for

play07:06

both the actions which means do not

play07:08

offer any upgrade so that makes it

play07:11

pretty much clear the right answer here

play07:13

is D and that's what you have to do in

play07:16

the examination so table will be given

play07:17

to you you will be asked about apply

play07:20

these statements get to the right answer

play07:22

or some sometimes they can even ask you

play07:23

a question about the characteristics of

play07:24

decision table that there are four

play07:27

combination you know when you have two

play07:28

conditions so they will say we already

play07:30

got two test cases we need two more

play07:32

which are the two more so you should

play07:34

just quickly check that out of two true

play07:36

true false false true and false false

play07:38

which two they have already got and pick

play07:39

up the other two keep it simple okay

play07:42

let's take quickly another question from

play07:44

here to just get better Clarity and be

play07:46

more confident about answering it right

play07:49

so the next question here is taking

play07:51

another way it says given the following

play07:53

decision table which is of course on the

play07:55

right which of the following test cases

play07:57

and expected result is valid that means

play08:00

in the given options there are some

play08:02

statements which are wrong and there's

play08:04

only one statement which is right so in

play08:06

this case even if you read the table or

play08:08

don't read the table it doesn't make a

play08:10

difference you have to pick the option

play08:11

and put it in the table and find out

play08:13

which one is right so let's start

play08:15

picking up the option the option A says

play08:17

23y old so let's go to the table 23

play08:20

comes into rule two right Insurance

play08:23

class is a yes because it says A or B

play08:26

and premium is 90 that's true and the

play08:28

axess is 2,500 makes sense that's

play08:31

totally correct as for the table rule

play08:33

two fits into that let's go to option b

play08:36

51y old that comes to rule four

play08:39

Insurance class is C yes that's true

play08:41

premium is 100 no 70 that's it this is

play08:45

what we have to do at this point of time

play08:47

so 70 and the option is saying 100 which

play08:49

is wrong so cut it let's go to C 31 year

play08:52

old that is Rule three Insurance class

play08:55

is B yes premium is 70 yes access is 25

play08:59

00 no that's 500 so that's where again

play09:02

it goes wrong so C is also wrong D 42y

play09:05

old that is Rule three again premium

play09:07

class is C yes uh sorry Insurance class

play09:10

is C premium is 100 no that's 70 so

play09:14

that's also wrong so I think that's the

play09:16

most easiest technique what you would

play09:18

even learn in order to apply however

play09:21

when it comes to real time you create

play09:23

the table yourself but when it comes to

play09:26

the examination the table will be

play09:27

provided to you the information will be

play09:29

there with you you will just have to

play09:30

apply the technique and get to the right

play09:32

answer okay I hope that makes sense and

play09:35

that's all from this particular tutorial

play09:36

team should you have anything else feel

play09:38

free to comment below I'm always there

play09:39

to address your queries and answer them

play09:41

well till then keep learning keep

play09:43

exploring keep understanding the context

play09:45

thanks for watching the video deam and

play09:46

happy

play09:51

[Music]

play09:57

learning

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
ISTQBTestingDecision TablesSoftware TestingTutorialLogical ConditionsTest CasesRequirements AnalysisExam PreparationEducational
Benötigen Sie eine Zusammenfassung auf Englisch?