nerdexam
Check_Point

156-521 · Question #197

Which Postman feature is best used to automatically store the session token from the login response?

The correct answer is C. Tests Tab. In the Tests tab, you can write a script such as pm.environment.set("session", pm.response.json().sid); to extract and save the session token for use in later requests.

Security Management API Operations

Question

Which Postman feature is best used to automatically store the session token from the login response?

Options

  • APre-request Script
  • BHeaders
  • CTests Tab
  • DBody Parser

How the community answered

(54 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    89% (48)
  • D
    4% (2)

Explanation

In the Tests tab, you can write a script such as pm.environment.set("session", pm.response.json().sid); to extract and save the session token for use in later requests.

Topics

#Tests tab#token storage#Postman automation#session capture

Community Discussion

No community discussion yet for this question.

Full 156-521 Practice