[qmtest] Variable in argument list

Stefan Seefeld seefeld at sympatico.ca
Mon Apr 10 22:16:32 UTC 2006


Kelly Lucas wrote:
> This looks like the preferred solution, except that it would require 
> that I have qmtest installed on all of the hosts I want to run my tests on.

That's correct. QMTest also supports a 'Host' extension type that supports
remote program execution by means of 'rsh' or 'ssh' without any need to
prepare that machine, as that extension is responsible for uploading files
before executing them remotely.
(You can provide your own 'Host' types in the same way you can implement
your own tests, and so have full control over what to upload and where.)

> Currently, I have a bunch of tests that look like:
> 
> ssh -X $1 'command'
> 
> Where $1 is the hostname of the system I'm testing, and I specified that 
> in each testcase in the Argument List. This is a field that is available 
> through the GUI and help says:
> 
> 
>       Argument List
> 
> 
>         About This Field
> 
> The command-line arguments.

I see ! While you may be able to use these fields, you usually shouldn't
use different values for the same test in different test runs. To quote
from the manual:

"The arguments to the test parameterize the test; they are what make two
  instances of the same test class different from each other."

Regards,
		Stefan



More information about the qmtest mailing list