Ask Question
22 December, 00:44

Black box testing is the practice of writing tests without knowing the implementation of the code you're testing. White box testing is writing tests for code that you know the implementation of. White box testing allows you to test boundary conditions, branching, and edge cases more easily. One sample black box test, would be to pass in an empty array, and make sure that the program doesn't crash. What are three other black box tests you could run on any sorting algorithm?

+5
Answers (1)
  1. 22 December, 02:48
    0
    First test: Give a list of disordered numbers to the sorting algorithm an examine if the output is correctly sorted.

    Second test: Give a list of ordered numbers to the sorting algorithm an analyze if the output is still correctly ordered.

    Third test: Give a list of ordered numbers and some non-numeric values to the sorting algorithm and check how is managed the exception in case of error or if the output is correctly ordered.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Black box testing is the practice of writing tests without knowing the implementation of the code you're testing. White box testing is ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers