Does anyone know what's happening?

I’m trying to set a global variable

but maybe it’s not the correct way to do it

i need some help here, thank you in advance

Hi. Syntax should be…

Set Global Variable ${LOG_PATH} filepath

1 Like

Hi @maurosouto27

As @mika said, the way you set variables locally or globally in Keywords follows a strict syntax. The Set Global Variable does have a good example in the documentation but documentation for Set Local Variable does show how to correctly use it, which also applies to Set Global Variable.

Here is the solution and tests:

So I suggest you have your ${fetch} variable set in the global variable section Variables that way you can directly access it and use C:/Users/Mauro/Desktop/${fetch}_log.txt to create your new global variable.

Hope this clears this up a bit.