Tutorial
Learn hurlx step by step. This tutorial walks you through the basics to advanced features.
Your First hurlx File
Create a file named hello.hurlx:
Run it:
This sends a GET request and asserts the response is HTTP 200. If the assertion fails, hurlx exits with an error code.
Multiple Requests
Chain multiple requests in a single file:
Adding Asserts
Validate response headers, body content, and timing:
Type Checking
Capturing Values
Capture values from one request and use them in subsequent requests:
Modular Testing
The key feature of hurlx — split your tests into reusable modules.
Step 1: Create an Auth Module
Step 2: Create Configuration
Step 3: Write Tests Using Modules
Step 4: Run Tests
Debugging
Use verbose flags to debug:
CI/CD Integration
hurlx works great in CI/CD pipelines: