How does a request become a repeatable check?
Write the request in a text file, then write what must be true of the response. For a fictional shop, a request to read opening hours might pass only if the status indicates success and the hours field contains a time. Hurl can report a failed rule even when the service replied successfully.
Where can private values still appear?
Keep credentials out of the saved test file. Hurl documents redaction for values designated as secrets in logs and reports, but a raw response can still contain a secret. The JSON report can also save unchanged response bodies to disk. Review where a build stores test output and who can download it.
What would make a successful-looking reply fail?
On paper, write a two-part check for the opening hours of a fictional shop. Both a success response and a valid opening time should be required.
- Write a passing replyUse a success status and the sample time 10:00.
- Change one detailKeep the same status and remove the time. This second reply should fail the content check.
- Name the failure clearlyDescribe the failure as “opening time missing.” Keep that message with the test so a teammate knows what to inspect.