From the inside of a test, you cannot change globally the value of a global variable. The test uses a copy of the value of the global variable and can only modify that copy.
In kapptivate Testing settings, if you change the value of a global variable that happens to be used by existing tests, there will be no repercussion, except that next time you run the affected test, you will see the updated value of the global variable.
If you change the value of a global variable that happens to be used by existing monitorings, the existing monitorings will keep using the old value. The only way to force them to use the new value is to deactivate and then reactivate them back.
Precautions
-
You cannot delete a global variable that is used in at least one existing test:
If you really wish to do so, you must first edit the affected test and remove the global variable from it, and then you'll be able to safely delete the global variable.
-
When creating or renaming a global variable, if you try to give it a name already in use somewhere else, you'll get an error message forbidding you to save it:
You can either edit the relevant test(s), or just choose another name.