Recall & Review
beginner
What is request validation in software testing?
Request validation is the process of checking if the data sent to a system (like a web server) is correct, complete, and safe before the system processes it.
Click to reveal answer
beginner
Why is response validation important in testing?
Response validation ensures that the system returns the correct and expected data after processing a request, helping to catch errors or unexpected behavior.
Click to reveal answer
beginner
Name two common checks done during request validation.
1. Checking if required fields are present.<br>2. Verifying data types and formats (e.g., email format).
Click to reveal answer
intermediate
What can happen if response validation is skipped?
Skipping response validation can let bugs or incorrect data go unnoticed, which may cause problems for users or other systems relying on that data.Click to reveal answer
beginner
Give an example of a simple assertion for response validation in testing.
An example: Check if the response status code is 200 (OK) to confirm the request succeeded.
Click to reveal answer
What does request validation primarily check?
✗ Incorrect
Request validation checks the correctness and safety of data sent to the system.
Which of the following is a common response validation step?
✗ Incorrect
Response validation ensures the response data matches what is expected.
What might happen if request validation is missing?
✗ Incorrect
Without request validation, bad data can cause errors or security issues.
Which status code is commonly checked in response validation to confirm success?
✗ Incorrect
Status code 200 means the request was successful.
What is a simple way to validate a JSON response?
✗ Incorrect
Validating JSON means confirming it has the right keys and values.
Explain in your own words why request and response validation are important in software testing.
Think about what happens if bad data enters or bad data leaves a system.
You got /4 concepts.
Describe two common checks you would perform when validating a request and two for validating a response.
Consider what you check before sending data and what you check after receiving data.
You got /2 concepts.