Loads request body from a payload.json file.
Supports:
{{VARIABLE_NAME}}
{{alias:NAME}}
File resolution order:
data/{fileName}
{fileName}
payload.json
Path to the JSON file (relative to project root or data/)
Given I k6 use payload json from file "payload.json" Given I k6 use payload json from file "data/create-user.json" Copy
Given I k6 use payload json from file "payload.json" Given I k6 use payload json from file "data/create-user.json"
Loads request body from a payload.json file.
Supports:
{{VARIABLE_NAME}}for environment variables{{alias:NAME}}for stored aliasesFile resolution order:
data/{fileName}if exists{fileName}in project root if existspayload.jsonin project root as fallback