add_http_sampler
Add an HTTP Request sampler to a JMeter test plan under a specified parent. Define method, path, and optional body; omit domain, port, or protocol to inherit from HTTP Request Defaults.
Instructions
Add an HTTP Request sampler under the given parent node (usually a Thread Group). To inherit protocol, domain or port from an HTTP Request Defaults config element in scope (add_http_request_defaults), leave that argument out of the call - do not pass an empty string or a placeholder, because those fields have no default of their own. Passing an explicit value always overrides the Defaults for that field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | Request path, e.g. /v1/users | |
| port | No | Omit to inherit from HTTP Request Defaults | |
| domain | No | Host name, e.g. api.example.com. Omit to inherit from HTTP Request Defaults | |
| method | Yes | ||
| planId | Yes | ||
| bodyJson | No | Raw JSON request body, if any | |
| parentId | Yes | ||
| protocol | No | Omit to inherit from HTTP Request Defaults |