New to the realm software testing, I moved into a QA role at my company back in March '18, and I’m starting to get a good handle on things.
One thing I am struggling with is how to efficiently organize my test scenarios/cases when there are duplicate checks that need to be performed.
Test scenario: Make API call with missing fields
Test case 1: Field 1 is missing
Test case 2: Field 2 is missing
Now within each test case I need to verify a few things
- Confirm call did not return data to user
- Did call return proper error
- Did API request get logged to server (verify the log entry contains all its required fields such as user, timestamp, endpoint, etc.).
Here is how I organize this currently:
Test scenario: Call API with field 1 missing
Test case 1: confirm no usable data sent back to user
Test case 2: confirm proper error was returned
Test case 3: confirm log entry created (expected result column shows each field that we expect to see in log entry).
The problem is, I end up with dozens of test scenarios, due to combinations of fields missing, each of which have practically all the same test cases (check no data, check error, check log entry). I’ve also tried shoving all 3 checks into the expected result column, for a given test case, but that turns into a giant mess that becomes hard to manage.
Is there a better way to do this?