ISTQB

Loading

What is Boundary value analysis and Equivalence partitioning?

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

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,270
Number Title Author Date Votes Views
Notice
CTFL (Certified Tester Foundation Level) Syllabus 4.0
admin | 2024.09.15 | Votes 0 | Views 12274
admin 2024.09.15 0 12274
Notice
ISTQB Foundation - Certified Tester (2018) : Official Sample Exam Set 2 with Answer (4)
Testersbest | 2019.06.21 | Votes 0 | Views 9331755
Testersbest 2019.06.21 0 9331755
Notice
ISTQB Foundation - Certified Tester (2018) : Official Sample Exam Set 1 with Answer (3)
Testersbest | 2019.06.21 | Votes 0 | Views 9340192
Testersbest 2019.06.21 0 9340192
Notice
ISTQB Foundation Certified Tester (2018) : New Exam Rule (1)
Testersbest | 2019.06.21 | Votes 0 | Views 9665921
Testersbest 2019.06.21 0 9665921
Notice
ISTQB Foundation - Certified Tester Syllabus (2018)
VTB | 2018.11.14 | Votes 0 | Views 9549417
VTB 2018.11.14 0 9549417
Notice
ISTQB Advanced Level Syllabus (2016) Security Tester
VTB | 2018.10.26 | Votes 0 | Views 9964201
VTB 2018.10.26 0 9964201
Notice
ISTQB Advanced Level Syllabus (2012) Technical Test Analyst
VTB | 2016.05.06 | Votes 0 | Views 9497219
VTB 2016.05.06 0 9497219
Notice
ISTQB Advanced Level Syllabus (2012) Test Manager
VTB | 2016.05.06 | Votes 0 | Views 9801395
VTB 2016.05.06 0 9801395
Notice
ISTQB Advanced Level Syllabus (2012) Test Analyst
VTB | 2016.05.06 | Votes 0 | Views 9350869
VTB 2016.05.06 0 9350869
Notice
ISTQB Glossary of Testing Terms Version:2.2
VTB | 2016.05.06 | Votes 0 | Views 9745321
VTB 2016.05.06 0 9745321
Notice
ISTQB Expert Level (CTEL) Syllabus -Test Management (3)
VTB | 2015.09.13 | Votes 0 | Views 9551659
VTB 2015.09.13 0 9551659
Notice
ISTQB Expert Level (CTEL) Syllabus - Improving the Testing Process (1)
VTB | 2015.09.13 | Votes 0 | Views 9850236
VTB 2015.09.13 0 9850236
Notice
ISTQB Foundation Level (CTFL) Syllabus 2011 (12)
VTB | 2014.10.11 | Votes 0 | Views 9648979
VTB 2014.10.11 0 9648979
1257
ISTQB Question and Answers (Advanced Level)
Steveskok | 2021.02.07 | Votes 0 | Views 9459417
Steveskok 2021.02.07 0 9459417
1256
ISTQB Certified Tester Foundation Level Syllabus Version 2018 V3.1
(TestExpert) | 2020.02.03 | Votes 0 | Views 9516281
(TestExpert) 2020.02.03 0 9516281
1255
ISTQB Advanced - Technical Test Analyst Sample Exam
ItSeTsQtB | 2019.08.08 | Votes 0 | Views 9751962
ItSeTsQtB 2019.08.08 0 9751962
1254
ISTQB Certification and Training Value
^Software^ | 2019.07.22 | Votes 0 | Views 9806602
^Software^ 2019.07.22 0 9806602
1253
ISTQB Foundation - Agile Tester (Sample Exam)
IT-Tester | 2019.07.08 | Votes 0 | Views 9459528
IT-Tester 2019.07.08 0 9459528
1252
ISTQB Advanced - Technical Test Analyst (Sample Exam)
IT-Tester | 2019.07.08 | Votes 0 | Views 9710940
IT-Tester 2019.07.08 0 9710940
1251
ISTQB Advanced - Test Analyst (Sample Exam) (1)
IT-Tester | 2019.07.08 | Votes 0 | Views 9173475
IT-Tester 2019.07.08 0 9173475
1250
Premium Question Paper 4 (3)
iknev | 2019.02.22 | Votes 0 | Views 9675916
iknev 2019.02.22 0 9675916
1249
Premium Question Paper 3 (6)
iknev | 2019.02.22 | Votes 0 | Views 9851521
iknev 2019.02.22 0 9851521
1248
Premium Question Paper 1 (2)
iknev | 2019.02.22 | Votes 0 | Views 9621525
iknev 2019.02.22 0 9621525
1247
ISTQB Question Bank_ Test Manager Sample Question Set 1
iknev | 2019.02.22 | Votes 0 | Views 9394347
iknev 2019.02.22 0 9394347
1246
ISTQB Certified Tester List (FULL)
VTB | 2018.10.31 | Votes 0 | Views 10104844
VTB 2018.10.31 0 10104844
1245
ISTQB Agile Exam (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 10009173
VTB 2018.10.28 0 10009173
1244
ISTQB Foundation Exam (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 9422688
VTB 2018.10.28 0 9422688
1243
ISTQB Foundation Course (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 9779886
VTB 2018.10.28 0 9779886
1242
ISTQB Foundation Agile Course (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 9807116
VTB 2018.10.28 0 9807116
1241
ISTQB Course + Internship (Auckland, NZ)
VTB | 2018.10.28 | Votes 0 | Views 9625854
VTB 2018.10.28 0 9625854
1240
ISTQB Expert - Improving the Test Process [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 9658759
VTB 2018.10.26 0 9658759
1239
ISTQB Expert - Test Manager [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 9816457
VTB 2018.10.26 0 9816457
1238
ISTQB Advanced - Technical Test Analyst [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 9894533
VTB 2018.10.26 0 9894533
1237
ISTQB Advanced - Test Analyst [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 9867859
VTB 2018.10.26 0 9867859
1236
ISTQB Advanced - Test Manager [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 9590495
VTB 2018.10.26 0 9590495
1235
ISTQB Foundation - Model Based Tester [Sample Exam & Answers] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 10275367
VTB 2018.10.26 0 10275367
1234
ISTQB Foundation - Agile Tester [Sample Exam & Answer] - ISTQB Official
VTB | 2018.10.26 | Votes 0 | Views 9679440
VTB 2018.10.26 0 9679440
1233
ISTQB Foundation - Certified Tester [Sample Exam & Answer] - ISTQB Official (1)
VTB | 2018.10.26 | Votes 0 | Views 9249868
VTB 2018.10.26 0 9249868
1232
ISTQB Exam Tips and Tricks
VTB | 2018.10.16 | Votes 0 | Views 9652271
VTB 2018.10.16 0 9652271
1231
ISTQB Foundation Level Quiz 20 Questions (1)
aiitistqb | 2018.10.16 | Votes 0 | Views 10208234
aiitistqb 2018.10.16 0 10208234
1230
ISTQB Free Sample Exam and Answers
aiitistqb | 2018.10.16 | Votes 0 | Views 10376831
aiitistqb 2018.10.16 0 10376831
1229
ISTQB Foundation - Agile Extension Online Courses is live!!
VTB | 2018.10.16 | Votes 0 | Views 10087338
VTB 2018.10.16 0 10087338
1228
ISTQB Foundation Online Courses are Live!!
VTB | 2018.10.12 | Votes 0 | Views 9979901
VTB 2018.10.12 0 9979901
1227
ISTQB Foundation (Practice Exam)
VTB | 2018.10.12 | Votes 0 | Views 9538135
VTB 2018.10.12 0 9538135
1226
CTAL TM Questions (23)
ulissesmafra | 2018.10.09 | Votes 1 | Views 9900941
ulissesmafra 2018.10.09 1 9900941
1225
Syllabus 2012 (2)
ulissesmafra | 2018.10.09 | Votes 0 | Views 9743984
ulissesmafra 2018.10.09 0 9743984
1224
ISEB & ISTQB EXAM TIPS (3)
Sky Driver | 2018.09.24 | Votes 0 | Views 9619709
Sky Driver 2018.09.24 0 9619709
1223
Tips for clearing ISTQB Foundation Level Exam (1)
Sky Driver | 2018.09.24 | Votes 0 | Views 9912931
Sky Driver 2018.09.24 0 9912931
1222
Tips for passing the ISTQB Foundation Level exam – Do’s and Don’t’s
Sky Driver | 2018.09.24 | Votes 0 | Views 10038359
Sky Driver 2018.09.24 0 10038359
1221
Why do people fail the ISTQB Foundation Certificate? (1)
Sky Driver | 2018.09.24 | Votes 0 | Views 9497991
Sky Driver 2018.09.24 0 9497991
1220
ISTQB Foundation Mock Exam 2 (3)
peter_hey | 2018.09.19 | Votes 3 | Views 10023416
peter_hey 2018.09.19 3 10023416
1219
ISTQB Foundation Mock Exam 1 (3)
peter_hey | 2018.09.19 | Votes 0 | Views 9692478
peter_hey 2018.09.19 0 9692478
1218
What is ISTQB? (1)
master15 | 2018.09.19 | Votes 0 | Views 9730396
master15 2018.09.19 0 9730396
1217
Syllabus (2)
richp | 2018.09.18 | Votes 0 | Views 9977290
richp 2018.09.18 0 9977290
1216
Learning Objectives for ISTQB Advanced Level Technical Test Analyst Exam (1)
master15 | 2018.09.16 | Votes 0 | Views 9312114
master15 2018.09.16 0 9312114
1215
Software Testing Tools used by ISTQB certified Experts like Test Analysts and Technical Test Analysts (2)
master15 | 2018.09.16 | Votes 0 | Views 10073177
master15 2018.09.16 0 10073177
1214
What are the Advantages of ISTQB Certifications? (1)
master15 | 2018.09.13 | Votes 0 | Views 9900525
master15 2018.09.13 0 9900525
1213
How many Levels of Certification are provided by ISTQB? (1)
master15 | 2018.09.13 | Votes 0 | Views 10050155
master15 2018.09.13 0 10050155
1212
Syllabus CTAL-TTA - [BR] (1)
tcorteletti | 2018.09.09 | Votes 0 | Views 9137986
tcorteletti 2018.09.09 0 9137986
1211
Syllabus CTFL - [BR] (1)
tcorteletti | 2018.09.09 | Votes 0 | Views 9909259
tcorteletti 2018.09.09 0 9909259
1210
ISTQB Certification – Foundation Level syllabus
Sky Driver | 2018.09.05 | Votes 0 | Views 9452642
Sky Driver 2018.09.05 0 9452642
1209
Documents to be submitted at the time of registration of ISTQB Advanced Level (2)
Sky Driver | 2018.09.05 | Votes 0 | Views 9320103
Sky Driver 2018.09.05 0 9320103
1208
The prerequisites for applying for the ISTQB Advanced Level (1)
Sky Driver | 2018.09.05 | Votes 0 | Views 9490795
Sky Driver 2018.09.05 0 9490795