top of page
  • Twitter Social Icon
  • LinkedIn Social Icon
  • Facebook Social Icon
Search

Black-Box Testing & White-Box Testing

  • Writer: pubudun
    pubudun
  • Nov 26, 2019
  • 2 min read

There are several different testing techniques, Black-Box and White-Box those are two such approaches commonly used by testers.



ree

figure 01


Black-Box Testing

It is defined as a testing technique in which functionality of the application under test is tested without looking at the internal code structure, implementation details & knowledge of internal paths of software.


Based on software requirements & specifications. Focus on the input & output of the software system.


Black-box testing use to test OS, Website, DB, Oracle.


How to do Black-box Testing ?


The tester can do the following steps to complete Black-box testing.


  1. Examined the requirements & specifications of the system.

  2. The tester chooses valid inputs.

  3. Tester determines expected outputs for all those inputs.

  4. Construct test cases with the selected inputs.

  5. Execute test cases.

  6. Tester compares actual outputs with expected outputs.

  7. Defects if any are fixed and re-tested.


What are the Black-box Testing techniques?


  • Equivalence class testing.

It used to minimize the number of possible test cases.

  • Boundary value testing.

Focus on the values at boundaries (certain range of values are a accepted.) it reducing number of test cases.

  • Decision table testing.

It puts causes & their effects in a matrix.


What are the tools used for Black-box testing?


Functional & Regression - QTP, Selenium

Non-Functional - LoadRunner, Jmeter


White-Box Testing

What is White-box testing?


Testing of software solution's internal structure, design & coding. The code is visible to the tester.


It verifying the flow of the inputs, outputs & improve usability, design & security.


What are verify from white-box testing?


  • Internal security holes.

  • Expected outputs.

  • The flow of specific inputs.

  • Testing of each statement.


What are the steps of white-box testing?


  1. understand the source codes.

  2. Create test case & execute.


What are the White-Box testing techniques?


  • Statement coverage.

  • Branch coverage. (Check every possible paths.)


What are the example for white-box testing?


  • Unit Testing.

  • Testing for memory leaks.


What are the white-box testing tools?


  • Veracode.

  • Nunits.

  • Junits.




 
 
 

Comments


SIGN UP AND STAY UPDATED!

Thanks for submitting!

  • Grey Twitter Icon
  • Grey LinkedIn Icon
  • Grey Facebook Icon

© 2023 by Talking Business.  Proudly created with Wix.com

bottom of page