Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Unit Testing

This is a discussion on Unit Testing within the Testing Issues forums, part of the Software Testing category; Does unit testing come under Whitebox testing or Blackbox testing? Is it verification or validation? Note: [This question was asked by TestWise]...

Go Back   Geeks Talk > Software Testing > Testing Issues
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-07-2006
Moderator
 
Join Date: Oct 2005
Posts: 1,036
Blog Entries: 75
Thanks: 3
Thanked 168 Times in 136 Posts
Lokesh M has a spectacular aura aboutLokesh M has a spectacular aura about
Unit Testing

Does unit testing come under Whitebox testing or Blackbox testing? Is it verification or validation?

Note: [This question was asked by TestWise]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-08-2006
Expert Member
 
Join Date: Apr 2006
Location: India, Hyderabad
Posts: 130
Thanks: 19
Thanked 48 Times in 18 Posts
bvani will become famous soon enough
Re: Unit Testing

It’s a part of white box testing. By implementing unit testing we are confirming(validating) that the program code is efficient.
Reply With Quote
  #3 (permalink)  
Old 12-08-2006
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 29 Times in 28 Posts
kalayama is on a distinguished road
Re: Unit Testing

Unit testing comes under both white box testing and black box testing. If you see the uses of Black box testing and white box testing, you will see unit testing in both.

Unit testing is defined as a procedure to validate individual units or modules of the source code.

(Hence obviously, unit testing is a validation method)

Cheers,
Kalayama
__________________
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Reply With Quote
  #4 (permalink)  
Old 12-08-2006
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 910
Thanks: 12
Thanked 108 Times in 76 Posts
jainbrijesh will become famous soon enoughjainbrijesh will become famous soon enough
Re: Unit Testing

Unit testing comes under white box testing.It is totally validation.
Reply With Quote
  #5 (permalink)  
Old 12-08-2006
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 29 Times in 28 Posts
kalayama is on a distinguished road
Re: Unit Testing

Well, as far as I know Unit Testing can also be black box testing because ieach unit can be treated as a black box.

For further refference here are the wikipedia link for these topics.

Unit testing - Wikipedia, the free encyclopedia

White box testing - Wikipedia, the free encyclopedia

Black box testing - Wikipedia, the free encyclopedia
__________________
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Reply With Quote
  #6 (permalink)  
Old 12-08-2006
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 910
Thanks: 12
Thanked 108 Times in 76 Posts
jainbrijesh will become famous soon enoughjainbrijesh will become famous soon enough
Re: Unit Testing

kalayama, you are right but in general if developer is doing testing, what you will call it?

It may be black box, but it called white box.


Unit testing is done by developers generally, rarely there are testers for unit testing.

I thing you are getting me, still i am agree that unit testing is black box also.

If you or me will go to deep then it will not a disscussion, it will be a ego to win.
Reply With Quote
  #7 (permalink)  
Old 12-08-2006
Expert Member
 
Join Date: Apr 2006
Location: India, Hyderabad
Posts: 130
Thanks: 19
Thanked 48 Times in 18 Posts
bvani will become famous soon enough
Re: Unit Testing

cool guys.... we are just discussing...

Unit testing is one of the initial levels of testing usually performed by the developers but if the requirement urges for (based on the complexity) we got to do "unit black box testing" where the testers come into picture...

Say we have a module built by developers which is very very complex... then in such situations they finish the uunit testing and request the leads to allow a black box testing on that particular module or unit... before integrating the code to the entire system or the final build... So in these situations the seniors like senior test eng or test leads com in and perform an adhoc black box testing on the module usually called the "unit black box testing".

here its difficult to say whether unit testing is a part of white box or black box testing...

But as the terms are broadly generalised and used we say unit and integration testing are part of white box testing and the system/build level testing is black box testing.

hope this clears it up...
Reply With Quote
  #8 (permalink)  
Old 12-08-2006
Expert Member
 
Join Date: Sep 2006
Location: Bengalooru (Formerly called Bangalore), India
Posts: 486
Thanks: 2
Thanked 29 Times in 28 Posts
kalayama is on a distinguished road
Re: Unit Testing

Well jainbrijesh. I have absolutely no experience as test engineer. I am trying to learn things here. Hence there is a high possibility that I speak theoritically. There is no EGO here.

Yes. You are right that unit testing is done by the one who codes. (I do unit testing for my own code. ). Clear me on this while defining White box testing and black box testing, is the factor that who tests counts? Like can we generalize and say the tests conducted by Coder is white box testing? (Exclude the extreme cases where the coder might be a part of the test team.)

PS : Remember, all we are trying to do here is to learn things and make ourselves better individuals. If I sounded Egoistic anywhere in my postings, I beg million pardons. No. That was never intended.

Again, I say, my postings might need correction. I portray my opions based on the little knowledge I have.

Let the argument/fight be for knowledge. It might as well be fun

bhavni, it was a real good post from you in the right time.
jainbrijesh Your post has mode the discussion more mature. It was good posting from your side. We have learnt a lot because of extended discussion. (Atleast I have!)

Let's keep posting and have fun!

Cheers,
-Kalayama
__________________
[COLOR="Blue"][SIZE="2"]"If you are not living on the edge of your life, you are wasting space"[/SIZE][/COLOR]

Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"

Last edited by kalayama; 12-08-2006 at 10:25 AM.
Reply With Quote
Reply

  Geeks Talk > Software Testing > Testing Issues

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Testing PHP – Security Testing RyanJames Testing Issues 7 02-03-2009 11:53 PM
interoperability testing, vulnerability testing) milu_mohanty Testing Issues 1 04-19-2007 03:01 AM


All times are GMT -4. The time now is 09:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved