Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1714 by aalto.t...@gmail.com: Variable that contains variables is not correctly resolved when variable is declared in the variable file
http://code.google.com/p/robotframework/issues/detail?id=1714

When I have variable that contains the Operating-system variables ${EXECDIR} and ${/}, they are not correctly resolved when variables are read from resource file.

I did write small example, my test looks like this:
*** Settings ***
Variables         varibale.py

*** Test Cases ***
foobar
    ${other var}    Catenate    SEPARATOR=    ${EXECDIR}    ${/}    out
    Log    c:${/}tmp${/}out
    Log    ${other var}
    Log    ${MY_VAR}

and my varibale.py looks like this:
MY_VAR = "${EXECDIR}${/}tmp"

But when test case is executed C:\tmp folder, all the Log keywords output should look the same, but it does not. The Log ${MY_VAR}, looks like this: 14:58:25.590 INFO ${EXECDIR}${/}tmp But the other Log keywords looks like this: 14:58:25.590 INFO C:\tmp\out

Is this a bug or expected result? I could not find answer from user Guide, are the variables inside a variable resolved when variables are declared in the variable file.

Tested with:
C:\>pybot --version
Robot Framework 2.8.4 (Python 2.7.6 on win32)

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to