The Editor example Variables - Scalar.robot might have a slight syntax error

In the test case “Test With Environment Variables” on lines 27 to 30, the example has the following code:

    Log To Console    The /%{USER} is: %{USER}
    Log To Console    The /%{HOME} is: %{HOME}

which produces in the console:

   The /web_user is: web_user
   The //home/web_user is: /home/web_user

Which seemed a little off to me. Tweaking the code by changing forward slash (/) to back slash () you get the following in the console:

   The %{USER} is: web_user
   The %{HOME} is: /home/web_user

which I believe is the intended output, as it makes it clearer for purposes of demonstration both how to comment out variables, as well as showing what the environmental variables are equal to.

Hope this is helpful feedback!

1 Like