Hi guys,
I want to include a global value into the test-script.
As far as I know, I can add a json file to run a test, but I just want to write the key one time, and use it for all tests.
Is it possible to use a key - value in the test, which is written just one time?
Thanks
Hi @Anton39,
Correct me if I am wrong, are you trying to save some data as a global variable in the test script, if yes, you can enter the following code snippet in the Test scripts:
pm.globals.set(“variable_key”, “variable_value”);
By adding this, you can set the global variable and access it in the other test scripts by the following command:
pm.globals.get(“variable_key”);