When Check encounters failures, it gives a percentage of success followed by a count of successes and a count of failures:
99% — ✓ 3134 / ✗ 2
Can Check also give this total when the result is 100% success? As in:
100% — ✓ 3136 / ✗ 0
or
100% — ✓ 3136
This would be a quick and easy way to get a count of each different request I’m sending to use in post-execution data validation.
To clarify: each of my iterations is sending up to 10 requests, so the standard metrics are not specific enough for me to get this info.
Thanks,
…Ron
Update: I found a workaround by putting a “fake” check which counts successes:
check(sms_xml_res1, {
'Send Message Request - SMS XML - status was 200': (r) => r.status === 200,
'Send Message Request - SMS XML - count of successes:': (r) => r.status != 200,
});
…which gives usable output:
✓ Send Message Request - SMS XML - status was 200
✗ Send Message Request - SMS XML - count of successes:
↳ 0% — ✓ 0 / ✗ 24897
✓ Send DLR Request - SMS XML - response was 200
I’d rather simply be able to force the check to give the tally whether or not there are failures.