add_size_assertion
Add a size assertion to an HTTP sampler in a JMeter test plan to validate a response field's byte size against a specified threshold, ensuring response size meets expectations.
Instructions
Add a Size Assertion under an HTTP sampler, comparing a response field's byte size against a threshold.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"planId": "<planId>",
"parentId": "<parentId>",
"size": "<size>"
},
"name": "add_size_assertion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Size Assertion | |
| size | Yes | Size in bytes to compare against | |
| planId | Yes | ||
| operator | No | equal | |
| parentId | Yes | ||
| testField | No | response_network_size |