Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is black box testing and white box testing [closed]

I'm trying to understand one in terms of how it compares to the other.

Is white box testing where you can see the code and black box testing where you don't look at the code?

like image 833
neuromancer Avatar asked Dec 15 '09 08:12

neuromancer


People also ask

What is close box testing?

Closed box testing is a testing method that allows professionals to evaluate software without fully understanding its internal code. Closed box testing can help you analyze a software's outcome requirements, specifications and behavior.

What is black box testing?

Black box testing assesses a system solely from the outside, without the operator or tester knowing what is happening within the system to generate responses to test actions. A black box refers to a system whose behavior has to be observed entirely by inputs and outputs.


2 Answers

Q) Is white box testing where you can see the code and black box testing where you don't look at the code?

Black-Box Testing

  • It is a process of giving the input to the system and checking the output of the system, without bothering about the system that how the system generates the output. It is also call as behavior testing, data-driven testing or I/O driven testing, functional testing .

  • testing based solely on analysis of requirements (specification, user documentation etc)

Advantages:

1) More effective on larger units of code than glass-box testing.

2) Tester and Programmer are independent of each other.

3) Tests done according to users point of view.

4) test-cases can be designed as soon as specifications are complete.

Disadvantages:

1) It may leave many program path untested.

2) Only small number of possible inputs can actually be tested, to test every possible. input stream would take nearly forever.

White-Box Testing

  • It is a process of giving input to thee system and checking that how the system processes the input to generate the output.

  • It is mandatory for tester to have the knowledge of the code.

Advantage:

1) This type of testing helps to uncover defects at structural level. The tests go below the top and functional layer to uncover the defects

Disadvantages:

1) Does not ensure the user requirements are met

2) Does not establish if the decisions, condition ans paths.

like image 169
Snehal Mohite Avatar answered Oct 21 '22 03:10

Snehal Mohite


basicaly yes.

in black box testing you test if the expected input to your object produces expected output without the ability to change the underlying code.

in white box testing you can see the code and you test all possible paths through it.

like image 36
Mladen Prajdic Avatar answered Oct 21 '22 05:10

Mladen Prajdic