define local variable code example
Example 1: what is local variable
Local variables are temporary, and only accessible
in your request scripts. Local variable values are
scoped to a single request or collection run, and are
no longer available when the run is complete.
Example 2: how to define local variable
Local variables are temporary values you set in your request
scripts using syntax :
pm.variables.set("variable_key", "variable_value");