# Updating global variable value at runtime

**URL:** <https://forum.katalon.com/t/updating-global-variable-value-at-runtime/49806>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [December 2, 2020, 1:14pm UTC](https://forum.katalon.com/t/updating-global-variable-value-at-runtime/49806 "2020-12-02T13:14:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [December 2, 2020, 1:14pm UTC](https://forum.katalon.com/t/updating-global-variable-value-at-runtime/49806/1 "2020-12-02T13:14:59Z")

</div>

Hello, i have a global variable glb\_text = ‘XYZ’ and during the execution of a keyword, i want to update the value to glb\_text = ‘ABC’. After the test execution, i check in the profile and the value is still ‘XYZ’.

Is there any means to overcome that issue?

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [December 2, 2020, 1:53pm UTC](https://forum.katalon.com/t/updating-global-variable-value-at-runtime/49806/2 "2020-12-02T13:53:56Z")

</div>

No, because it’s not an issue.

Your profile contains the _initial value_. You can change it throughout the life time of your tests, but each new run, it will revert back to the original initial value.

The only way to evolve a value across different suite runs is to store that value externally some way… in a file or database, etc. and read it back in each time you restart a suite.

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [December 2, 2020, 3:49pm UTC](https://forum.katalon.com/t/updating-global-variable-value-at-runtime/49806/3 "2020-12-02T15:49:25Z")

</div>

Thank you @Russ_Thomas
