[qmtest] Variable in argument list
Kelly Lucas
lucaskeli at fastmail.fm
Mon Apr 10 22:14:16 UTC 2006
Thanks. But if I'm not writing my own classes, etc, I just want to
access the variable by specifying this variable in the xml file for each
testcase. Is this something I can do?
kdl
Kelly D. Lucas
lucaskeli at fastmail.fm
Stefan Seefeld wrote:
> Kelly Lucas wrote:
>> I'm not sure I understand how to access this. Yes, each individual
>> test already does the work of connecting to the system under test. I
>> just need a dynamic way to pass qmtest the hostname of the system I
>> want to test. So under the scenario below, how could I access $SUT
>> once qmtest is running?
>
> Ok, in this case a context variable seems indeed like the best way to
> go. Run 'qmtest run -c name=variable' and from your test's Run() method
> access the variable as 'context["name"]'.
>
> Regards,
> Stefan
More information about the qmtest
mailing list