Closed GoogleCodeExporter closed 9 years ago
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.
Original comment by pekka.klarck
on 28 Apr 2010 at 7:22
Martin, any comments to my proposal to support environment variables?
Original comment by pekka.klarck
on 30 Aug 2010 at 3:54
Original comment by pekka.klarck
on 23 Sep 2010 at 6:37
Original comment by robotframework@gmail.com
on 2 Dec 2011 at 9:33
Original issue reported on code.google.com by
c.martin...@gmail.com
on 28 Apr 2010 at 6:47