Login interface returns a token, and all subsequent interfaces need to carry this token in the Header.Create User interface returns a userId, and subsequent Get, Update, and Delete user interfaces need to use this userId.Get List interface returns a set of data, and subsequent steps need to extract a specific ID from it for processing.πͺ next to the parameter input box in Step 2.$.token.{{$.2.response.body.token}}.$: Root node2: Step IDresponse.body: Data source (Response Body)token: Specific field pathNote: This reference method only takes effect when running the entire test scenario, because real data from preceding steps is generated only during runtime. You may not get values when debugging a single step.
{{variable_name}}.$.token (Path to extract value from response)accessToken (Variable name defined by you)Environment or Local (Temporary variable, valid only for this run). It is generally recommended to use Local variables to avoid polluting the environment.{{accessToken}} directly in the parameter value.See details: Pass Data Between Requests
Step 1: Create User
--> Extract userId to variable {{newUserId}}
--> Extract username to variable {{newUserName}}
Step 2: Login
--> Log in using {{newUserName}}
--> Extract token to variable {{authToken}}
Step 3: Get User
--> URL parameter uses {{newUserId}}
--> Header uses {{authToken}}
Step 4: Update User
--> URL parameter uses {{newUserId}}
--> Body uses {{newUserName}} and other new data
--> Header uses {{authToken}}
Step 5: Delete User
--> URL parameter uses {{newUserId}}
--> Header uses {{authToken}}
Step 6: Verify Deletion
--> Try to get user {{newUserId}} again
--> Expected result: 404 Not Found$.id -> newUserId$.username -> newUserName{{newUserName}}.$.token -> authTokenid in the URL, value is {{newUserId}}.Authorization in the Header (if not automatically inherited), value is Bearer {{authToken}}.404.{{$randomUserName}}) to register users to avoid "User already exists" errors caused by multiple runs.TEST_USER_ID vs GLOBAL_CONFIG_ID, to distinguish between temporary variables generated during testing and global configurations.