Search code examples
automated-testspostmannewman

Is there another way to manipulate shareable variables in postman test, without using PM object?


I have an collection in the Postman with automated E2E tests, and some calls need to share variables. Currently I being using the object pm to set the values (pm.global.set("envName", "envValue")), but this aproach is not good... Have a way to handle this variables like an "normal var"?


Solution

  • there's no way to resolve that... to set and get sharable env, the only way is using the pm object.

    check this question: Postman - Pass local variable from Pre-request Script into the Body