Skip to content

Postman – Environment and Global Variables in Test

I searched a while for this… I didn’t know global variables were retrieved differently than environmental.

For reference: https://learning.postman.com/docs/postman/scripts/postman-sandbox/

For global variables use: pm.environment.get(“variableName”)

For environment variables use: pm.environment.get(“variableName”)

You already voted!
Published inPostman

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.