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

New issue 858 by [email protected]: Loading variables from resource file fails if variable table exists in test case
http://code.google.com/p/robotframework/issues/detail?id=858

Consider the following scenario

resource_file.txt
*** Variable ***
${VAR1}  x
${VAR2}  y
${VAR3}  ${VAR1} ${VAR2}

test_case.txt
*** Variables ***
${VAR4}  ${VAR3} z

*** Test Cases ***
Test name
    I execute ${VAR4}

This fails for me with error message

[ ERROR ] Invalid syntax in file 'test_case.txt' in table 'Variables': Setting variable '${VAR4}' failed: Non-existing variable '${VAR3}'.

However if I just move the variable VAR4 to resource_file.txt, delete the variable table from the test case and keeping everything else the same then the test case passes.

System details:
I am using robotframework-2.5.7 jar under Eclipse in Windows. Java version sunjdk 1.6.0_24

Reply via email to