180k views
0 votes
Can local variables be imported in Postman Monitors? a) Yes b) No

1 Answer

2 votes

Final answer:

Local variables can not be imported into Postman Monitors. They exist in local scope and don't persist between sessions, thus they are not accessible to Monitors. Use environment or collection variables instead.

Step-by-step explanation:

No, local variables cannot be imported into Postman Monitors. Local variables in Postman exist in the local scope and they are transient. This means they do not persist between different sessions of a Postman instance, and as such they are not accessible to Postman Monitors which run in the Postman Cloud. If you need to use certain variables in Postman Monitors, you should instead use either environment variables or collection variables, which are accessible to the Monitor.

Learn more about Postman Monitors

User Ked
by
7.9k points