Create an environment and define variables in its scope
{{baseURL}}/api/users/2
limit={{pageSize}}
https://reqres.in/users/{{category}}
variables can be bound to a scope - global, a specific environment, collection
make variables secret so they’re hidden behind dots in the UI
make them persist to make initial value same as the current value before sharing with others
/api/users?limit=5&sort=asc
/api/users/:uid
set random values in JSON - "{{$randomFullName}}"
see console for value passed at runtime
Tests are in JavaScript and run after every request, can be defined at collection scope (will still run after every request run) or individually for a request
pm.test("Foobar", () => {
pm.expect(1).eql(1);
});
Use Runner to run collections/request: define order, iterations, delay, see summary stats
Postman has disabled the Scratch Pad (features like Collections and other offline working stuff) for non-logged in users. Last versions with offline support were 10.13.x
.