Comment #1 on issue 542 by pekka.klarck: Ability to reference already set
variables in argument files and maybe command line
http://code.google.com/p/robotframework/issues/detail?id=542
This is hard to implement using RF's variables because command line
arguments,
including argument files, are processed before variables are initialized.
Changing
this order would be quite a big task.
Would it be enough to support environment variables? They could be replaced
using
RF's Variables class, which supports also environment variables, without
initializing
it otherwise:
from robot.variables import Variables
v = Variables(identifiers=['%'])
v.replace_string('Hello, %{USER}!')
'Hello, peke!'
Notice also that at least on Unixes you can use environment variables on
the command
line automatically when you use the syntax required by the OS. For example
on my
Ubuntu box I can run `pybot --variable USER:$USER --monitorwidth $COLUMNS
tests.txt`.
I don't have Windows machine here to test does the Windows shell replace
environment
variables before arguments are passed to commands the same way.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings