Reputation: 11
I m trying to understand one in terms of how it compares to the other.
Is grey box testing where you can see the code and black box testing where you don't look at the code?
Upvotes: 1
Views: 582
Reputation: 643
Black box testing is when you know nothing about the system. You know the input and you check the output without knowing anything about the process in between input and output.
Grey box testing is almost the same but you know some things about the internals of the system. For example you have knowledge about the architecture or you have some implementation documents. It is actually a mix of white (see further) and black box testing (it's in between).
White box testing is when you know everything about the system. Source code, architecture. You test the program completely, check if it is doing what is expected, check for exceptions or errors. For this you have to really understand how the code works.
So to answer your question, with both black box and grey box testing you don't really check the code. In grey box testing it's more about the internal structure and architecture you have knowledge, sometimes in some algorithms used.
You can find info on Wikipedia or this url that explains white, grey and black box testing.
Upvotes: 1
Reputation: 3
gray is where you have some hints on the system you're testing not the source code though.eg if you knew what CMS and version the site is running,what server side lanuage it implemented php,.Net,Java.The latter one is where you have no prior information like what OS it's running on,with what programming language its written about the system you're testing and you're given just the target.
Upvotes: 0