EDUCBA

EDUCBA

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

Black Box Testing Techniques

By Aanchal SinghAanchal Singh

Home » Software Development » Software Development Tutorials » Software Testing Tutorial » Black Box Testing Techniques

Black Box Testing Techniques

Introduction to Black Box Testing

Black Box Testing or Behavioral Testing is a type of functional testing usually done by the manual tester who is familiar with the functional requirement specification of the software application. It comprises of the process of verification and validation of the functional behaviour of the application after the build is complete, without bringing the codes into the picture. This type of testing can be executed on all stages of the testing lifecycle, such as unit testing, user interface testing, functional testing, integration testing, system testing, performance testing and security testing.

Techniques of Black Box Testing

The test cases which are designed to test a system plays an important role in testing. The way they are created and the scenarios they cover should be taken into consideration.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Testers can create requirement specification document by using the below techniques:

  1. Equivalence Partitioning
  2. Boundary Value Analysis
  3. Decision Table Testing
  4. State Transition Testing
  5. Error Guessing
  6. Graph-based Testing Methods
  7. Comparison Testing
  8. Use Case Technique

Following are the Techniques explained below:

1. Equivalence Testing

  • This technique divides the input values which are provided to the software into different groups or classes. This is done on the basis of the output which will be coming as an outcome. This technique is also known as Equivalence Class Partitioning. By doing this we save the effort of giving different inputs. Instead, we give one value to the group or class to test the outcome for that group or class. This helps in improving the test coverage and in turn reducing the rework. The time is also saved as no separate inputs are to be given. Input for each class is sufficient.
  • Let us take an example of marks that students score. If a student scores above75% then he/she has secured First class with Distinction. Similarly, if the score is between 60% to 75% then he/she has secured First Class. If the score is between 50% to 60% then Second Class. If the score is between 40% to 50% then Pass class, else fail. Here there will be four classes. These test cases are formed and it is made sure that all possibilities are hence covered. Hence testing with any values in this set is sufficient.

2. Boundary Value Analysis

  • Here the focus is on the values which are present at the boundaries. This is because usually there are many issues found when it comes to testing with values that focus on boundaries. Boundary focuses on values near the limit where the behaviour of the system changes. In boundary value analysis both inputs, which are valid and invalid are to be tested.
  • For example, if we want to test values that range from 1 to 100 then we should check if how the program works for values like 1-1, 1+1, 1, 100-1, 100+1, etc. This helps in saving time again as we can only check for values like 0, 1, 2, 99, 100 and 101.

3. Decision Table Testing

Whenever there are logical conditions or decision-making steps then this technique is to be used. These can be like if a particular condition is not satisfied then Action A should be performed, else Action B is to be performed. The tester needs to identify the input and actions which are to be performed based on the conditions. A decision table is created based on these. Consider an example where an odd number of vehicles are allowed only on Monday, Wednesday, Friday and Sunday, while even a number of vehicles are allowed on Tuesday, Thursday and Saturday. In this case, there are two conditions and two actions. Condition 1 being odd vehicles and Condition 2 being even vehicles. The actions being the days when these vehicles can be on the roads. The total number of test cases, in this case, can be four and hence the decision table can be derived accordingly.

4. State Transition Testing

In this technique, the test case tries to test the system under different states. This state can change depending upon different conditions or events. When a particular event occurs then these scenarios can be tested.

5. Error Guessing

This technique is mainly based on experience. Once a tester has experience working on any application its behavior and functionalities are known to him/her. This is a way through which many issues can be found out. By using this experience, it is easy for the testers to guess where most developers are prone to make mistakes. These can be handling null values, accepting the submit button without any value, uploading a file without any attachment, uploading a file with less than or more than the limit size specified, etc.

6. Graph-based Testing

Each application is built by using some objects. All the objects which are used are noted and a graph is prepared. From this graph, the relationship of every object is identified, and test cases are written accordingly.

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 (8,154 ratings)
Course Price

View Course

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

7. Comparison Testing

In this technique, different versions of the same software are used and then compared in order to test the entire system. The behaviour is noted and compared for all versions and any deviations are noted.

8. Use Case Technique

This technique is used to identify all the test cases in use as per the system. All scenarios are noted which help in understanding the complete functionality of each function in an end to end way. The test cases should have cases that cover all scenarios from beginning to end as per the system usage.

Conclusion

Black Box testing does not go into the details of coding. It mainly focuses on testing and validating the behaviour and functionality of the software. There is no need for any technical background and testing can be started as soon as the development of the project is done. Both testers and developers can work in silos. It is more effective for large applications where functionality matters more than code. It also helps in identifying defects and issues in the early stage of testing. Once the retest is done it can be verified if issues still persist and the system is verified again.

Recommended Articles

This is a guide to Black Box Testing Techniques. Here we discuss the Introduction to Black Box Testing, Techniques and Top 8 Techniques in Black Box. You can also go through our other suggested articles to learn more –

  1. Fuzz Testing
  2. Negative Testing
  3. Decision Table Testing
  4. Gray Box Testing

Software Testing Training (9 Courses, 2 Projects)

9 Online Courses

2 Hands-on Projects

60+ Hours

Verifiable Certificate of Completion

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Primary Sidebar
Software Testing Tutorial
  • Testing techniques
    • Software Testing Methodologies
    • Black Box Testing Techniques
    • Static Testing Techniques
    • Test Case Design Techniques
    • What is Static Analysis
  • 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
  • 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
  • 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
    • 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 Training (9 Courses, 2 Projects) Learn More