Postman

Environment

Create an environment and define variables in its scope

Variables

{{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

Parameters (Query & Path)

/api/users?limit=5&sort=asc

/api/users/:uid

Random Values

set random values in JSON - "{{$randomFullName}}"

see console for value passed at runtime

Tests

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);
});

Runner

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.