How to Design Test Cases?

There are mainly two techniques to design the test cases:

Black box testing

  • It is a specification-based technique where the testers view the software as a black box with inputs and outputs.
  • In black box testing, the testers do not know about how the software is structured inside the box, they know only what the software does but do not know how the software does.
  • This type of technique is valid for all the levels of testing where the specification exists.

White box testing

  • White box testing is a testing technique that evaluates the internal logic and structure of the code.
  • In order to impement the white box testing, the testers should have the knowledge of coding so that they can deal with the internal code. They look into the internal code and finds out the unit which is malfunctioning.