Tuesday 5 March 2013

White-Box Testing Definition, Example, Application, Advantages, Disadvantages

What is White box Testing ?

Definition :
White Box Testing (also known as Clear Box Testing, Open Box Testing, Glass Box Testing, Transparent Box Testing, Code-Based Testing or Structural Testing) is a software testing method in which the internal structure/design/implementation of the item being tested is known to the tester.

The tester chooses inputs to exercise paths through the code and determines the appropriate outputs. Programming know-how and the implementation knowledge is essential. White box testing is testing beyond the user interface and into the nitty-gritty of a system.

white-box-testing

This method is named so because the software program, in the eyes of the tester, is like a white/transparent box; inside which one clearly sees.

White Box Testing is contrasted with Black Box Testing. View Differences between Black Box Testing and White Box Testing.

white-box-testing
Definition by ISTQB : White-box testing
  • Testing based on an analysis of the internal structure of the component or system.
  • White-box test design technique: Procedure to derive and/or select test cases based on an analysis of the internal structure of a component or system.

White-box test design techniques include :

  • Control flow testing
  • Data flow testing
  • Branch testing
  • Path testing
  • Statement coverage
  • Decision coverage

Example :

A tester, usually a developer as well, studies the implementation code of a certain field on a webpage, determines all legal (valid and invalid) AND illegal inputs and verifies the outputs against the expected outcomes, which is also determined by studying the implementation code.

Levels Applicable To :

White Box Testing method is applicable to the following levels of software testing:
  • Unit Testing: For testing paths within a unit
  • Integration Testing: For testing paths between units
  • System Testing: For testing paths between subsystems
  • However, it is mainly applied to Unit Testing.

White Box Testing Advantages

  • Testing can be commenced at an earlier stage. One need not wait for the GUI to be available.
  • Testing is more thorough, with the possibility of covering most paths.

White Box Testing Dis-Advantages

  • Since tests can be very complex, highly skilled resources are required, with thorough knowledge of programming and implementation.
  • Test script maintenance can be a burden if the implementation changes too frequently.
  • Since this method of testing it closely tied with the application being testing, tools to cater to every kind of implementation/platform may not be readily available.
  • White Box Testing is like the work of a mechanic who examines the engine to see why the car is not moving.
Click to know about Black box testing and Gray box testing and Differences between Black Box and White Box Testing and Compare Quality-Assurance, Quality-Control, Testing

12 comments:

  1. I found this blog really interesting. I like the contents you shared. Hope you would also like to see Difference between black box testing and white box testing

    ReplyDelete
  2. Web design company actually operate with business website's Containing block, Geometrical figures and shapes, Navigation, Graphical Design Patterns, Whitespace, Drop shadows and depth, Particle backgrounds, Mobile Friendly Designs, ChatBots, Scrolling Effects, Asymmetry and broken grid layouts for achieving clean responsive web design for your business website. Rest of the operations like Search Engine Optimization, Analytics, Marketing, Partnership, Enhance the rate of conversion, Mobile Application, Logo, Presentation and Video should taken care by another domain specific company.

    ReplyDelete

  3. The article provided by you is very nice and it is very helpful to know the more information.keep update with your blogs .I found a article related to you..once you can check it out.
    top web designing companies in hyderabad
    web designers in hyderabad
    best website designing company in Hyderabad

    ReplyDelete
  4. The blog provided by you is very nice
    https://www.exltech.in/software-testing-course.html

    ReplyDelete
  5. thanks for sharing information on software testing
    it realy helpful for all fresher
    https://www.exltech.in/software-testing-course.html

    ReplyDelete
  6. We are a creative Digital Media Agency with experienced team. We provide digital Marketing services, Web Development services, app design services Services and Branding.

    ReplyDelete
  7. Thanks for sharing this informative content , Great work
    To crack scrum master interview : Agile coach interview questions

    ReplyDelete
  8. Nice and interesting post, I appreciate your hard work. keep it up…!!!Thanks for such useful information, It is true that now if you want to grow your business you will surely need the mobile app testing services for your business. But for that purpose everyone needs best mobile app testing companies.

    ReplyDelete
  9. Yes, wonderful topic, the blog is well-written and informative, and you've shared some valuable ideas. In fact, I write about a variety of topics, including app development company, so do give your thoughts on our material...

    ReplyDelete
  10. I really like your blog. White box testing allow to tester in testing of inner working of software. Get practical knowledge of white box testing with Software Testing Institute in Greater Noida.

    ReplyDelete

Share your feedback and queries here. Your feedback are more valuable to us!