Monday, July 28, 2008

Advantages and Disadvantages of Black Box and White Box Testing

Advantages and Disadvantages of Black Box Testing

Advantages of Black Box Testing

  • Black box tests are reproducible.
  • The environment the program is running is also tested.
  • The invested effort can be used multiple times.
  • More effective on larger units of code than glass box testing
  • Tester needs no knowledge of implementation, including specific programming languages
  • Tests are done from a user's point of view
  • Will help to expose any ambiguities or inconsistencies in the specifications
  • Efficient when used on Larger systems
  • As the tester and developer are independent of each other, test is balanced and unprejudiced
  • Tester can be non-technical.
  • There is no need of having detailed functional knowledge of system to the tester.
  • Tests will be done from an end user's point of view. Because end user should accept the system. (This is reason, sometimes this testing technique is also called as Acceptance testing)
  • Testing helps to identify the vagueness and contradiction in functional specifications.
  • Test cases can be designed as soon as the functional specifications are complete

Disadvantages of Black Box Testing

  • The results are often overestimated.
  • Not all properties of a software product can be tested
  • The reason for a failure is not found.
  • Only a small number of possible inputs can actually be tested, to test every possible input stream would take nearly forever
  • Without clear and concise specifications, test cases are hard to design
  • There may be unnecessary repetition of test inputs if the tester is not informed of test cases the programmer has already tried
  • May leave many program paths untested
  • Cannot be directed toward specific segments of code which may be very complex (and therefore more error prone)
  • Most testing related research has been directed toward glass box testing
  • Test cases are tough and challenging to design, without having clear functional specifications
  • It is difficult to identify tricky inputs, if the test cases are not developed based on specifications.
  • It is difficult to identify all possible inputs in limited testing time. So writing test cases is slow and difficult
  • Chances of having unidentified paths during this testing
  • Chances of having repetition of tests that are already done by programmer.

Advantages and Disadvantages of White Box testing

Advantages of white box testing

  • Forces test developer to reason carefully about implementation
  • Approximates the partitioning done by execution equivalence
  • Reveals errors in "hidden" code:
  • Beneficent side-effects
  • Optimizations (e.g. chartable that changes reps when size > 100)
  • As the knowledge of internal coding structure is prerequisite, it becomes very easy to find out which type of input/data can help in testing the application effectively.
  • The other advantage of white box testing is that it helps in optimizing the code.
  • It helps in removing the extra lines of code, which can bring in hidden defects.

Disadvantages of white box testing

  • Expensive
  • Miss cases omitted in the code
  • As knowledge of code and internal structure is a prerequisite, a skilled tester is needed to carry out this type of testing, which increases the cost.
  • And it is nearly impossible to look into every bit of code to find out hidden errors, which may create problems, resulting in failure of the application.
  • Not looking at the code in a runtime environment. That's important for a number of reasons. Exploitation of vulnerability is dependent upon all aspects of the platform being targeted and source code is just of those components. The underlying operating system, the backend database being used, third party security tools, dependent libraries, etc. must all be taken into account when determining exploitability. A source code review is not able to take these factors into account.
  • Very few white-box tests can be done without modifying the program, changing values to force different execution paths, or to generate a full range of inputs to test a particular function.

74 comments:

Numan GÖÇERİ said...

thank you, nice analysis;)

Anonymous said...

ty 4 that

Prathi said...

hi can you give me a comparison between the diff types of black box testing.....

Anonymous said...

can anyone tell me "what is the need of doing black box testing even we are doing white box testing"

Anonymous said...

acceptance testing is not black box testing.

Romil said...

there are two types of acceptance testing:
1) User acceptance testing and
2) Business acceptance testing

acceptance testing is a formal testing conducted to determine whether a system satisfies it's acceptance criteria-- criteria the system must satisfy to be accepted by the customer.

Anonymous said...

As we often say that it is not the technology which is bad but it is its use which determines the real difference between good or bad. Same is the case with Black Box car Insurance. There are two different parameters to evaluate the advantage or disadvantages of it.
Read More
http://www.worldrealnews.com/2012/04/05/black-box-car-insurance-advantages-disadvantages/

Shumaila said...

As we often say that it is not the technology which is bad but it is its use which determines the real difference between good or bad. Same is the case with Black Box car Insurance. There are two different parameters to evaluate the advantage or disadvantages of it.
Read More
http://www.worldrealnews.com/2012/04/05/black-box-car-insurance-advantages-disadvantages/

Venu said...

Tnqs a lot

Anonymous said...

Complete post on

http://blogs.tutorialshouse.com/black-box-testing/

Security Guards said...

Only a small number of possible inputs can actually be tested, to test every possible input stream would take nearly forever
Without clear and concise specifications, test cases are hard to design event security

Software Development Company said...

Hello,
The Article on Advantages and Disadvantages of Black Box and White Box Testing is informative. It gives detailed information about it.Thanks for Sharing the information on Software Testing advantages and disadvantages. Software Testing Company

Abiya said...

These provided information was really so nice,thanks for giving that post and the more skills to develop after refer that post. Your articles really impressed for me,because of all information so nice.

Software Testing Training in Chennai
AWS Training in Chennai

Unknown said...

the information you posted was useful. thanks for sharing.
Web Hosting

Nicole said...

Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.

Logistics Software
Fleet Management Software
ERP Software Companies
Human Resources Management Software
CCTV Camera Dealers in Chennai

Amelia said...

Thanks for sharing the valuable information here. So i think i got some useful information with this content. Thank you and please keep update like this informative details.

Stormwater Consulting Chennai
Transportation Consulting Chennai
Civil Engineering Consultants
Office Interiors in Chennai
Rainwater Harvesting chennai

Tejuteju said...

Really I enjoy your blog with an effective and useful information. Very nice post with loads of information. Thanks for sharing with us..!!..Data Science online Course Hyderabad

Edmund said...

Good work. I appreciate your effort for sharing such good knowledge for others. It will be useful for many people for sure.
Keep sharing it.

Vehicle tracking system
Fleet management software

Unknown said...

Really you have done great job,There are may person searching about that now they will find enough resources by your post
Selenium training in Chennai

Selenium training in Bangalore

Mounika said...

It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.
python Course in Pune
python Course institute in Chennai
python Training institute in Bangalore

Unknown said...

Great thoughts you got there, believe I may possibly try just some of it throughout my daily life.
AWS Training in Bangalore
AWS training in sholinganallur
AWS training in Tambaram
AWS training in Velachery

Stephanica said...

Really nice topics you had discussed above. I am much impressed. Thank you for providing this nice information here. And if you are looking for the best game testing choose with our

XBOX Game Tester

Game Testing Companies

Console Game Testing

Sharmila Rani said...
This comment has been removed by the author.
Deepali M said...
This comment has been removed by the author.
Chris Hemsworth said...

The article is so informative. This is more helpful for our
Learn best software testing online certification course class in chennai with placement
Best selenium testing online course training in chennai
Best online software testing training course institute in chennai with placement
Thanks for sharing.

divi said...

That's an awesome post! I really love it. I'm gonna share this with my friends, Keep sharing more.
web design company in velachery

Priyanka said...

Attend The Artificial Intelligence Online courses From ExcelR. Practical Artificial Intelligence Online courses Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Artificial Intelligence Online courses.
ExcelR Artificial Intelligence Online courses

Anonymous said...

For AI training in Bangalore,Visit:
Artificial Intelligence training in Bangalore

Softgen Infotech said...

Such great information for blogger iam a professional blogger thanks…

Looking for Data Stage Training in Bangalore, learn from Softgen Infotech provide Data StageTraining on online training and classroom training. Join today!

chandu said...

Here come the Expert Market Reach offers Digital Marketing course at a very low price.Online and offline training as students requirement.
live and paid internships for projects.So people who are interested to join just visit expertmarketreach.com
Digital Marketing course in vizag

Ruby said...

Thank you so much for providing such a nice information. Awaiting for your interesting solutions and ideas from you.Keep up the good work.
software testing services
software testing companies usa
Qa Services
Regression testing services
Performance testing Services
Test automation services

360DigiTMG_R said...

Great post I must say and thanks for the information. I appreciate your post and look forward to more.

data science course in navi mumbai

sankeerthan said...

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.
data science course in lucknow

360digiTMG said...

I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
data science course in vadodara

360DigiTMG Aurangabad said...

Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written.
data science course in delhi

Edward said...

Thank you so much for this nice information. Hope so many people will get aware of this and useful as well. And please keep update like this.

Video Game Testing Solutions

AR VR Game Testing Services

360digitmg said...

I am impressed by the information that you have on this blog. It shows how well you understand this subject.

data science course in ecil

360digitmg said...

This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.
data science training in ecil

rocky said...

I would like to your article. thank you so much sir share more information.
Python Training in Chennai | Certification | Online Training Course | Python Training in Bangalore | Certification | Online Training Course | Python Training in Hyderabad | Certification | Online Training Course | Python Training in Coimbatore | Certification | Online Training Course | Python Training in Online | Python Certification Training Course

sherlie said...

Good post really you are providing an valuable information.
Web Designing Training in Chennai

Web Designing Course in Chennai

Web Designing Training in Bangalore

Web Designing Course in Bangalore

Web Designing Training in Hyderabad

Web Designing Course in Hyderabad

Web Designing Training in Coimbatore

Web Designing Training

Web Designing Online Training

Anonymous said...
This comment has been removed by the author.
Unknown said...

Good Post! , it was so good to read and useful to improve my knowledge as an updated one, keep blogging.After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts likethis.
https://www.3ritechnologies.com/course/selenium-online-training/

Python said...

Informative blog. Thanks for sharing.
Python Online Training

divya said...

Thanks for Sharing a very Nice Information & It’s really helpful for us.
software testing training in chennai

360DigiTMG Aurangabad said...

https://360digitmg.com/india/business-analytics-training-in-aurangabad

360DigiTMG Aurangabad said...

https://360digitmg.com/india/business-analytics-training-in-aurangabad

aamak said...

A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one
internet broadband in btps

Navyasri said...


hello sir,
thanks for giving that type of information. I am really happy to visit your blog.Leading Solar company in Andhra Pradesh

Data Science Course in Bhilai - 360DigiTMG said...

Stupendous blog huge applause to the blogger and hoping you to come up with such an extraordinary content in future. Surely, this post will inspire many aspirants who are very keen in gaining the knowledge. Expecting many more contents with lot more curiosity further.

data science course in bangalore with placement

Ramesh Sampangi said...

Thanks for sharing this post. Keep sharing more blogs.
Data Science Training with placements
AI Training with placements

Ramesh Sampangi said...
This comment has been removed by the author.
Ramesh Sampangi said...

Nice blog. Very impressive and Knowledgeable.
Online Python Course Training in Hyderabad

سما الحرمين said...

شركة عزل اسطح بالاحساء
شركة عزل اسطح بالقطيف
شركة عزل اسطح بالجبيل
شركة عزل اسطح بالدمام

Maneesha said...

Wonderful illustrated information. I thank you for that. No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject!
data science classes in hyderabad

Ramesh Sampangi said...

Nice blog. Informative and knowledgeable content. Big thumbs up for this blog. I really enjoyed this blog. Thank you for sharing with us.
Data Science Training and Placements in Hyderabad
Data Science Course and Placements in Hyderabad

Ramesh Sampangi said...

Amazing post. Informative and knowledgeable content. Keep sharing more stuff like this. Thank you.
Data Scientist Training in Hyderabad

David Fincher said...

Such a good post .thanks for sharing
Salesforce Training in Porur
Salesforce Training in Chennai

Pavithra Devi said...

Such a good post .thanks for sharing
Digital Marketing Course in T Nagar
Digital Marketing Course in Chennai

360DigiTMG said...

I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!
data analytics courses in hyderabad with placements

Data Scientist said...

This is what I'm looking for. I love to comment that the "substance of your post" is amazing. Great job! Data Science Course Training in Bangalore

Data Science said...

Any way I’ll be subscribing to your feed and I hope you post again soon.business analytics course in hyderabad

shashidhar said...

Thanks for giving me the
opportunity to talk about a Data science course. For the Best career in Data
science, I recommend Skillslash is recognized as the best
data science institute in Hyderabad. We cover all the essential topics in data science
like R, Python, Machine Learning, and Deep
Learning, Tableau, etc.
Data Science Course in Hyderabad

Zanoon said...

we are giving online IT and non IT courses with placement support. Get your dream job in just 3 months
we are giving online IT and non IT courses with placement support. Get your dream job in just 3 months. Our trainners having 11 years of experience in both IT and non IT courses. we have digital marketing experts also who has above 10 years of experience in digital marketing feild.
training and placement courses in bangalore
Courses

Machine Learning



Digital Marketing



AWS



Python



Data Science



Medical Coding



Cyber Security



MuleSoft



Java-Testing



Dotnet & SQL



Cloud computing



Salesforce

Digital Aacharya said...

Thank you for sharing this great information great work keep it up. This is a very informative article. visit our website to know about Digital Marketing Course


Wiztech automation solutions pvt.ltd said...

Embedded training center in Chennai
best embedded training institute in Chennai
plc training center in Chennai
plc scada vfd dcs hmi training institute in Chennai
best final year Project center in Chennai
best final year Project center in Chennai

iteducationcentre said...

great post.
Full stack training in Pune

Real Estate in Nepal said...

Thank you for an amazing article, you might also be interested in
House for sale
House for sale in Kathmandu
Land for rent
Land for rent in Kathmandu

Dishis designer jewelry said...

dishis designer jewelry
In conclusion, if you are looking for a high-quality, unique, and personalized Mangalsutra, Dishi Jewels is a perfect choice. With their excellent customer service, transparent policies, and wide range of designs, you can be sure to find the ideal Mangalsutra that reflects your personality and style.

priyankarajput said...

Thank you for sharing this insightful content. I always appreciate reading such high-quality information. The presented ideas are truly outstanding and captivating, making the post a delight to explore. Your fantastic work is commendable – keep it up.
visit: Getting To Know Test Automation: Navigating Tools And Frameworks For Software Testing Excellence

Real Talks said...

Thank you for sharing this insightful content. I always appreciate reading such high-quality information.

visit: hashtags for instagram

backilns said...

"Discover, explore, and optimize your hashtag game with our user-friendly platform! Elevate your social media presence effortlessly.#HashtagHeaven #BoostYourReach #SocialMediaSuccess"
valentine hashtag

Anonymous said...

Thank you for sharing this insightful content. I always appreciate reading such high-quality information. The presented ideas are truly outstanding and captivating,
valentine's day hashtags

Best PySpark Training in Chennai | PySpark Course in Chennai said...

Informative post. Thank you sharing. Please visit our website to learn new courses.

HOME said...

Top one Article and thanks for sharing.