🪄 trong trường token ở các tham số truy vấn của Yêu cầu 2 và chọn "Retrieve pre-step data".$.token.{{$.2.response.body.token}} được chèn dưới dạng tham số truy vấn.{{$.2.response.body.token}} từ phần trước:{{variable}}. Thay vào đó, bạn nên sử dụng pm.variables.get để tham chiếu dữ liệu từ bước trước. Ví dụ:| Danh mục | Chức năng | Ví dụ cú pháp |
|---|---|---|
| Yêu cầu | URL | {{$.<step id>.request.url}} |
| Tham số đường dẫn | {{$.<step id>.request.pathParam.<field name>}} | |
| Truy vấn | {{$.<step id>.request.query.<field name>}} | |
| Header | {{$.<step id>.request.header.<field name>}} | |
| Body (form) | {{$.<step id>.request.body.<field name>}} | |
| Body (json) | {{$.<step id>.request.body.<field path>}} | |
| Phản hồi | Body | {{$.<step id>.response.body.<field path>}} |
| Header | {{$.<step id>.response.header.<field name>}} | |
| Cookie | {{$.<step id>.response.cookie.<field name>}} | |
| Vòng lặp | Phần tử (phần tử mảng trong vòng lặp ForEach) | {{$.<loop step id>.element.<field path>}} |
| Chỉ mục | {{$.<loop step id>.index}} |
$.token thành {{token}}.{{token}} trong các tham số truy vấn của Yêu cầu 2.