Get ID list
GET https://postman-echo.com/get
Description: - response contains an array of numbers to use as dummy data.
Test script:
- Parse IDs out of JSON, and store them as an array
- JSON.stringify()
the array and store in an environment using pm.environment.set('key',value)
;
- Store the length of the array in the environment
Request Body
{"idArray"=>[1, 2, 3, 4, 5, 6, 7, 8, 9, 0]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |