If you are using Postman for your API testing and if you want to store and retrieve numeric values from environment variables, then here is a simple trick - use "Number" function. Let me explain the problem and solution.
Problem: I want to store numeric value in environment variable, for example - response time, then I want to retrieve the value from this environment variable and use for comparison.
Solution:
Problem: I want to store numeric value in environment variable, for example - response time, then I want to retrieve the value from this environment variable and use for comparison.
Solution:
- To store response time in environment variable, use setEnvironmentVariable function
- To retrieve the value from environment variable, use postman.<variable_name>
- To convert variable value to number for comparison, use Number() function
Thank you for useful information.The article about Storing and Retrieving Numeric Values from Environment Variables is very nice and it is very useful for everyone
ReplyDeleteMulesoft Online Training
Mulesoft Training in Hyderabad
It is amazing to visit your site. Thanks for sharing this information, this is useful to me...
ReplyDeleteMulesoft Online training with 100% job Assistance and 24 X 7 Online Support. Visit us about : online mulesoft training | mulesoft online course
I have found great and massive information on. Thanks for sharing
ReplyDeleteMulesoft Training in Hyderabad
Mulesoft Onine Training Hyderabad
Thanks for sharing a useful information..
ReplyDeleteMulesoft Online Training
Mulesoft Training