ISTQB

Loading

What is Boundary value analysis and Equivalence partitioning?

CTFL (Foundation)
CTFL (Foundation)
Author
rua_0611
Date
2012-06-09 12:00
Views
62258093

Boundary value analysis and Equivalence partitioning, explained with simple example:

Boundary value analysis and equivalence partitioning both are test case design strategies in black box testing.

Equivalence Partitioning:

In this method the input domain data is divided into different equivalence data classes. This method is typically used to reduce the total number of test cases to a finite set of testable test cases, still covering maximum requirements.

In short it is the process of taking all
possible test cases and placing them into classes. One test value is
picked from each class while testing.

E.g.: If you are testing for an input box accepting
numbers from 1 to 1000 then there is no use in writing thousand test
cases for all 1000 valid input numbers plus other test cases for
invalid data.

Using equivalence partitioning method above test cases can be
divided into three sets of input data called as classes. Each test case
is a representative of respective class.

So in above example we can divide our test cases into three equivalence classes of some valid and invalid inputs.

Test cases for input box accepting numbers between 1 and 1000 using Equivalence Partitioning:
1) One input data class with all valid inputs. Pick a
single value from range 1 to 1000 as a valid test case. If you select
other values between 1 and 1000 then result is going to be same. So one
test case for valid input data should be sufficient.

2) Input data class with all values below lower limit. I.e. any value below 1, as a invalid input data test case.

3) Input data with any value greater than 1000 to represent third invalid input class.

So using equivalence partitioning you have categorized all possible
test cases into three classes. Test cases with other values from any
class should give you the same result.

We have selected one representative from every input class to design
our test cases. Test case values are selected in such a way that
largest number of attributes of equivalence class can be exercised.

Equivalence partitioning uses fewest test cases to cover maximum requirements.

Boundary value analysis:

It’s widely recognized that input values at the extreme ends of input domain cause more errors in system. More application errors occur at the boundaries of input domain. ‘Boundary value analysis’ testing technique is used to
identify errors at boundaries rather than finding those exist in center
of input domain.

Boundary value analysis is a next part of Equivalence partitioning
for designing test cases where test cases are selected at the edges of
the equivalence classes.

Test cases for input box accepting numbers between 1 and 1000 using Boundary value analysis:
1) Test cases with test data exactly as the input boundaries of input domain i.e. values 1 and 1000 in our case.

2) Test data with values just below the extreme edges of input domains i.e. values 0 and 999.

3) Test data with values just above the extreme edges of input domain i.e. values 2 and 1001.

Boundary value analysis is often called as a part of stress and negative testing.

Note: There is no hard-and-fast rule to test only
one value from each equivalence class you created for input domains.
You can select multiple valid and invalid values from each equivalence
class according to your needs and previous judgments.

E.g. if you divided 1 to 1000 input values in valid
data equivalence class, then you can select test case values like: 1,
11, 100, 950 etc. Same case for other test cases having invalid data
classes.

This should be a very basic and simple example to understand the Boundary value analysis and Equivalence partitioning concept.

(Source: Internet - From Indian's blog ^_^)

Total 3

  • 2011-01-12 22:00

    Hi,

    It Looks good!!! Nice Example

    Thanks,
    L.Rajarajan


  • 2011-06-03 13:45

    Thanks


  • 2012-06-12 18:07

    very good, simple, easy to understand, accurate article on this topic. must read for new testers who want to learn about BVA or Equivalence Partitioning

    thank you so much for sharing. regards


Total 1,272
Number Title Author Date Votes Views
Notice
ISTQB_CTAL-TM_Syllabus v3.0
admin | 2025.06.16 | Votes 0 | Views 39875420
admin 2025.06.16 0 39875420
Notice
CTFL (Certified Tester Foundation Level) Syllabus 4.0
admin | 2024.09.15 | Votes 0 | Views 51741204
admin 2024.09.15 0 51741204
Notice
ISTQB Foundation - Certified Tester (2018) : Official Sample Exam Set 2 with Answer (4)
Testersbest | 2019.06.21 | Votes 0 | Views 60759393
Testersbest 2019.06.21 0 60759393
Notice
ISTQB Foundation - Certified Tester (2018) : Official Sample Exam Set 1 with Answer (3)
Testersbest | 2019.06.21 | Votes 0 | Views 60739510
Testersbest 2019.06.21 0 60739510
Notice
ISTQB Foundation Certified Tester (2018) : New Exam Rule (1)
Testersbest | 2019.06.21 | Votes 0 | Views 62196793
Testersbest 2019.06.21 0 62196793
Notice
ISTQB Foundation - Certified Tester Syllabus (2018)
VTB | 2018.11.14 | Votes 0 | Views 62067066
VTB 2018.11.14 0 62067066
Notice
ISTQB Advanced Level Syllabus (2016) Security Tester
VTB | 2018.10.26 | Votes 0 | Views 60895621
VTB 2018.10.26 0 60895621
Notice
ISTQB Advanced Level Syllabus (2012) Technical Test Analyst
VTB | 2016.05.06 | Votes 0 | Views 60085466
VTB 2016.05.06 0 60085466
Notice
ISTQB Advanced Level Syllabus (2012) Test Manager
VTB | 2016.05.06 | Votes 0 | Views 61168752
VTB 2016.05.06 0 61168752
Notice
ISTQB Advanced Level Syllabus (2012) Test Analyst
VTB | 2016.05.06 | Votes 0 | Views 60652694
VTB 2016.05.06 0 60652694
Notice
ISTQB Glossary of Testing Terms Version:2.2
VTB | 2016.05.06 | Votes 0 | Views 60902529
VTB 2016.05.06 0 60902529
Notice
ISTQB Expert Level (CTEL) Syllabus -Test Management (3)
VTB | 2015.09.13 | Votes 0 | Views 60451676
VTB 2015.09.13 0 60451676
Notice
ISTQB Expert Level (CTEL) Syllabus - Improving the Testing Process (1)
VTB | 2015.09.13 | Votes 0 | Views 61486380
VTB 2015.09.13 0 61486380
Notice
ISTQB Foundation Level (CTFL) Syllabus 2011 (12)
VTB | 2014.10.11 | Votes 0 | Views 60651047
VTB 2014.10.11 0 60651047
1258
ISTQB CTAL TAE Syllabus v2.0
admin | 2025.06.16 | Votes 1 | Views 39416706
admin 2025.06.16 1 39416706
1257
ISTQB Question and Answers (Advanced Level)
Steveskok | 2021.02.07 | Votes 0 | Views 60998526
Steveskok 2021.02.07 0 60998526
1256
ISTQB Certified Tester Foundation Level Syllabus Version 2018 V3.1
(TestExpert) | 2020.02.03 | Votes 0 | Views 60716105
(TestExpert) 2020.02.03 0 60716105
1255
ISTQB Advanced - Technical Test Analyst Sample Exam
ItSeTsQtB | 2019.08.08 | Votes 1 | Views 60679740
ItSeTsQtB 2019.08.08 1 60679740
1254
ISTQB Certification and Training Value
^Software^ | 2019.07.22 | Votes 0 | Views 61807988
^Software^ 2019.07.22 0 61807988
1253
ISTQB Foundation - Agile Tester (Sample Exam)
IT-Tester | 2019.07.08 | Votes 0 | Views 59713182
IT-Tester 2019.07.08 0 59713182
1252
ISTQB Advanced - Technical Test Analyst (Sample Exam)
IT-Tester | 2019.07.08 | Votes 0 | Views 60516293
IT-Tester 2019.07.08 0 60516293
1251
ISTQB Advanced - Test Analyst (Sample Exam) (1)
IT-Tester | 2019.07.08 | Votes 0 | Views 61429876
IT-Tester 2019.07.08 0 61429876
1250
Premium Question Paper 4 (3)
iknev | 2019.02.22 | Votes 0 | Views 61849320
iknev 2019.02.22 0 61849320
1249
Premium Question Paper 3 (6)
iknev | 2019.02.22 | Votes 0 | Views 60234990
iknev 2019.02.22 0 60234990
1248
Premium Question Paper 1 (2)
iknev | 2019.02.22 | Votes 0 | Views 61007087
iknev 2019.02.22 0 61007087
1247
ISTQB Question Bank_ Test Manager Sample Question Set 1
iknev | 2019.02.22 | Votes 1 | Views 61037201
iknev 2019.02.22 1 61037201
1246
ISTQB Certified Tester List (FULL)
VTB | 2018.10.31 | Votes 0 | Views 61524053
VTB 2018.10.31 0 61524053
1245
ISTQB Agile Exam (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 61501950
VTB 2018.10.28 0 61501950
1244
ISTQB Foundation Exam (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 61886085
VTB 2018.10.28 0 61886085
1243
ISTQB Foundation Course (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 61053194
VTB 2018.10.28 0 61053194
1242
ISTQB Foundation Agile Course (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 60064007
VTB 2018.10.28 0 60064007
1241
ISTQB Course + Internship (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 60688798
VTB 2018.10.28 0 60688798
1240
ISTQB Expert - Improving the Test Process [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 61107773
VTB 2018.10.26 0 61107773
1239
ISTQB Expert - Test Manager [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 61052742
VTB 2018.10.26 0 61052742
1238
ISTQB Advanced - Technical Test Analyst [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 61626325
VTB 2018.10.26 0 61626325
1237
ISTQB Advanced - Test Analyst [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 61459348
VTB 2018.10.26 0 61459348
1236
ISTQB Advanced - Test Manager [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 61414586
VTB 2018.10.26 0 61414586
1235
ISTQB Foundation - Model Based Tester [Sample Exam & Answers] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 61525830
VTB 2018.10.26 0 61525830
1234
ISTQB Foundation - Agile Tester [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 60278887
VTB 2018.10.26 0 60278887
1233
ISTQB Foundation - Certified Tester [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 60694242
VTB 2018.10.26 0 60694242
1232
ISTQB Exam Tips and Tricks
VTB | 2018.10.16 | Votes 0 | Views 61514471
VTB 2018.10.16 0 61514471
1231
ISTQB Foundation Level Quiz 20 Questions (1)
aiitistqb | 2018.10.16 | Votes 0 | Views 61941877
aiitistqb 2018.10.16 0 61941877
1230
ISTQB Free Sample Exam and Answers
aiitistqb | 2018.10.16 | Votes 0 | Views 61022277
aiitistqb 2018.10.16 0 61022277
1229
ISTQB Foundation - Agile Extension Online Courses is live!!
VTB | 2018.10.16 | Votes 0 | Views 60618313
VTB 2018.10.16 0 60618313
1228
ISTQB Foundation Online Courses are Live!!
VTB | 2018.10.12 | Votes 0 | Views 62552861
VTB 2018.10.12 0 62552861
1227
ISTQB Foundation (Practice Exam)
VTB | 2018.10.12 | Votes 0 | Views 60355757
VTB 2018.10.12 0 60355757
1226
CTAL TM Questions (23)
ulissesmafra | 2018.10.09 | Votes 1 | Views 61113959
ulissesmafra 2018.10.09 1 61113959
1225
Syllabus 2012 (2)
ulissesmafra | 2018.10.09 | Votes 0 | Views 61611224
ulissesmafra 2018.10.09 0 61611224
1224
ISEB & ISTQB EXAM TIPS (3)
Sky Driver | 2018.09.24 | Votes 0 | Views 60408329
Sky Driver 2018.09.24 0 60408329
1223
Tips for clearing ISTQB Foundation Level Exam (1)
Sky Driver | 2018.09.24 | Votes 0 | Views 61453039
Sky Driver 2018.09.24 0 61453039
1222
Tips for passing the ISTQB Foundation Level exam – Do’s and Don’t’s
Sky Driver | 2018.09.24 | Votes 0 | Views 61282475
Sky Driver 2018.09.24 0 61282475
1221
Why do people fail the ISTQB Foundation Certificate? (1)
Sky Driver | 2018.09.24 | Votes 0 | Views 60959531
Sky Driver 2018.09.24 0 60959531
1220
ISTQB Foundation Mock Exam 2 (3)
peter_hey | 2018.09.19 | Votes 3 | Views 61513521
peter_hey 2018.09.19 3 61513521
1219
ISTQB Foundation Mock Exam 1 (3)
peter_hey | 2018.09.19 | Votes 0 | Views 60184085
peter_hey 2018.09.19 0 60184085
1218
What is ISTQB? (1)
master15 | 2018.09.19 | Votes 0 | Views 61421345
master15 2018.09.19 0 61421345
1217
Syllabus (2)
richp | 2018.09.18 | Votes 0 | Views 61954769
richp 2018.09.18 0 61954769
1216
Learning Objectives for ISTQB Advanced Level Technical Test Analyst Exam (1)
master15 | 2018.09.16 | Votes 0 | Views 60708580
master15 2018.09.16 0 60708580
1215
Software Testing Tools used by ISTQB certified Experts like Test Analysts and Technical Test Analysts (2)
master15 | 2018.09.16 | Votes 0 | Views 61989496
master15 2018.09.16 0 61989496
1214
What are the Advantages of ISTQB Certifications? (1)
master15 | 2018.09.13 | Votes 0 | Views 61151716
master15 2018.09.13 0 61151716
1213
How many Levels of Certification are provided by ISTQB? (1)
master15 | 2018.09.13 | Votes 0 | Views 61119177
master15 2018.09.13 0 61119177
1212
Syllabus CTAL-TTA - [BR] (1)
tcorteletti | 2018.09.09 | Votes 0 | Views 59932595
tcorteletti 2018.09.09 0 59932595
1211
Syllabus CTFL - [BR] (1)
tcorteletti | 2018.09.09 | Votes 0 | Views 60403838
tcorteletti 2018.09.09 0 60403838
1210
ISTQB Certification – Foundation Level syllabus
Sky Driver | 2018.09.05 | Votes 0 | Views 60844813
Sky Driver 2018.09.05 0 60844813
1209
Documents to be submitted at the time of registration of ISTQB Advanced Level (2)
Sky Driver | 2018.09.05 | Votes 0 | Views 60841443
Sky Driver 2018.09.05 0 60841443