Should QA test for failure cases (i.e. non-happy paths)?

Posted by dystopiadattopia@reddit | ExperiencedDevs | View on Reddit | 40 comments

We have a QA tester who writes scripts for direct API calls instead of doing UI testing (we have another UI QA for that). I'm concerned that he may be only doing happy path requests. This is a concern because this is a legacy codebase where data in a request has historically not always been validated correctly, resulting in successes where there should be failures and vice versa.

We've been trying to plug these holes over the last couple years, but this sometimes still happens, and I was thinking we should tell the QA guy to add tests for failures by submitting invalid data, just to make sure expected behavior is happening.

I'm not a QA professional so I'm not sure if this is standard practice or not. Is this something that people do, or am I just trying to force QA to go beyond their scope?