Preferences

digikata parent
You can use hurl in this way. I have projects with a test directory of hurl files, one hurl file per test case. The cases can run one or more http requests. The hurl file can reference external files, capture values from responses for subsequent requests, validate status and outputs. Hurl has various test runner modes and will optionally output overall test results in various parsable formats if you have a larger reporting framework that you would like to hook into.

gavinray
That's great to know! Do you have an example on-hand by chance?

If that's possible, I guess the only thing I'd request is interopability with the REST Client ".http" files that VS Code/JetBrains IDE's support then.

UPDATE: Found it, looks like you can do it via the below

    POST https://example.org/api/tests
    Content-Type: application/json
    file,insert_user.request.json;

    [Asserts]
    body == file,insert_user.expected.json;
So that just leaves the IDE integration bit.

This item has no comments currently.