[qmtest] Variable in argument list
Stefan Seefeld
seefeld at sympatico.ca
Mon Apr 10 22:04:36 UTC 2006
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