# Problem with launch.json arguments

**URL:** <https://forum.robotframework.org/t/problem-with-launch-json-arguments/7359>\
**Category:** Robot Framework\
**Created:** [3 June 2024 09:10 UTC](https://forum.robotframework.org/t/problem-with-launch-json-arguments/7359 "2024-06-03T09:10:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robot-J](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@Robot-J](https://forum.robotframework.org/u/Robot-J)\
**Post date:** [3 June 2024 09:10 UTC](https://forum.robotframework.org/t/problem-with-launch-json-arguments/7359/1 "2024-06-03T09:10:12Z")

</div>

Can you pass global variables when running testcases through console?  
-v variable:value works most of the time, but I need to pass also a global values sometimes.

For some reason, some variables need to be set up with set global variable keyword, in order to register.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [3 June 2024 10:04 UTC](https://forum.robotframework.org/t/problem-with-launch-json-arguments/7359/2 "2024-06-03T10:04:21Z")

</div>

> [@Robot-J](#):
>
> -v variable:value

When you define a variable from command line, it is defined as global.  
You, are probably modifying the variable value, during test run.

Another way to use “global” variables, is to set them as environment variables.
