[qmtest] Variable in argument list
Stefan Seefeld
seefeld at sympatico.ca
Mon Apr 10 21:52:06 UTC 2006
Kelly Lucas wrote:
> Actually, it looks like the context switch may do it. So, if I run
> qmtest like this:
>
> qmtest run -c SUT=blade testsuite.test1
>
> how would I specify this context variable inside of a test? Could I
> simply place SUT in the field argument list?
The context dictionary is provided in the Test.Run() call, so you
can use its values there. However, that requires that your test
classes do all the work of connecting to the host that should run
the actual test. Wouldn't it be simpler to use QMTest's builtin
support for this (see my other mail) ?
Regards,
Stefan
More information about the qmtest
mailing list