I want to āReset Allā environment variables before running a test. By Reset All, I mean reset them back to their original state and not unset them - so like you would if you were in the environment menu and clicked āReset Allā. Canāt seem to figure out how to do this, but it seems like a pretty necessary clean up practice?
Hi @dylan-neal
Iād probably do it slightly differently.
Instead of āat the end, resetā I would āAt the beginning, setupā
And set all my expected variables with
pm.environment.set(variableName:String, variableValue:*)
In a pre-req script at the start of the test.
Each test run automatically sets the correct variables then.
Just found this example someone has built.
Hope it helps