Question

    Which software testing technique involves testing the

    internal structure or workings of an application?
    A Black Box Testing Correct Answer Incorrect Answer
    B White Box Testing Correct Answer Incorrect Answer
    C Regression Testing Correct Answer Incorrect Answer
    D User Acceptance Testing (UAT) Correct Answer Incorrect Answer
    E Integration Testing Correct Answer Incorrect Answer

    Solution

    White Box Testing (also known as Clear Box Testing or Glass Box Testing) involves testing the internal structures, logic, and code paths of an application. It is often performed by developers or testers with a strong understanding of the codebase. This technique ensures that all internal operations of the software, such as loops, statements, and decision branches, work as intended.

    1. Key Features: It includes techniques like statement coverage, branch coverage, and path coverage. For example, ensuring that every conditional statement ( if , else ) executes at least once.
    2. Why It Is Important: White Box Testing identifies errors that are deeply rooted in the code, such as logic errors or security vulnerabilities.
    3. Tools Used: Tools like JUnit, NUnit, or Selenium with code coverage analyzers like JaCoCo are used for this testing.
    Why Other Options Are Incorrect:
    • Black Box Testing: Focuses on the application’s functionality without considering internal code, unlike White Box Testing.
    • Regression Testing: Validates that recent changes don’t affect existing functionality but doesn’t analyze internal workings.
    • UAT: Tests the application’s compliance with user requirements, not its internal structure.
    • Integration Testing: Focuses on interactions between modules, not on internal code paths.

    Practice Next