SlideShare a Scribd company logo
4
Most read
6
Most read
13
Most read
SUBMITTED TO:-
MR.MOHIT SINGH
CSE DEPARTMENT
SUBMITTED BY:-
NIHARIKA
2011BTCS006
The practice of testing software has become one
of the most important aspects of the process of
software creation. When we are testing software
the first and potentially most crucial step is to
design test cases.
MANY TEST
CASES BEST TEST CASE
• BOUNDARY VALUE ANALYSIS and
EQUIVALENCE PARTIONIONING are
known as the best test cases.
• These are the type of black box testing
• It is very important to do both the tests together
to ensure an error free product.
EQUIVALENCE PARTIONING
• 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.
CLASS A CLASS B CLASS C
1- 100 100-200 200-300
• Suppose the input domain for a function is 1 to 300.
• It is impossible to create 300 test cases .
• So we divide the input variables into classes.
• Then we select one value from each class.
• This one value will represent whole of the class
Now all of the input domain have been
categorized in their respective classes and one
variable has been chosen from each class.
BUT, it is a well known fact that error tend to
occur near the extremities of the input variable.
So, here comes the need for :-
BOUNDARY VALUE ANALYSIS
• Boundary value analysis focuses on the boundary of
the input space to identify test cases.
• The rationale behind boundary value analysis is that
errors tend to occur near the extreme values of an
input variable.
• Programs written in non-strongly typed languages are
more appropriate candidates for boundary value
testing such as FORTRAN,COBOL.
7
BOUNDARY VALUE ANALYSIS
• Lets define two variables ,X1 and X2. Where X1
lies between A and B and X2 lies between C and
D.
• A ≤ X1 ≤ B
• C ≤ X2 ≤ D
• The values of A, B, C and D are the extremities
of the input domain. These are best
demonstrated by the figure.
The yellow shaded area is the input domain.
The values used to test the extremities are:-
• Min ------------------------------------ - Minimal
• Min+ -----------------------Just above Minimal
• Nom ------------------------------------ - Average
• Max- ---------------------Just below Maximum
• Max ---------------------------------- Maximum
The green dots represent the boundary values.
Few examples to demonstrate the need for
boundary value analysis.
• Programmer forgets to use <= instead use <.
• Programmer forgets to use count 0 while using
counter variable.
• Next date problem.
• Triangle problem.
BVA is very useful in cases of future prediction
of the test results of any product.
• The NextDate problem is a function of three variables: day,
month and year. Upon the input of a certain date it returns the
date of the day after that of the input.
• The input variables have the obvious conditions:
• 1 ≤ Day ≤ 31.
• 1 ≤ month ≤ 12.
• 1812 ≤ Year ≤ 2012.
BVA is based on CRITICAL FAULT
ASSUMPTION
• The Critical Fault Assumption also known as the single
fault assumption in reliability theory. The assumption relies
on the statistic that failures are only rarely the product of
two or more simultaneous faults. Upon using this
assumption we can reduce the required calculations
dramatically.
• The function f that computes the number of test cases for a
given number of variables n can be shown as:
f = 4n + 1
• As there are four extreme values this accounts for the 4n.
The addition of the constant one constitutes for the instance
where all variables assume their nominal value.
LIMITATIONS OF BVA
• Boundary value analysis works well when the
program to be tested is a function of several
independent variables that represent bounded physical
quantities.
• Boundary value analysis selected test data with no
consideration of the function of the program, nor of
the semantic meaning of the variables.
• We can distinguish between physical and logical type
of variables as well (e.g. temperature, pressure speed,
or PIN numbers, telephone numbers etc.)
Hence, together boundary value analysis and equivalence
partitioning result in the best black box test case. The test case
values can be represented as:-
Class A Class B
a bm
The domain a to b is divided into two classes. Class A and B.
Boundary values are found in both the classes.

More Related Content

PPTX
White Box Testing
PPTX
Decision Table Based Testing
PPTX
EquivalencePartition
PPT
Equivalence partitions analysis
PPT
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
PPT
Boundary value analysis
PPTX
White Box Testing
PDF
Test cases
White Box Testing
Decision Table Based Testing
EquivalencePartition
Equivalence partitions analysis
Software Testing - Boundary Value Analysis, Equivalent Class Partition, Decis...
Boundary value analysis
White Box Testing
Test cases

What's hot (20)

PPSX
Cocomo model
PPT
Black Box Testing
ODP
Defects in software testing
PDF
Software Testing Principles
PPTX
Validation testing
PPTX
Black Box Testing
PDF
Software testing methods, levels and types
PPTX
White Box Testing And Control Flow & Loop Testing
PPTX
Adversarial search
ODP
White box ppt
PPT
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
PPTX
halstead software science measures
PPTX
Software testing
PPTX
Black box software testing
PPTX
Se (techniques for black box testing ppt)
PDF
Types of software testing
PPT
Testing fundamentals
PPTX
Software testing.ppt
PPTX
Software testing
PPT
State transition testing-software_testing
Cocomo model
Black Box Testing
Defects in software testing
Software Testing Principles
Validation testing
Black Box Testing
Software testing methods, levels and types
White Box Testing And Control Flow & Loop Testing
Adversarial search
White box ppt
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
halstead software science measures
Software testing
Black box software testing
Se (techniques for black box testing ppt)
Types of software testing
Testing fundamentals
Software testing.ppt
Software testing
State transition testing-software_testing
Ad

Viewers also liked (7)

PPTX
Boundary value analysis and equivalence partitioning
PPT
New software testing-techniques
PPS
Boundary and equivalnce systematic test design
PPTX
PPT
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
PPT
Types of Software Testing
PPTX
Software testing ppt
Boundary value analysis and equivalence partitioning
New software testing-techniques
Boundary and equivalnce systematic test design
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Types of Software Testing
Software testing ppt
Ad

Similar to Equivalence partinioning and boundary value analysis (20)

PPT
boundaryvalueanalysisequivalentclasspartitiondecisiontable-200927060915.ppt
PPTX
Software Testing Introduction (Part 2)
PPT
AutoTest.ppt
PPT
AutoTest.ppt
PPT
AutoTest.ppt
PPT
AutoTest for software engineering for automated testing
PPT
Automation testing basics and tools presentation
PPT
Testing foundations
PPT
Dynamic Testing
PPTX
Fundamentals of Software Engineering
ODP
Black boxtesting
PPTX
Testing part 2 bb
PPT
Unit 2 Unit level testing.ppt
PDF
Software Engineering : Software testing
PPTX
Test Coverage: An Art and a Science
PPT
11 whiteboxtesting
DOCX
Se unit 4
PPTX
Software testing methodolgy with the control flow analysis
boundaryvalueanalysisequivalentclasspartitiondecisiontable-200927060915.ppt
Software Testing Introduction (Part 2)
AutoTest.ppt
AutoTest.ppt
AutoTest.ppt
AutoTest for software engineering for automated testing
Automation testing basics and tools presentation
Testing foundations
Dynamic Testing
Fundamentals of Software Engineering
Black boxtesting
Testing part 2 bb
Unit 2 Unit level testing.ppt
Software Engineering : Software testing
Test Coverage: An Art and a Science
11 whiteboxtesting
Se unit 4
Software testing methodolgy with the control flow analysis

Recently uploaded (20)

PDF
Digital Strategies for Manufacturing Companies
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
ai tools demonstartion for schools and inter college
PDF
top salesforce developer skills in 2025.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
AI in Product Development-omnex systems
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Transform Your Business with a Software ERP System
PDF
System and Network Administration Chapter 2
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Digital Strategies for Manufacturing Companies
VVF-Customer-Presentation2025-Ver1.9.pptx
Softaken Excel to vCard Converter Software.pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
ai tools demonstartion for schools and inter college
top salesforce developer skills in 2025.pdf
CHAPTER 2 - PM Management and IT Context
Upgrade and Innovation Strategies for SAP ERP Customers
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
2025 Textile ERP Trends: SAP, Odoo & Oracle
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
AI in Product Development-omnex systems
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
How Creative Agencies Leverage Project Management Software.pdf
Transform Your Business with a Software ERP System
System and Network Administration Chapter 2
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Odoo POS Development Services by CandidRoot Solutions
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf

Equivalence partinioning and boundary value analysis

  • 1. SUBMITTED TO:- MR.MOHIT SINGH CSE DEPARTMENT SUBMITTED BY:- NIHARIKA 2011BTCS006
  • 2. The practice of testing software has become one of the most important aspects of the process of software creation. When we are testing software the first and potentially most crucial step is to design test cases. MANY TEST CASES BEST TEST CASE
  • 3. • BOUNDARY VALUE ANALYSIS and EQUIVALENCE PARTIONIONING are known as the best test cases. • These are the type of black box testing • It is very important to do both the tests together to ensure an error free product.
  • 4. EQUIVALENCE PARTIONING • 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.
  • 5. CLASS A CLASS B CLASS C 1- 100 100-200 200-300 • Suppose the input domain for a function is 1 to 300. • It is impossible to create 300 test cases . • So we divide the input variables into classes. • Then we select one value from each class. • This one value will represent whole of the class
  • 6. Now all of the input domain have been categorized in their respective classes and one variable has been chosen from each class. BUT, it is a well known fact that error tend to occur near the extremities of the input variable. So, here comes the need for :- BOUNDARY VALUE ANALYSIS
  • 7. • Boundary value analysis focuses on the boundary of the input space to identify test cases. • The rationale behind boundary value analysis is that errors tend to occur near the extreme values of an input variable. • Programs written in non-strongly typed languages are more appropriate candidates for boundary value testing such as FORTRAN,COBOL. 7 BOUNDARY VALUE ANALYSIS
  • 8. • Lets define two variables ,X1 and X2. Where X1 lies between A and B and X2 lies between C and D. • A ≤ X1 ≤ B • C ≤ X2 ≤ D • The values of A, B, C and D are the extremities of the input domain. These are best demonstrated by the figure.
  • 9. The yellow shaded area is the input domain.
  • 10. The values used to test the extremities are:- • Min ------------------------------------ - Minimal • Min+ -----------------------Just above Minimal • Nom ------------------------------------ - Average • Max- ---------------------Just below Maximum • Max ---------------------------------- Maximum
  • 11. The green dots represent the boundary values.
  • 12. Few examples to demonstrate the need for boundary value analysis. • Programmer forgets to use <= instead use <. • Programmer forgets to use count 0 while using counter variable. • Next date problem. • Triangle problem. BVA is very useful in cases of future prediction of the test results of any product.
  • 13. • The NextDate problem is a function of three variables: day, month and year. Upon the input of a certain date it returns the date of the day after that of the input. • The input variables have the obvious conditions: • 1 ≤ Day ≤ 31. • 1 ≤ month ≤ 12. • 1812 ≤ Year ≤ 2012.
  • 14. BVA is based on CRITICAL FAULT ASSUMPTION • The Critical Fault Assumption also known as the single fault assumption in reliability theory. The assumption relies on the statistic that failures are only rarely the product of two or more simultaneous faults. Upon using this assumption we can reduce the required calculations dramatically. • The function f that computes the number of test cases for a given number of variables n can be shown as: f = 4n + 1 • As there are four extreme values this accounts for the 4n. The addition of the constant one constitutes for the instance where all variables assume their nominal value.
  • 15. LIMITATIONS OF BVA • Boundary value analysis works well when the program to be tested is a function of several independent variables that represent bounded physical quantities. • Boundary value analysis selected test data with no consideration of the function of the program, nor of the semantic meaning of the variables. • We can distinguish between physical and logical type of variables as well (e.g. temperature, pressure speed, or PIN numbers, telephone numbers etc.)
  • 16. Hence, together boundary value analysis and equivalence partitioning result in the best black box test case. The test case values can be represented as:- Class A Class B a bm The domain a to b is divided into two classes. Class A and B. Boundary values are found in both the classes.