EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

Boundary Value Testing

By Prosenjit MandalProsenjit Mandal

Home » Software Development » Software Development Tutorials » Software Testing Tutorial » Boundary Value Testing

boundry value testing

Introduction to Boundary Value Testing

Boundary Value Testing is one of the popular software testing mechanism, where testing of data is done based on boundary values or between two opposite ends where the ends may be like from start to end, or lower to upper or from maximum to minimum. This testing process was introduced to select boundary values that came from the boundary based on the inputs at different ends of testing values. This black box testing strategy was introduced after equivalence class partitioning where the partition of classes takes place first followed by a partition at the boundaries.

What is Boundary Value Testing?

  • The testing is an analysis testing process that does testing practices at the boundaries of the partition covering all the testing defects where equivalence testing alone was difficult to handle those defects.
  • This testing machine is in conjunction with an equivalence testing mechanism that provides valid testing scenarios when there is ordered partition and the data consists of numeric format.
  • The boundary values of such a testing mechanism are identified by the values present at the extreme boundaries, i.e. minimum and maximum value.
  • This is used mainly to analyze the testing at the partition boundaries and also to detect anomalies that may occur during testing cases.
  • The black box testing techniques are helpful for detecting any errors or threats that happened at the boundary values of valid or invalid partitions rather than focusing on the center of the input data.

Explain the Test Case of Boundary Value Testing

The idea regarding this is cleared from the above statements. Now, it is time to test what are the possible causes for Boundary value testing.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Test Case Number #1

Let us assume a test case that takes the value of age from 21 to 65.

BOUNDARY VALUE TEST CASE
INVALID TEST CASE

(Min Value – 1)

VALID TEST CASES

(Min, +Min, Max, -Max)

INVALID TEST CASE

(Max Value + 1)

20 21, 22, 65, 64 66

From the above table, we can view the following inputs that are given.

  • The minimum boundary value is given as 21.
  • The maximum boundary value is given as 65.
  • The valid inputs for testing purposes are 21, 22, 64 and 65.
  • The invalid inputs for test cases are 20 and 66.
Test Case Scenarios

1. Input: Enter the value of age as 20 (21-1)

Output: Invalid

2. Input: Enter the value of age as 21

Output: Valid

3. Input: Enter the value of age as 22 (21+1)

Output: Valid

4. Input: Enter the value of age as 65

Output: Valid

5. Input: Enter the value of age as 64 (65-1)

Popular Course in this category
Sale
Software Testing Training (9 Courses, 2 Projects)9 Online Courses | 2 Hands-on Projects | 60+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.5 (7,925 ratings)
Course Price

View Course

Related Courses
Penetration Testing Training Program (2 Courses)TestNG Training (4 Courses, 2 Project)

Output: Valid

6. Input: Enter the value of age as 66 (65+1)

Output: Invalid

Test Case Number #2

Let us assume the next test case that takes the length of the input name from 8 to 14 characters.

BOUNDARY VALUE TEST CASE
INVALID TEST CASE

(Min Value – 1)

VALID TEST CASES

(Min, +Min, Max, -Max)

INVALID TEST CASE

(Max Value + 1)

7 8, 9, 14, 13 15

From the above table, we can view the following inputs that are given.

  • The minimum boundary value is given as 8.
  • The maximum boundary value is given as 14.
  • The valid character lengths for testing purpose are 8, 9, 14 and 13
  • The invalid character lengths for test cases are 7 and 15.
Test Case Scenarios

1. Input: Enter the text length as 7 (Min length -1)

Output: Invalid

2. Input: Enter the text length as 8 (Min length)

Output: Valid

3. Input: Enter the text length as 9 (Min length +1)

Output: Valid

4. Input: Enter the text length as 14 (Max length)

Output: Valid

5. Input: Enter the value of age as 13 (Max length -1)

Output: Valid

6. Input: Enter the value of age as 15 (Max length +1)

Output: Invalid

Importance

There are lots of importance where I will share some of them below:

  • This is done when there is a huge number of test cases are available for testing purposes and for checking them individually, this testing is of great use.
  • The analysis of test data is done at the boundaries of partitioned data after equivalence class partitioning happens and analysis is done.
  • This testing process is actually known as black-box testing that focuses on valid and invalid test case scenarios and helps in finding the boundary values at the extreme ends without hampering any effective test data valuable for testing purpose.
  • This is also responsible for testing where lots of calculations are required for any kind of variable inputs and for using in varieties of applications.
  • The testing mechanism also helps in detecting errors or faults at the boundaries of the partition that is a plus point as most errors occur at the boundaries before the applications are submitted to the clients.

Examples to Implement Boundary Value Testing

The examples to implement for the same are as follows:

Example #1: Suppose, a printer has to make and deliver printed copies ranging from 1 to 150. So, to apply boundary value testing, the analysis is done on the boundaries, taking the extreme ends. The maximum value is 150 and the minimum value is 1. The invalid values in this test case will be 0 and 151. Therefore, there will be four boundary value tests for such a scenario.

Example #2: Another example is that consider the field that holds the maximum 5 digit character. The maximum value of the field is 99999 and the minimum value is 10000. These are the boundary values and the values below minimum and above maximum, all fall under invalid cases and testing is done according to that.

Conclusion

For designing and testing a large set of data for creating a major application, various techniques are required and for running and executing such test cases, boundary value testing plays an important role in achieving 100 percent efficiency, quality, and reliability in testing procedures.

Recommended Articles

This is a guide to Boundary Value Testing. Here we discuss an introduction, what is Boundary Value Testing, explanation with testing, and examples. You can also go through our other related articles to learn more –

  1. Application Testing
  2. Grey Box Testing
  3. Software Testing Interview Questions
  4. Selenium Load Testing

All in One Software Development Bundle (600+ Courses, 50+ projects)

600+ Online Courses

50+ projects

3000+ Hours

Verifiable Certificates

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Primary Sidebar
Software Testing Tutorial
  • Types of Testing
    • Adhoc Testing
    • Types of System Testing
    • Manual Testing Types
    • Unit Testing Types
    • Unit Testing Benefits
    • Agile Testing
    • What is Agile Testing
    • Acceptance Testing
    • Stress Testing Types
    • Alpha and Beta Testing
    • Application Testing
    • Automation Testing
    • Automation Testing Advantages
    • Benchmark Testing
    • Black Box Testing
    • Domain Testing
    • Dynamic Testing
    • Ecommerce Testing
    • Fuzz Testing
    • Gray Box Testing
    • GUI Testing
    • Installation Testing
    • Interface Testing
    • Interoperability Testing
    • Mainframe Testing
    • Manual Testing
    • Mutation Testing
    • Monkey Testing
    • Negative Testing
    • Penetration Testing
    • Penetration testing phases
    • Penetration testing framework
    • Protocol Testing
    • Recovery Testing
    • Regression Testing
    • Mobile Penetration Testing
    • Accessibility Testing
    • Sanity Testing
    • Scalability Testing
    • Security Testing
    • Spike Testing
    • Stability Testing
    • State Transition Testing
    • Static Testing
    • Gatling Load Testing
    • System Integration Testing
    • Structural Testing
    • Locust Load Testing
    • System Testing
    • Control Flow Testing
    • Unit Testing
    • Cypress testing
    • Volume Testing
    • Web Testing Application
    • What is Exploratory Testing
    • What is Stress Testing
    • What is Usability Testing
    • White Box Testing
    • Types of White Box Testing
    • Compatibility Testing?
    • Use Case Testing
    • Beta Testing
    • Integration Testing
    • Non Functional Testing
    • Non Functional Testing Types
    • What is Functional Testing
    • Functional testing types
    • Cookie Testing
    • Alpha Testing
    • Boundary Value Testing
    • Equivalence Class Testing
    • Glass Box Testing
    • SOA Testing
    • Smoke Testing
    • Visual Testing
    • Visual Paradigm
    • Model-Based Testing
  • Basics
    • What is Software Testing
    • Careers in Software Testing
    • Defect Life Cycle in Software Testing
    • Levels of Software Testing
    • Software Testing Life Cycle
    • Software Tester Work
    • Software Testing Principles
    • Software Testing Services
    • Testing Methodologies
    • Test Approaches
    • Grey Box Testing
    • Types of Software Testing
    • What is a Bug in Software Testing
    • Benefits of Automation Testing
    • What is Automation Testing?
    • Types of Automation
    • Automation Testing Process
    • Mobile Automation Testing
    • Automation Testing Life Cycle
    • Software Quality Assurance
    • Software Quality Assurance
    • What is Test Environment?
    • Verification and Validation Testing
  • Testing techniques
    • Software Testing Methodologies
    • Black Box Testing Techniques
    • Static Testing Techniques
    • Test Case Design Techniques
    • What is Static Analysis
  • Testing tools
    • Manual Testing Tools
    • Visual Testing Tools
    • Automation Testing Tools
    • Functional Testing Tools
    • GUI Testing Tools
    • Penetration Testing Tools
    • Performance Testing Tools
    • SOA Testing Tools
    • Accessibility Testing Tools
    • What is QTP
    • Regression Testing Tools
    • Security Testing Tools
    • Test Management Tools
    • Defect Management Tools
    • Code Coverage Tools
    • Test Coverage Tools
    • Defect Tracking Tools
    • Continuous Integration Tools
    • Install Bugzilla
    • Test data generation tool
    • Unit Testing Tools
    • Web Testing Tools
    • Stress Testing Tools
    • Performance Monitoring Tools
    • Mobile Testing Tools
    • Responsive Testing Tool
    • Cross Browser Testing Tools
    • Risk Based Testing
    • Database Testing Tools
    • WinRunner
    • What is Squish?
    • CubicTest
    • What is WinRM?
    • Bugzilla Tool
    • Code review tools
    • Penetration Testing Open Source Tools
  • Advance
    • Cyclomatic Complexity
    • Decision Table Testing
    • Decision Tree Algorithm
    • What is Continuous Integration
    • Mantis Bug Tracker
    • Equivalence Partitioning
    • Gantt Chart Software
    • Acceptance Testing Types
    • Load testing tools
    • Install TestNG
    • Install Unity
    • Defect Management Process
    • Test Plan Template
    • Testing Interview Questions
    • Testing of Mobile application
    • What is Test Automation Frameworks
    • Test Automation Framework
    • Application of Automation
    • Test Automation Process
    • Automation Testing Roles and Responsibilities
    • What is Instruction Cycle?
    • What is Cucumber?
    • 15 Best Popular Bug Reporting Tools
    • What is Automated Testing?
    • Software Maintenance Types
    • Types of Penetration Testing
    • Software Reliability
    • Best Gantt Chart Software
    • Code Coverage
    • Branch Coverage
    • Decision Coverage
    • Statement Coverage
    • What is Test Case
    • Types of Test Case
    • What is Test Scenario
    • Formal Review
    • Alpha Beta Pruning
    • What is Cyclomatic Complexity?
    • Test Coverage
    • How to Write Test Case
    • Testing Documentation
    • Performance Testing Life Cycle
    • What is Xpath
    • Test Harness
    • Test Strategy
    • Software Incident Management
    • What is Debugging
    • What is Defect?
    • Listeners in TestNG
  • Inteview Questions
    • Automation Testing Interview Questions
    • Manual Testing Interview Questions
    • ISTQB Interview Questions
    • Cucumber Interview Questions
    • Software Testing Interview Questions
    • Penetration Testing Interview Questions

Related Courses

Software Testing Course

Penetration Training Course

TestNG Training Course

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Special Offer - Software Testing Course Learn More