# Global variables

**URL:** <https://forum.katalon.com/t/global-variables/59202>\
**Category:** Miscellaneous\
**Tags:** new-doc-request\
**Created:** [October 15, 2021, 2:53am UTC](https://forum.katalon.com/t/global-variables/59202 "2021-10-15T02:53:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [October 15, 2021, 2:53am UTC](https://forum.katalon.com/t/global-variables/59202/1 "2021-10-15T02:53:19Z")

</div>

* * *
This is a companion discussion topic for the original entry at [https://docs.katalon.com/katalon-recorder/docs/global-variables.html](https://docs.katalon.com/katalon-recorder/docs/global-variables.html)

---

<div class="post-metadata">

**Author:** ![fred.chan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/fred.chan/32/16104_2.png) [@fred.chan](https://forum.katalon.com/u/fred.chan)\
**Post date:** [December 21, 2021, 1:44pm UTC](https://forum.katalon.com/t/global-variables/59202/2 "2021-12-21T13:44:46Z")

</div>

Using Version 5.6.5, is there a way to define Global Variable for an URL to open for each test case?

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [December 21, 2021, 3:19pm UTC](https://forum.katalon.com/t/global-variables/59202/3 "2021-12-21T15:19:57Z")

</div>

You can create a profile under the **Profile** section, define a variable called `url` with your URL and then in the test cases you put `${url}` instead of the hard-coded URL.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![dbarrett64](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dbarrett64/32/16104_2.png) [@dbarrett64](https://forum.katalon.com/u/dbarrett64)\
**Post date:** [December 31, 2021, 3:57am UTC](https://forum.katalon.com/t/global-variables/59202/4 "2021-12-31T03:57:02Z")

</div>

I’m trying also use the global variable but with the command Open we are not allowed to use ${url} in the target filed, only on Value. Also we need to use ${GlobalVariable.url}. Anyhow it won’t work, it will add “$%url%7D” at the end of the current URL

---

<div class="post-metadata">

**Author:** ![igor.ustinov2222](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/igor.ustinov2222/32/28497_2.png) [@igor.ustinov2222](https://forum.katalon.com/u/igor.ustinov2222)\
**Post date:** [February 14, 2022, 2:59pm UTC](https://forum.katalon.com/t/global-variables/59202/5 "2022-02-14T14:59:08Z")

</div>

Ver. 5.7.3 same problem. can’t use variables

---

<div class="post-metadata">

**Author:** ![uyen.do](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/uyen.do/32/20464_2.png) [@uyen.do](https://forum.katalon.com/u/uyen.do)\
**Post date:** [February 15, 2022, 10:59am UTC](https://forum.katalon.com/t/global-variables/59202/6 "2022-02-15T10:59:59Z")

</div>

Hi everyone,

Currently the Global Variable feature only works in Value field. We’ll let you know when you can apply Global Variable to Target field.

My apologies for the inconvenience.

---

<div class="post-metadata">

**Author:** ![zoe.lee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zoe.lee/32/16104_2.png) [@zoe.lee](https://forum.katalon.com/u/zoe.lee)\
**Post date:** [May 12, 2022, 2:15am UTC](https://forum.katalon.com/t/global-variables/59202/7 "2022-05-12T02:15:05Z")

</div>

Hi all,  
Can someone help me?  
I have a file. “parameter .krprofile”  
It is a file generated after downloading profiles  
But I can’t find a way to upload it

---

<div class="post-metadata">

**Author:** ![uyen.do](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/uyen.do/32/20464_2.png) [@uyen.do](https://forum.katalon.com/u/uyen.do)\
**Post date:** [May 13, 2022, 7:58am UTC](https://forum.katalon.com/t/global-variables/59202/8 "2022-05-13T07:58:32Z")

</div>

Hi there,

Importing profiles into KR is not currently supported yet, It should be available soon. Stay tuned.

Thanks for using KR!
