All Exams Test series for 1 year @ ₹349 only
Question

What is the other name of White-box testing?

The correct answer is

Glass-box testing

Understanding White-box Testing in Software Engineering

Software testing is a crucial phase in the software development life cycle. It helps in identifying defects, errors, or bugs in a software application. Testing can be broadly categorized based on whether the internal structure and logic of the application are known to the tester or not.

One of the fundamental types of testing is White-box testing. This testing method is performed by testers with knowledge of the internal structure, design, and implementation of the software. It involves analyzing the code, internal logic, and pathways within the application. The goal is to test the internal workings rather than just the end-user functionality.

Alternative Names for White-box Testing

Because White-box testing involves looking inside the software's code and structure, it has earned several other names that reflect this characteristic. These names often use metaphors related to visibility or transparency.

  • Glass-box testing: This is one of the most common alternative names. The term 'glass-box' implies that the internal structure is visible or transparent to the tester, much like looking through glass. This aligns perfectly with the principle of White-box testing where the tester has access to the code and internal logic.
  • Clear-box testing: Similar to glass-box, 'clear-box' also suggests transparency and visibility into the system's internal workings.
  • Open-box testing: This name also indicates that the 'box' (the software system) is open, allowing the tester to see inside and understand its internal components and structure.
  • Structural testing: This name focuses on the aspect of testing the internal structure of the code.
  • Code-based testing: This highlights that the testing is based on the underlying source code.

Analyzing the Given Options

Let's look at the options provided and see which one is a valid alternative name for White-box testing:

  1. Glass-box testing: As discussed above, this is a widely accepted alternative name for White-box testing because it signifies the transparency of the internal structure to the tester.
  2. Open-box testing: This is also an alternative name, reflecting the openness of the system's internal view during testing. However, 'Glass-box testing' is perhaps more frequently used in many contexts.
  3. Red-box testing: This is not a standard term used in software testing methodologies.
  4. Close-box testing: This term is not used for White-box testing. It sounds similar to 'Black-box testing', where the internal structure is hidden or considered a 'closed box' to the tester.

Based on the common terminology in software testing, both 'Glass-box testing' and 'Open-box testing' are alternative names for White-box testing. Among the given options, 'Glass-box testing' is the most standard and frequently used alternative name.

Conclusion

White-box testing, which examines the internal structure and logic of software, is known by several names emphasizing the visibility of the system's internals. Among the options provided, Glass-box testing is a widely recognized alternative name for White-box testing.

Revision Table: Software Testing Types

Testing Type Description Visibility of Internal Structure Alternative Names
White-box Testing Tests the internal structure, design, and coding of the software. Known (Transparent) Glass-box, Clear-box, Open-box, Structural, Code-based testing
Black-box Testing Tests the functionality of the software without knowing the internal code structure. Focuses on inputs and outputs. Unknown (Opaque) Functional testing, Behavioral testing, Closed-box testing
Grey-box Testing A combination of White-box and Black-box testing. The tester has partial knowledge of the internal structure. Partial Translucent-box testing

Additional Information: Techniques Used in White-box Testing

White-box testing utilizes various techniques to ensure thorough coverage of the code. Some common techniques include:

  • Statement Coverage: Ensures that every line of source code is executed at least once.
  • Decision Coverage (Branch Coverage): Ensures that every branch (like if-else statements) is executed, covering both true and false outcomes.
  • Condition Coverage: Ensures that each boolean sub-expression within a compound condition is evaluated to both true and false.
  • Multiple Condition Coverage: Tests all possible combinations of conditions within an expression.
  • Path Coverage: Ensures that every possible path through a section of code is executed. This is the most thorough but also the most difficult to achieve completely.
  • Control Flow Testing: Analyzing the sequence of events (flow of control) through the program.
  • Data Flow Testing: Analyzing the flow of data items from their definition to their use.

These techniques help testers systematically analyze the code and uncover potential bugs related to implementation logic, code paths, and data handling.

Was this answer helpful?

Important Questions from Software Testing

  1. Equivalence partitioning is a ______.

  2. Arrange the following types of testing in the order they are usually performed in the software Development life cycle.
    A. Integration testing
    B. Unit testing
    C. System Testing
    D. Acceptance Testing
    Choose the correct answer from the options given below:
  3. Assertion(A):Rubber necking might be called non generative pattern
    Reason(R): Non generative pattern describes a content and a problem but it does not provide any clear cut solution.
  4. Which method can be applied to problems in which the input domain is relatively small but too large to accommodate exhaustive testing?
  5. Good design dictates that error conditions be anticipated and error-handling paths set up to reroute or clearly terminate processing when an error does occur. This approach is called ________.

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App