Ask Question
4 January, 14:30

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?

+2
Answers (1)
  1. 4 January, 14:58
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers