Nope, to achieve that you need to edit your variable file. Set Global
Variable will set a variable at run time.
> 4) I also tried it from the command line like this
>
>>pybot.bat --variablefile MyVariables.py:newVar:newValue SampleTest.tsv however it did not do the trick of writing it to the py file.
This syntax can be used pass arguments to get_variables method in your
variable file [1]. If you just want to create new variables, that
possibly override variables in your variable files, you can use
'--variable newVar:newValue'.
> I'm specifically interested in setting it from Ride and any help is
> greatly appreciated.
You can use Set Global Variable in RIDE but as I wrote above it's only
evaluated when tests are executed.
Cheers,
.peke
Yes, this is correct. RIDE doesn't use keywords itself, it just
creates test cases from keywords. Keywords are only "active" when
tests are executed.
It would be possible to implement a plugin to for editing variable
files from RIDE, though. This has even been discussed, but it's not
urgent enough for the core development team currently. Contributions
are highly appreciated of course.
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org