API testing · Local generator
Hurl API Test Generator
Turn a request and its expected response into a readable .hurl test. Add status, latency, and JSONPath assertions, then download the file for local or CI execution.
Runs locally: this page only generates text. It does not send your request or upload the URL, headers, body, or assertions.
Plain-text API tests
Keep requests and assertions readable, diffable, and CI-ready.
Request and assertions
Build one executable API check.
Secrets should be replaced with Hurl variables before committing a generated file.
.hurl fileREADYFrom quick check to CI
Connect browser QA to repeatable API tests.
Generate the file here, run it locally with Hurl, then add the reviewed test to your repository.
Send a quick browser request, inspect status and latency, and confirm the expected response.
Validate the payloadCheck example JSON against a schema before converting expectations into assertions.
Use Hurl variables and environment files instead of committing tokens, passwords, or production data.
Execute hurl --test and export JUnit, TAP, JSON, or HTML reports in your pipeline.
Pair response assertions with a schema compatibility review when an API changes.
Generate fixturesCreate fictional request bodies for positive, boundary, and error scenarios.
What is Hurl?
Hurl is a command-line tool that runs HTTP requests written in a plain-text format and checks response status, headers, body values, and performance constraints. A Hurl file can describe one request or a sequence of dependent API calls.
How to generate a Hurl API test
- Choose an HTTP method and enter the request URL.
- Add headers and an optional request body.
- Set the expected status, duration limit, and optional JSONPath assertion.
- Download the
.hurlfile, review it, and run it with the displayed command.
Hurl generator limitations
This focused generator creates one request with common assertions. Advanced captures, variables, authentication helpers, multipart uploads, request chaining, XPath, GraphQL, and complex predicates should be added using the official Hurl documentation.
Hurl API test generator FAQ
Does the generator execute the test?
No. It generates text locally. Use Hurl on your computer or CI runner to execute the file.
Can I generate POST and PATCH requests?
Yes. Choose the method, add request headers, and paste the JSON or text body.
How should I handle API tokens?
Do not paste real secrets into public tools or commit them to a test file. Replace sensitive values with Hurl variables and inject them from a protected environment.