Skip to content
Download

Run context and cookies

Read-only facts about the current run.

PropertyDescription
pm.info.requestNameThe request’s name
pm.info.eventName"prerequest" or "test"
pm.info.iterationCurrent iteration (1-based)
pm.info.iterationCountTotal iterations in this run

Read-only access to the cookies the request’s jar would send for this URL. Domain, path, and Secure matching is already applied.

MethodDescription
pm.cookies.get(name)Cookie value, or undefined
pm.cookies.has(name)Whether the cookie is present
pm.cookies.names()Array of cookie names

Called from a pre-request script, skips the send entirely. The request is reported as skipped rather than failed, so a conditional request does not fail a collection run or a kurlo run exit code. Calling it from a test script does nothing — the response already exists.

// Only hit the billing API when the environment opts in.
if (pm.environment.get("mode") !== "live") pm.execution.skipRequest()