I'm having a problem reading a list variable from a file. I have a file (variables.py) with 3 variables :
TEST1=212
TEST2=[111, 222, 333, 444, 555, 666]
TESTS3="sadasd"
Both ${TEST1} and ${TEST3} are accessible (I get values from variable file)
But when I try to access second variable with @{TEST2}[2], I get an error :
FAIL : Non-existing variable '@{TEST2}[2]'
This only happens, if I try to use variables from file. If I create list variable in RIDE, I can easly access it with @{Variable}[{$index}]
If I try this syntax : ${TEST2}[2], I get :
'[111, 222, 333, 444, 555, 666][2]'
So robotframework knows that there is a variable with given name, but doesn't know that it's a list variable. Am I doing something wrong?