# Global Variable not working

**URL:** <https://forum.robotframework.org/t/global-variable-not-working/5891>\
**Category:** Robot Framework\
**Created:** [28 June 2023 17:11 UTC](https://forum.robotframework.org/t/global-variable-not-working/5891 "2023-06-28T17:11:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samsanati2000](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/samsanati2000/32/4108_2.png) [@samsanati2000](https://forum.robotframework.org/u/samsanati2000)\
**Post date:** [28 June 2023 17:11 UTC](https://forum.robotframework.org/t/global-variable-not-working/5891/1 "2023-06-28T17:11:26Z")

</div>

Hi everyone,

when I use this in Test case 1:

${my\_local\_var} Set Variable “I’m a local Variable”  
Set Global Variable ${my\_local\_var}

in Test case 2 ${my\_local\_var} is not found

I am using Pycharme as IDE and Robotframework

Please kindly advise

---

<div class="post-metadata">

**Author:** ![\_daryl](https://avatars.discourse-cdn.com/v4/letter/_/45deac/32.png) [@\_daryl](https://forum.robotframework.org/u/_daryl)\
**Post date:** [28 June 2023 18:00 UTC](https://forum.robotframework.org/t/global-variable-not-working/5891/2 "2023-06-28T18:00:59Z")

</div>

Please don’t cross post, I have answered your issue in the other location. Thanks
