sh declare variable
#!/bin/sh
MY_MESSAGE="Hello World"
echo $MY_MESSAGE
sh declare variable
#!/bin/sh
MY_MESSAGE="Hello World"
echo $MY_MESSAGE
definin variables in script
-Use pm.globals to define a global variable:
pm.globals.set("variable_key", "variable_value");
-Use pm.collectionVariables to
define a collection variable:
pm.collectionVariables.set("variable_key", "variable_value");
-Use pm.environment to define an environment
variable (in the currently selected environment):
pm.environment.set("variable_key", "variable_value");
-You can use unset to remove a variable:
pm.environment.unset("variable_key");
-Defining local variables
Local variables are temporary values you set
in your request scripts using the following syntax:
pm.variables.set("variable_key", "variable_value");
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us