ISTQB v4.0 Decision Table Testing explanation with examples

Software Testing 101
13 Dec 202328:14

Summary

TLDRThis tutorial delves into decision table testing, a blackbox technique for analyzing and designing tests. It guides viewers through the process of building and simplifying decision tables, understanding conditions and actions, and calculating test coverage. The video also demonstrates how to apply these concepts to practical scenarios and solve ISTQB exam questions, emphasizing the importance of correctly defining conditions and actions to ensure accurate test outcomes.

Takeaways

  • 📚 The video is part of an i2b foundation level preparation course on Udemy, focusing on chapter four: test analysis and design, specifically decision table testing within blackbox test techniques.
  • 🔍 The script emphasizes the importance of understanding decision table testing for the i2b certification exam, as it is described abstractly in the syllabus without practical examples.
  • 📘 Rex Black's book 'Foundations of Software Testing IQ Certification' is recommended for self-study, despite its cost, as it provides valuable insights from one of the exam's authors.
  • 🛠 The tutorial walks through the practical application of decision table testing, starting with building a full decision table based on requirements, defining conditions and actions, and then simplifying the table for easier analysis.
  • 🔑 The script explains that conditions and actions are critical in decision table testing; incorrect definitions can lead to flawed test outcomes.
  • 🔄 The process of simplifying the decision table involves removing impossible combinations and merging columns with identical conditions to streamline the testing process.
  • 📉 The coverage of decision table testing is measured by the percentage of exercised columns out of the total visible columns, aiming for 100% coverage with the minimum number of test cases.
  • 📝 The tutorial illustrates how to identify impossible or contradictory situations in a decision table, which is a common task in i2b exam questions.
  • 📉 The script provides examples of calculating test coverage from a given decision table, showing how to determine which rules are covered by the test cases.
  • đŸš« The video advises that if a question on the exam has four or more conditions, it may be best to skip it due to the complexity and time required to answer correctly.
  • 📝 The tutorial concludes by highlighting that while decision table testing is complex, exam questions related to it are often simpler since the tables are pre-built, requiring only analysis.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is decision table testing, which is a part of blackbox test techniques covered in the i2b foundation level preparation course on Udemy.

  • Why is it important to understand decision table testing for the i2b foundation level preparation course?

    -Understanding decision table testing is important because it is a technique used in blackbox testing, and the i2b foundation level preparation course covers this technique in detail to help students prepare for the K3 level questions in the ISTQB exam.

  • What are the challenges faced when creating a decision table for testing?

    -The challenges include correctly defining conditions and actions, ensuring that all possible combinations of conditions are covered, and simplifying the table to avoid redundancy and improve test coverage efficiency.

  • How can one self-study decision table testing?

    -One can self-study decision table testing by referring to the book 'Foundations of Software Testing IQ Certification' by Rex Black, and by practicing with examples and scenarios similar to those found in ISTQB questions.

  • What is the significance of simplifying a decision table in testing?

    -Simplifying a decision table is significant because it helps in reducing the number of test cases needed to achieve 100% test coverage by eliminating impossible combinations and merging columns with the same outcomes.

  • How does the video script guide viewers in building a decision table?

    -The video script guides viewers by providing a step-by-step process, starting with defining conditions and actions, determining combinations, marking actions with 'X' for required outcomes, simplifying the table, and finally, deriving test cases from the simplified table.

  • What is the purpose of analyzing a decision table in ISTQB exam questions?

    -The purpose of analyzing a decision table in ISTQB exam questions is to verify if the table is built correctly, identify any mistakes or conflicts, and calculate the test coverage to ensure all conditions and actions are adequately tested.

  • How does the video script help in understanding the application of decision table testing in practice?

    -The video script helps by providing additional explanations and examples on how to apply the technique in practice, including how to construct and simplify decision tables, and how to derive test cases from them.

  • What are the steps involved in simplifying a decision table?

    -The steps involved in simplifying a decision table include deleting columns with impossible combinations of conditions, merging columns where conditions do not affect the outcome, and ensuring that the table covers all feasible combinations for 100% test coverage.

  • How can one determine the test coverage of a decision table?

    -One can determine the test coverage of a decision table by counting the number of exercised columns (feasible combinations of conditions) and dividing it by the total number of visible columns, then expressing the result as a percentage.

  • Why is it recommended to skip questions with four or more conditions on the exam if time is limited?

    -It is recommended to skip questions with four or more conditions due to the complexity and time-consuming nature of building a decision table from scratch. Answering such questions can take significantly longer than the allotted time for each question on the exam.

Outlines

00:00

📚 Introduction to Decision Table Testing

This paragraph introduces the topic of decision table testing as part of blackbox test techniques within the I2B foundation level preparation course on Udemy. It emphasizes the importance of understanding decision table testing for the K3 level of the ISTQB certification exam. The speaker suggests using Rex Black's book for additional study, noting that while the book is expensive, it may be available through an organization or an older edition could suffice. The paragraph also outlines the steps for applying decision table testing in practice, starting with self-study materials and progressing to building and analyzing decision tables based on requirements.

05:00

🔍 Building and Simplifying Decision Tables

The speaker explains the process of building a decision table, starting with defining conditions and actions based on requirements. They illustrate how to create a full decision table with all possible combinations of conditions and then simplify it by removing impossible combinations and merging columns with identical actions. The paragraph highlights the importance of simplifying the table to reduce the number of test cases needed for 100% test coverage. It also discusses how to determine the correct actions for each combination of conditions and the significance of simplifying the table to make the testing process more efficient.

10:01

📘 Advanced Decision Table Construction

This paragraph delves into the complexities of creating decision tables with more than two conditions, explaining how the number of combinations increases exponentially with each additional condition. The speaker advises that if faced with four or more conditions on an exam question, it may be best to skip it and return to it later. The paragraph also demonstrates how to simplify a decision table by identifying and merging columns with the same outcomes, regardless of certain conditions, ultimately reducing the number of tests required for complete coverage.

15:03

📝 Analyzing Decision Tables for ISTQB Exam

The focus shifts to analyzing pre-built decision tables for the ISTQB exam, rather than constructing them from scratch. The speaker discusses how to identify impossible or contradictory situations within a table based on the requirements. They provide an example from an official ISTQB sample exam, guiding the audience through the process of validating each rule in the table against the given requirements to find an impossible situation described in one of the answer options.

20:05

🔱 Calculating Test Coverage Using Decision Tables

This paragraph explains how to determine the level of test coverage using decision tables. It demonstrates the process of identifying which rules are covered by the test cases and calculating the percentage of coverage achieved. The speaker uses an example from the ISTQB sample exam to show how to analyze the test cases against the rules in the decision table, ultimately determining the test coverage percentage and selecting the correct answer from the provided options.

25:07

đŸ› ïž Complex Decision Table Analysis in ISTQB

The final paragraph addresses a more complex scenario where the decision table provided in an ISTQB exam question is incomplete, and the examinee must reconstruct a full table to identify conflicting conditions. The speaker illustrates how to separate combined conditions into individual columns and expand the table to its full form. They then show how to identify contradictory rules within the table, leading to the correct answer in an exam question. The paragraph concludes by emphasizing the importance of understanding how to create decision tables for both practical work and solving ISTQB exam questions.

Mindmap

Keywords

💡Test Analysis and Design

Test Analysis and Design refers to the process of evaluating and planning tests to ensure the quality of software. In the video, this concept is central to understanding how to apply various testing techniques, including decision table testing, which is a key part of the chapter discussed.

💡Blackbox Test Techniques

Blackbox testing is a method of software testing where the tester checks the functionality of an application without any knowledge of the internal code. The video focuses on decision table testing as a type of blackbox technique, emphasizing its importance in the context of the i2b foundation level preparation course.

💡Decision Table Testing

Decision table testing is a specific blackbox testing technique used to convert complex business rules into a table format for easier analysis and test case generation. The script describes this technique in detail, showing how to build and simplify decision tables to achieve comprehensive test coverage.

💡Foundations of Software Testing

The book 'Foundations of Software Testing' by Rex Black is mentioned as a valuable resource for understanding decision table testing. It is one of the recommended materials for self-study and is authored by one of the exam creators, making its content highly relevant to the video's theme.

💡Conditions and Actions

In the context of decision table testing, 'conditions' are the scenarios or states that can occur, and 'actions' are the responses of the system to those conditions. The script explains how to define these for building a decision table, which is crucial for creating effective test cases.

💡Test Coverage

Test coverage is a measure of how much of the software's functionality is tested by the test cases. The script discusses how to achieve 100% test coverage using decision table testing by ensuring all combinations of conditions are exercised through test cases.

💡Simplification of Decision Tables

Simplification involves reducing the complexity of a decision table by merging columns with identical conditions and actions or removing impossible combinations. The script highlights the importance of this step in making the testing process more efficient and reducing the number of test cases needed.

💡ISTQB

ISTQB stands for International Software Testing Qualifications Board, which is a global organization that certifies software testers. The video script mentions ISTQB in relation to the exam questions and the certification level K3, indicating the relevance of the discussed techniques to professional certification.

💡Equivalence Partitioning

Equivalence partitioning is another blackbox testing technique mentioned in the script, which involves dividing the input of a software system into groups of similar data from which test cases can be derived. It is used as a comparison to decision table testing in terms of complexity and application.

💡BVA

BVA stands for Boundary Value Analysis, a testing technique that focuses on the boundaries of input ranges. The script briefly mentions BVA as part of the broader discussion on blackbox testing techniques, contrasting it with decision table testing.

💡Self-Study

Self-study is the process of learning independently, which the script encourages by providing resources and suggesting ways to apply the theory of decision table testing in practice. The video aims to support viewers in their self-study journey towards mastering software testing techniques.

Highlights

Introduction to Chapter Four on Test Analysis and Design, focusing on decision table testing within blackbox test techniques.

The video is part of the i2b foundation level preparation course on Udemy, with additional study materials provided.

Decision table testing is described abstractly in the syllabus, necessitating this video for practical application guidance.

Recommendation of the book 'Foundations of Software Testing IQ Certification' by Rex Black for in-depth understanding.

Explanation of the importance of correctly defining conditions and actions in decision table testing.

Construction of a full decision table requires defining conditions, actions, and their combinations.

The significance of simplifying decision tables to improve test coverage efficiency.

How to identify and merge columns with identical conditions and actions to streamline decision tables.

Calculating test coverage as the ratio of exercised columns to total visible columns.

The complexity of building decision tables with multiple conditions and the exponential growth of combinations.

Advice on skipping questions with four or more conditions on exams to manage time effectively.

Analyzing pre-built decision tables in exam questions to find errors or calculate coverage.

Using the decision table technique to derive test cases from given conditions and actions.

The process of identifying impossible or contradictory situations in decision tables.

Comparing the complexity of decision table testing to other blackbox techniques like equivalence partitioning and boundary value analysis.

Practical examples of applying the decision table testing technique to ISTQB exam questions.

Strategies for managing time and deciding when to skip complex questions during the ISTQB exam.

Conclusion summarizing the importance of understanding decision table testing for both practical application and exam preparation.

Transcripts

play00:01

hi everyone today we'll take a closer

play00:04

look at chapter four test analysis and

play00:06

design we will learn the section

play00:08

decision table testing in the topic

play00:11

blackbox test techniques let's

play00:14

begin this video is a part of the i2b

play00:17

foundation level preparation course on

play00:19

udemy for more information check the

play00:21

description below the

play00:23

video we will find out what setting

play00:26

materials we can use for selfstudy also

play00:29

together with you we'll find the correct

play00:30

answers to several iqp questions with

play00:32

the help of the theory let's begin with

play00:35

study

play00:37

materials as with the equivalence

play00:39

partioning and bva the decision table

play00:41

testing is described in a syllabus in a

play00:43

very abstract style without examples and

play00:46

additional explanations which are

play00:47

necessary for the questions of the K3

play00:49

level that is why we created this video

play00:52

to give you additional explanations on

play00:54

how to apply the technique in practice

play00:56

however we will start with

play00:58

self-studying

play01:00

Additionally you can WR information

play01:02

about the decision table testing in the

play01:04

book foundations of software testing IQ

play01:07

certification by rex black this is one

play01:10

of the authors of the exam and his

play01:11

explanations will be very helpful with

play01:14

the threat it doesn't matter which

play01:16

version of the book you find Third

play01:17

Edition or fourth edition both have

play01:19

valid

play01:21

information the problem is that the

play01:23

books are not freely available as they

play01:25

are quite expensive but maybe they are

play01:27

available for your organization or you

play01:30

might be lucky enough to find at least

play01:31

the 2011

play01:33

addition now let's learn how you can use

play01:36

Theory written in the syllabes in

play01:38

practice you can pause the video and

play01:40

familiarize yourself with the content of

play01:42

the slide we presented the theory of the

play01:45

syllabus in a logical sequence of

play01:47

actions that must be done in a simplest

play01:49

test cases on decision table

play01:52

testing it is important to note that

play01:54

using this technique in practice and

play01:56

answering IP questions are two very

play01:58

different things at work when you use

play02:00

the test design technique you will need

play02:02

one analyze the requirements two

play02:05

determine conditions and actions three

play02:08

build a decision table and it is in the

play02:10

third step that there is a main

play02:13

difference in I toy questions the

play02:16

decision table is already built very

play02:18

often you need to analyze whether it is

play02:20

built correctly find a mistake in it or

play02:22

simply calculate the coverage and for

play02:25

this we still need to know how to build

play02:27

a decision

play02:28

table

play02:30

that is why we will start our tutorial

play02:32

with the construction of two tables

play02:34

based on the requirements similar to

play02:35

those that you can meet in iqb questions

play02:39

you can pause the video and read the

play02:41

requirements and try to build a decision

play02:43

table yourself and then compare the

play02:47

results at work you can use AI it copes

play02:50

quite well with such tasks however you

play02:53

must know how to build tables in order

play02:55

to be sure that the AI does not make

play02:57

mistakes and then on exam you will not

play03:00

have the opportunity to use artificial

play03:03

intelligence therefore we will go

play03:05

through all the steps of using decision

play03:07

table testing to derive test cases the

play03:10

first step is to build a full decision

play03:12

table that has enough columns to cover

play03:15

every combination of

play03:17

conditions we need to define the

play03:19

conditions and the resulting actions of

play03:20

the system these form the rows of the

play03:23

table usually with the conditions at the

play03:25

top and the actions at the bottom let's

play03:28

find the conditions in our requir ments

play03:31

for beginners this is quite a difficult

play03:33

task that is why in the eyes to be

play03:35

questions are built for us in short we

play03:38

have two conditions this may or may not

play03:41

be the first attempt at the exam a

play03:43

candidate may or may not pass the

play03:46

exam that's how we write in table column

play03:50

conditions have only two values yes or

play03:51

no and accordingly we write them in such

play03:54

style that one condition corresponds to

play03:56

Boolean values often in the form of

play03:59

questions

play04:01

let's check the actions now those are

play04:03

easier to Define in the requirements and

play04:05

we can Define three actions Grant access

play04:08

to practical

play04:09

exam offer a second try and ban from

play04:12

attempting for one month this is most

play04:15

difficult and the most critical point in

play04:16

the decision table test design technique

play04:19

if the conditions and actions are

play04:21

incorrectly defined all subsequent steps

play04:23

will lead to incorrect

play04:25

results the next step in building a

play04:27

complete decision table is determine the

play04:29

combinations of binary values for the

play04:31

conditions in reality values are not

play04:34

always binary sometimes one condition

play04:36

can have three or more values but this

play04:38

greatly complicates the construction of

play04:40

the table therefore in istb questions

play04:43

the conditions are mostly

play04:46

binary if we have two conditions Each of

play04:49

which has two values true or false then

play04:51

the table will have four possible

play04:53

combinations true true true false false

play04:57

true false false

play05:00

if there were three conditions then

play05:02

there would be eight combinations if

play05:04

four then 16 we'll talk about the

play05:07

formula a little later in this video

play05:10

let's move on to the next

play05:12

step in the vast majority of cases the

play05:15

sign X indicates that the action must

play05:17

take place if the action cannot take

play05:19

place then the cells are left

play05:22

empty the full decision table will look

play05:24

like

play05:25

this the first rule is if this is the

play05:28

first attempt the exam and the exam is

play05:31

passed successfully then access to the

play05:33

Practical exam is provided we Mark the

play05:36

action to provide access to the

play05:38

Practical exam with an X and we leave

play05:40

the other two actions

play05:42

empty the rule does not say anything

play05:44

about whether it should be the first or

play05:46

second attempt accordingly the mark acts

play05:49

on the second combination as well we do

play05:52

the same with other combinations of

play05:54

conditions true false false true false

play05:58

false this is called a full decision

play06:01

table we have all possible combinations

play06:03

of conditions we Define actions for each

play06:06

of the

play06:07

combination once the complete table is

play06:09

created we can simplify it and we advise

play06:12

you to start with the deleting columns

play06:14

containing invisible combinations of

play06:17

conditions but in our requirements there

play06:20

is no mention of any restrictions or

play06:22

impossible combinations there are only

play06:24

conditions and

play06:26

actions with the help of this we can

play06:28

easily determine which action refers to

play06:31

which combination of conditions

play06:33

sometimes there are conflicts in tables

play06:35

based on conditions for example some

play06:38

combination would lead to two actions or

play06:40

two contradictory actions at the same

play06:42

time but not in our

play06:44

case accordingly we skip the step and

play06:47

move to the merging columns in which

play06:49

some conditions do not affect the

play06:51

outcome into a single

play06:53

column for this step you first need to

play06:56

pay attention to

play06:57

actions and to find find those rules

play07:00

where there are the same actions and the

play07:01

same results in our case these are the

play07:05

first and third rules as you can see

play07:07

access to the Practical exam is provided

play07:10

in both

play07:11

cases after that we look at the

play07:14

conditions that is if the theoretical

play07:17

exam is passed then access to the

play07:19

Practical exam is

play07:21

granted that is it does not matter

play07:24

whether it's the first attempt or not

play07:27

accordingly instead of true false marks

play07:29

we can put a

play07:31

Dash as a result we get two identical

play07:34

columns which can be merged into one

play07:36

this is how the table is simplified you

play07:39

may have the question for what purpose

play07:41

do we need to simplify the table and the

play07:44

answer to this question is in the next

play07:46

step in decision table testing the

play07:49

coverage items are the columns

play07:50

containing feasible combinations of

play07:52

conditions to achieve 100% coverage with

play07:54

this technique test cases must exercise

play07:57

all these columns

play07:59

as you can see after simplifying the

play08:01

table we have only three columns three

play08:04

combinations that lead to different

play08:06

actions accordingly we only need three

play08:09

tests to achieve 100% test coverage we

play08:12

write only one test per column per the

play08:14

rule pass the exam on the first attempt

play08:17

fail the exam on the first attempt fail

play08:20

the exam on the second attempt and we do

play08:22

not need to separately test the scenario

play08:24

of passing the exam on the second

play08:26

attempt coverage is measured as the

play08:29

number of exercise columns divided by

play08:31

the total number of visible columns and

play08:33

expressed as a percentage we have three

play08:36

columns and three rules and we have

play08:38

three tests Each of which covers one of

play08:41

the rules accordingly the test coverage

play08:44

is

play08:45

100% if we did not simplify the table

play08:48

then we would have four columns and four

play08:51

rules accordingly with three tests we

play08:54

would achieve only 75% coverage the

play08:57

second column would need an additional

play08:58

test

play09:01

pass the exam on the second attempt this

play09:03

is why the tables are simplified to

play09:05

cover more conditions and actions with

play09:07

fewer tests this may not seem important

play09:10

but let's take another example and let's

play09:12

complicate the description of the task

play09:14

with just one

play09:17

sentence you can pause the video and

play09:19

read the requirements and try to build a

play09:21

decision table yourself and then compare

play09:24

the results we start from scratch like

play09:27

last time and we start with the full

play09:30

decision table we need to Define

play09:32

conditions and actions this time we have

play09:35

three conditions two exams that can be

play09:37

passed or

play09:39

failed as we said this is the most

play09:41

difficult step because there are many

play09:43

options for how to build the

play09:46

table so we defined three conditions

play09:50

theoretical exam past practical exam

play09:52

past and the first attempt of the exam

play09:56

let's define actions

play09:58

now again there are several options for

play10:01

defining actions but we will highlight

play10:04

four issue a driving license request

play10:07

additional driving license request to

play10:09

take the exam again ban from attempting

play10:12

for one month and now we can move on to

play10:15

the next

play10:16

step Mark the conditions as yes or no or

play10:20

true or false or other marks that you

play10:22

like

play10:23

better this time we have eight

play10:26

combinations in total as we said with

play10:29

each subsequent Boolean value of the

play10:31

condition we get twice as many

play10:34

combinations that is we have two states

play10:37

true and false and we have three

play10:39

conditions accordingly we have two in

play10:42

the cube multiply 2 by two and by

play10:45

two this is important to understand in

play10:48

order to build complete decision tables

play10:50

if you have one condition that can be

play10:52

true or false then you only have two

play10:54

options true and false since you have

play10:57

two conditions then you you already have

play10:59

four options four combinations of true

play11:02

and

play11:03

false according to each additional

play11:05

condition the number of combinations

play11:07

increases

play11:09

twice eight if three conditions and 16

play11:12

if

play11:13

four accordingly now it becomes clear

play11:17

why to simplify the

play11:18

tables after all the more combinations

play11:21

the bigger and more complicated the

play11:24

table the authors of istb tests mostly

play11:28

understand the complexity of of using

play11:29

the decision table technique and

play11:31

therefore in most questions you will

play11:33

find two or three

play11:35

conditions however there are

play11:38

exceptions for example aqb has questions

play11:42

like this where you have seven

play11:44

conditions yes there are certain

play11:46

limitations in the description but they

play11:48

do not simplify the

play11:50

situation the full table looks like this

play11:54

it's very difficult to create it and

play11:56

even worse it's quite easy to make a

play11:58

mistake

play11:59

therefore Our advice is as follows if

play12:02

you are unlucky and there is a question

play12:04

with four or more conditions on the exam

play12:07

we advise you to skip it and come back

play12:09

to it when you answer all the other

play12:12

questions all questions have the same

play12:14

value one point and finding the correct

play12:17

answer to a question with four or more

play12:19

conditions can take much longer than 5

play12:22

minutes but mostly it is not the case as

play12:25

you can see both IB examples have only

play12:28

three condition conditions in most cases

play12:31

the tables are built for you and you

play12:33

only need to analyze them and answer the

play12:36

question let's go back to our

play12:39

table long story short we have eight

play12:42

possible combinations of the states of

play12:45

conditions let's move on to the next

play12:48

step we need to label the consequences

play12:50

of each combination with the X

play12:53

sign accordingly read the conditions

play12:55

carefully and Mark each action with an X

play12:58

when the ction must take place according

play13:00

to the

play13:01

conditions the first rule as as follows

play13:04

if the candidates have successfully

play13:06

passed both the theoretical and

play13:08

practical exams the driving license is

play13:10

issued so we put an x mark on the action

play13:14

issue a driving

play13:15

license the rule does not say anything

play13:18

about whether it should be the first or

play13:20

second attempt accordingly we mark x on

play13:23

the second combination as

play13:26

well and in this way we put all eight

play13:29

marks this is the most difficult and

play13:31

longest stage the more rules and

play13:33

conditions you have described in the

play13:35

requirements or use a story The more

play13:37

difficult it is to build a

play13:38

table let's move on to the next

play13:42

step now we have to simplify the

play13:44

complete decision table we start with

play13:46

deleting columns containing infusible

play13:48

combinations of conditions this time we

play13:51

have such

play13:52

conditions we have this contradictory

play13:55

requirement only candidates who have

play13:57

successfully passed the theoretical exam

play13:59

a granted access to the Practical exam

play14:02

in fact it can be both an action and a

play14:05

constraint but for our example we

play14:07

decided to use it as a

play14:09

[Music]

play14:10

constraint the rules from the fours to

play14:12

the E provide that theoretical exam is

play14:15

failed after that there is a condition

play14:18

regarding the Practical exam which is

play14:19

twice true and twice

play14:22

false and we can replace these true and

play14:25

false with na a this means that the

play14:28

condition is invasible for a given Rule

play14:31

and when we do this we will get two

play14:32

identical columns that can be

play14:35

merged rule five and Rule seven now they

play14:39

are the same and we can delete one of

play14:42

them same with rules six and 7even if

play14:46

the theoretical exam is failed and it

play14:48

was not the first attempt then the

play14:50

candidate is banned for one month one of

play14:53

these columns can be

play14:55

deleted this is not an ideal example of

play14:58

delete deltion because there are rules

play15:00

that would delete all columns in general

play15:02

but we wanted to show you that there is

play15:04

no need to rush to delete first you

play15:07

should Mark The Columns as

play15:09

na thus we have only six columns left

play15:13

which significantly reduces the number

play15:15

of tests required for 100% test coverage

play15:19

let's move to the next

play15:21

step merging columns in which some

play15:24

conditions do not affect the outcome

play15:25

into a single

play15:27

column as in the previous example the

play15:30

first rule and the second rule can be

play15:32

merged into one regardless of whether it

play15:35

is the first attempt or not if both

play15:38

tests are passed then the driver's

play15:40

license is issued thus we only have five

play15:42

columns in the table and the last step

play15:46

remained to achieve 100% coverage with

play15:49

this technique test cases must exercise

play15:51

all columns accordingly five tests are

play15:54

needed to test five

play15:56

columns as we mentioned earlier the

play15:58

decision table technique is quite

play16:00

complex after all the decision table

play16:03

itself is very difficult and

play16:05

timeconsuming to

play16:07

build luckily in most questions the

play16:10

table is already created and we only

play16:12

need to analyze

play16:13

it that's all we discussed all the

play16:16

theoretical and practical aspects of

play16:18

applying the decision table testing test

play16:20

design Technique we hope that it is now

play16:23

clear to you and it will be easier to

play16:25

answer IB questions and also to use it

play16:28

in

play16:30

practice let's try to use what we have

play16:32

learned about the decision table test

play16:34

technique in the example of questions

play16:36

from the official IB exam

play16:39

sampol there is 100% chance of having

play16:42

one question of K3 level on the exam

play16:45

ticket related to the decision table

play16:47

testing the K3 level questions are the

play16:50

most difficult some you can answer in 1

play16:53

three minutes but some questions are so

play16:55

twisted and confusing that you can spend

play16:57

10 or more minutes minutes on

play16:59

them in the new sample exam version 4.0

play17:02

document we can find the following

play17:04

question those who want to try to answer

play17:07

the question themselves can pause the

play17:09

video let's find the answer to it in the

play17:12

study

play17:14

materials in previous questions about

play17:16

blackbox test design techniques

play17:19

equivalence partitioning and bva we

play17:21

started with test by reading the

play17:22

description of the question very

play17:23

carefully to find the information that

play17:26

can make changes to the existing

play17:27

checklist

play17:29

the situation is different with a

play17:31

decision table testing Technique we

play17:33

don't need to create a decision table we

play17:35

need to analyze the existing one and

play17:37

find the right

play17:39

answer that's why in most questions we

play17:42

either do not follow the checklist at

play17:44

all or use only one or two steps from

play17:46

the

play17:48

checklist as we said before creating a

play17:51

table based on requirements is quite a

play17:53

long and complex task where it is very

play17:55

easy to make mistakes that is why why in

play17:59

I to QB questions the tables are

play18:01

generated for

play18:03

us this greatly simplifies the search

play18:05

for correct answers to questions for

play18:08

example this question should based only

play18:10

on the feature description of the

play18:11

customer relations management system

play18:14

find rules that describe an impossible

play18:17

situation let's try to do

play18:20

it we have four answer options and we

play18:23

have to check whether the rule in the

play18:25

table meets the conditions in the

play18:26

requirements for this

play18:28

we needed experience in building tables

play18:30

on our

play18:32

own the first rule is anyone can rent a

play18:35

bicycle but members receive a 20%

play18:38

discount as we see the condition of

play18:40

being a member is set to a true and the

play18:43

action 20% discount is marked as such

play18:45

was happened with a cross

play18:48

mark accordingly these table rows me the

play18:52

conditions in the requirements let's

play18:54

check the next

play18:56

condition the second rule is

play18:58

however if the return deadline is missed

play19:01

the discount is no longer available as

play19:04

we see the condition of missed deadline

play19:06

is set to a false and the action 20%

play19:09

discount is marked as such what happened

play19:11

with a

play19:12

Crossmark accordingly these table rows

play19:15

also meet the

play19:17

requirements let's check the next

play19:20

condition the third rule is after 15

play19:24

rentals members get a gift a t-shirt as

play19:27

we see the condition of the 15 rental is

play19:30

set to a true and the action gift

play19:33

t-shirt is marked as such was happened

play19:35

with a cross mark accordingly these

play19:38

table rows also meet the

play19:41

requirements thus the fourth rule in the

play19:43

description table is valid and describes

play19:46

the possible variance of situations

play19:49

correctly we will not consider each

play19:51

answer option and each role in the table

play19:53

in detail with the same steps we can

play19:56

determine that answer option B describes

play19:59

a possible

play20:02

situation same as answer option C with a

play20:05

six rule the terms and conditions are

play20:08

valid and meet the

play20:11

requirements The Impossible situation is

play20:13

described only in answer option D as we

play20:16

see the condition of being a member is

play20:19

set to a false just like in the previous

play20:22

rules but there is one difference rules

play20:26

five 6 and seven

play20:28

the action gift t-shirt is left blank

play20:31

the action hasn't

play20:34

happened but in the rule eight the

play20:36

action gift t-shirt is marked as such

play20:39

what happened with a cross

play20:41

mark since the third in the requirements

play20:43

is described as that after 15 rentals

play20:46

members get a gift a t-shirt this means

play20:50

that only members receive a

play20:53

t-shirt accordingly answer option D

play20:56

describes an impossible situation

play20:58

after 15 rentals not a member got a gift

play21:02

a T-shirt and is the correct

play21:06

answer all other options a B and C are

play21:10

valid and describe possible

play21:12

situations as you can see in this

play21:14

example we did not need to follow the

play21:16

checklist because the description table

play21:18

was built for us and it was only

play21:20

necessary to analyze its validity let's

play21:23

check one more example of the I top

play21:26

question in the new sample exam version

play21:29

4.0 document we can find the following

play21:31

question those who want to try to answer

play21:34

the question themselves can pause the

play21:36

video let's find the answer to it in the

play21:38

study

play21:39

materials as we can see the question is

play21:42

similar to the previous one sometimes

play21:44

the table is already created for us and

play21:47

we need to determine the level of test

play21:50

coverage accordingly we cross out two

play21:53

main steps from our checklist and we

play21:56

leave only the last step in decision

play21:58

table testing the coverage items are the

play22:01

columns containing feasible combinations

play22:03

of conditions to achieve 100% coverage

play22:06

with this technique test cases must

play22:08

exercise all these

play22:10

columns so we start with the first test

play22:13

the first condition is cheral equals to

play22:17

125 which aligns with two rules rule

play22:21

three and four are both rules that

play22:23

require a cholesterol level of 125 to

play22:26

200 we Mark rule three and four against

play22:30

the first test and must now look at the

play22:33

next condition blood pressure equals to

play22:38

141 as you can see the third rule

play22:41

involves a blood pressure of less than

play22:44

140 accordingly the first test case

play22:47

covers only the force Rule and thus we

play22:50

need to consider four more test

play22:52

cases again as in the previous question

play22:56

we will not explain each test case step

play22:58

by step because it's quite

play23:00

obvious just note that first two tests

play23:03

cover rule four the third and fourth

play23:06

test cover rule two the fifth test

play23:09

covers the fifth Rule now that all test

play23:13

cases have been analyzed we already did

play23:15

this at the beginning of the

play23:17

tutorial it is best to illustrate this

play23:20

with the help of a table as you can see

play23:23

we have a lot of rules the first and

play23:26

third rules are not covered by the tests

play23:29

the second rule is covered twice by the

play23:31

fact that we have two tests for one rule

play23:34

does not affect the final coverage it

play23:36

doesn't matter how many tests per rule

play23:39

it only matters if the rule is covered

play23:41

by the tests or

play23:43

not there are five rules in total and

play23:46

only three of them are covered by tests

play23:49

one rule is

play23:50

20% accordingly the test coverage will

play23:53

be

play23:54

60% and this is answer option b as you

play23:58

can see although decision table testing

play24:00

is a more complex technique than

play24:02

equivalence partioning and bva the

play24:05

questions on it are simpler provided

play24:07

that you do not need to build a complete

play24:09

table of conditions and actions let's

play24:12

check another example of an IB

play24:15

question in the new sample example

play24:17

version 4.0 document we can find the

play24:20

following

play24:21

question those who want to try to answer

play24:23

the question themselves can pause the

play24:25

video this question which at glance

play24:28

asmol is actually much more complicated

play24:31

than the previous one after all we have

play24:34

a shortened table of conditions and

play24:35

actions and we need to build a full

play24:38

table that was before the

play24:40

reduction from our checklist we only

play24:43

need one item marging columns in which

play24:45

some conditions do not affect the

play24:47

outcome into a single

play24:50

column so we have a table in which there

play24:53

are three dashes we need to separate the

play24:55

combined columns into separate ones

play24:58

instead of a dash we can write true or

play25:00

false thanks to this it will be easier

play25:02

to illustrate how a complete table of

play25:04

conditions and actions is

play25:06

formed in this way two columns are

play25:09

formed from the First Column one of

play25:12

which must have the condition first

play25:13

attempt at the

play25:15

exam true and the other column will have

play25:18

it as false accordingly the First Column

play25:22

is cleared and we can proceed to rule

play25:24

four dividing it according to the same

play25:26

steps

play25:28

and thus instead of three columns and

play25:30

three rules we got five the next rule is

play25:35

complicated as you can see two

play25:37

conditions are combined into one the

play25:40

condition first attempt at the exam is

play25:43

marked with a dash and the condition

play25:45

practical exam passed is marked with a

play25:48

dash and here it is important not to

play25:51

make a mistake and disconnect both

play25:53

conditions in a

play25:54

row first let's separate the first

play25:57

condition in the same way as before as a

play26:00

result we will get two new columns one

play26:02

is marked as true the other as

play26:06

false and as you can see as a result of

play26:09

that unmar we got two more columns with

play26:11

a dash accordingly we will get two

play26:14

additional

play26:15

columns first let's note that both can

play26:17

have a third condition practical exam

play26:20

passed both true and

play26:23

false in this way we will get eight

play26:25

columns instead of three that we had the

play26:28

beginning as we said this question is

play26:31

much more complicated than it seemed at

play26:33

first

play26:35

glance the last step is to search for

play26:37

conflicting conditions and it doesn't

play26:40

take long to find them the sixth rule

play26:43

has all the conditions as false and the

play26:45

corresponding action requests to take

play26:47

the exam again the eight rule also has

play26:50

all three conditions as false but a

play26:53

completely different action request

play26:55

additional driving

play26:56

license

play26:58

thus answer option D is correct the

play27:01

false false false conditions will show

play27:04

that there are contradictory rules in

play27:06

the decision

play27:07

table even this difficult question in

play27:10

our opinion is much simpler than the

play27:12

equivalence partitioning and bva because

play27:15

it has much less ambiguities and

play27:18

contradictions it is almost never

play27:20

necessary to build a decision table from

play27:22

scratch in eyes to K questions

play27:25

accordingly we rarely go through all the

play27:27

steps in our checklist still it's very

play27:30

important to know exactly how to create

play27:32

a decision table because at work you

play27:34

will have to create them

play27:36

yourself also without understanding

play27:39

exactly how to create a decision table

play27:41

it will be almost impossible to solve

play27:43

the questions of

play27:46

istqb for the topic blackbox test

play27:49

techniques we have about 50 questions in

play27:51

total about 10 of them will be related

play27:54

to the section decision table testing if

play27:57

is more than enough for

play28:00

practice well that's the end of today's

play28:02

tutorial we hope to see you in the next

play28:13

lecture

Rate This
★
★
★
★
★

5.0 / 5 (0 votes)

Étiquettes Connexes
Software TestingISTQBDecision TablesTest AnalysisDesign TechniquesBlackbox TestingExam PreparationTest CoverageTest CasesCertification
Besoin d'un résumé en anglais ?