I am experiencing a false negative in my automated test results.
You can review the execution here:
[Test Report Link] (Apidog)
In the 4th test case (Get List Reward Coupon With Filters), both the database query and the API response return a value of 0.
However, the test result fails with the following message:
AssertionError: expected β0β to deeply equal β1β
Expected Behavior:
If both the count from the database query and the value from the response ($.pagination.total) are 0, the assertion should pass.
Actual Behavior:
The test incorrectly fails and displays a mismatch, even though both values are 0.
Attachments:
Screenshots showing:
- Database query returning reward_count = 0
- Response JSON showing βtotalβ: 0
- Assertion configuration ($.pagination.total == {{count_db}})





