201k views
3 votes
You are examining a piece of code that you found on GitHub as it might be useful in a piece of software that you are writing. The code can be used for developing a file server.

(b) Assume that we have completed our program. To test the functionality mentioned in part a, we run the program and as input, we enter some different (both correct and incorrect) paths. What is this type of test, black box or white box? Explain your reasons.

1 Answer

2 votes

Final answer:

Testing a program by providing different input paths without inspecting the code's internals is known as black box testing, which focuses on verifying if the program's functionality meets the requirements.

Step-by-step explanation:

When you test a program by entering various input paths, both correct and incorrect, without considering the internal structure of the code, you are performing black box testing. This type of testing focuses on validating the functionality of the program to ensure it meets the specified requirements. As opposed to white box testing, which involves looking into the code structure and logic, black box testing treats the program as a "black box", where the tester verifies the output against the given input without knowing how the program processes that input.

User Rohan West
by
8.7k points