What is White Box Testing? | Difference between Black Box and White Box Testing | InterviewDOT

Поделиться
HTML-код
  • Опубликовано: 20 мар 2020
  • Click here - / @interviewdot to get notifications.
    Tamil What is White Box Testing? | Benefits | Black Box vs White Box | InterviewDOT
    What is White Box Testing?
    WHITE BOX TESTING is testing of a software solution's internal structure, design, and coding. In this type of testing, the code is visible to the tester. It focuses primarily on verifying the flow of inputs and outputs through the application, improving design and usability, strengthening security. White box testing is also known as Clear Box testing, Open Box testing, Structural testing, Transparent Box testing, Code-Based testing, and Glass Box testing. It is usually performed by developers.
    It is one of two parts of the Box Testing approach to software testing. Its counterpart, Blackbox testing, involves testing from an external or end-user type perspective. On the other hand, Whitebox testing is based on the inner workings of an application and revolves around internal testing.
    The term "WhiteBox" was used because of the see-through box concept. The clear box or WhiteBox name symbolizes the ability to see through the software's outer shell (or "box") into its inner workings. Likewise, the "black box" in "Black Box Testing" symbolizes not being able to see the inner workings of the software so that only the end-user experience can be tested.
    What do you verify in White Box Testing?
    White box testing involves the testing of the software code for the following:
    Internal security holes
    Broken or poorly structured paths in the coding processes
    The flow of specific inputs through the code
    Expected output
    The functionality of conditional loops
    Testing of each statement, object, and function on an individual basis
    The testing can be done at system, integration and unit levels of software development. One of the basic goals of whitebox testing is to verify a working flow for an application. It involves testing a series of predefined inputs against expected or desired outputs so that when a specific input does not result in the expected output, you have encountered a bug.
    How do you perform White Box Testing?
    To give you a simplified explanation of white box testing, we have divided it into two basic steps. This is what testers do when testing an application using the white box testing technique:
    STEP 1) UNDERSTAND THE SOURCE CODE
    The first thing a tester will often do is learn and understand the source code of the application. Since white box testing involves the testing of the inner workings of an application, the tester must be very knowledgeable in the programming languages used in the applications they are testing. Also, the testing person must be highly aware of secure coding practices. Security is often one of the primary objectives of testing software. The tester should be able to find security issues and prevent attacks from hackers and naive users who might inject malicious code into the application either knowingly or unknowingly.
    White Box Testing Techniques
    A major White box testing technique is Code Coverage analysis. Code Coverage analysis eliminates gaps in a Test Case suite. It identifies areas of a program that are not exercised by a set of test cases. Once gaps are identified, you create test cases to verify untested parts of the code, thereby increasing the quality of the software product
    There are automated tools available to perform Code coverage analysis. Below are a few coverage analysis techniques
    Statement Coverage:- This technique requires every possible statement in the code to be tested at least once during the testing process of software engineering.
    Branch Coverage - This technique checks every possible path (if-else and other conditional loops) of a software application.
    Apart from above, there are numerous coverage types such as Condition Coverage, Multiple Condition Coverage, Path Coverage, Function Coverage etc. Each technique has its own merits and attempts to test (cover) all parts of software code. Using Statement and Branch coverage you generally attain 80-90% code coverage which is sufficient.
    Advantages of White Box Testing
    Code optimization by finding hidden errors.
    White box tests cases can be easily automated.
    Testing is more thorough as all code paths are usually covered.
    Testing can start early in SDLC even if GUI is not available.
  • НаукаНаука

Комментарии • 9

  • @shaliniravi5050
    @shaliniravi5050 4 года назад +4

    Sir, Very useful and clear Explanation. Keep making more videos.

    • @InterviewDOT
      @InterviewDOT  4 года назад +2

      Thanks a million fo your excellent feedback - InterviewDOT

  • @reshman4715
    @reshman4715 2 года назад

    Useful one....thanks bro !!

  • @afridi28____
    @afridi28____ Год назад +1

    Your explanation is so clear bro compared to other channels short and sharp 🫡

  • @ashwing9035
    @ashwing9035 3 года назад

    sir is white box testing is only done by the who have development knowledge or a normal tester without development knowledge can test?

  • @Jagadesh-S
    @Jagadesh-S 2 года назад

    Integration and unit testing pathi solla mudiyum ah ji

  • @RajA-xs5zq
    @RajA-xs5zq Год назад

    Super bro.. Good explanation 👏👏🤝

  • @saravanakumarr6028
    @saravanakumarr6028 11 месяцев назад

    Gray box testing Ena bro