Capture and skipIf
This example shows how to capture a JSON response, use $length(...), and then skip a follow-up request at httpRequest level.
name: TestPlan
rounds:
- name: FeatureRound
numberOfClients: 10
arrivalDelay: 1000
runInParallel: false
iterations:
- name: users
httpRequest:
capture:
to: users
as: Json
makeGlobal: true
url: https://jsonplaceholder.typicode.com/users
method: GET
- name: httpbinOrg
httpRequest:
skipIf: ${users.Body[$length($users.Body)-1].id} = 10
httpMethod: Get
url: https://jsonplaceholder.typicode.com/
What It Demonstrates
- Response capture into
users - JSON body access through
${users.Body...} - Arithmetic path support with
[$length(...)-1] - Request-level
skipIf