When applying Equivalence Partitioning, how should invalid input data be handled in API testing?

  • Handle them as valid inputs
  • Ignore invalid inputs
  • Log the invalid inputs
  • Raise an exception
Equivalence Partitioning is a testing technique where input data is divided into groups to ensure that each group is processed in a similar way. When dealing with invalid input data, raising an exception is a common approach to handle unexpected scenarios and ensure robustness in the API. This helps identify potential issues in how the API handles incorrect or unexpected data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *