Package qm :: Package test :: Package classes :: Module rsh_target :: Class RSHTarget
[hide private]
[frames] | no frames]

Class RSHTarget

source code

          object --+            
                   |            
 extension.Extension --+        
                       |        
           target.Target --+    
                           |    
process_target.ProcessTarget --+
                               |
                              RSHTarget

A target that runs tests via a remote shell invocation.

A 'RSHTarget' runs tests on a remote computer via a remote shell call. The remote shell is in the style of 'rsh' and 'ssh'. Using the remote shell, the target invokes the 'qmtest remote' script, which services commands sent via 'stdin', and replies via 'stdout'.

Nested Classes [hide private]

Inherited from process_target.ProcessTarget: QMTestExecutable

Inherited from extension.Extension: Type, __metaclass__

Instance Methods [hide private]
 
__init__(self, database, properties)
Construct a new 'RSHTarget'.
source code
 
_GetInterpreter(self)
Return the interpreter to use.
source code

Inherited from process_target.ProcessTarget: IsIdle, RunTest, Start, Stop

Inherited from target.Target: GetDatabase, GetGroup, GetName, IsInGroup

Inherited from target.Target (private): _BeginResourceSetUp, _CleanUpResource, _FinishResourceSetUp, _GetTemporaryDirectory, _RecordResult, _SetUpResource

Inherited from extension.Extension: GetClassName, GetExplicitArguments, MakeDomDocument, MakeDomElement, Write, __getattr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  host = qm.fields.TextField(title= "Remote Host Name", descript...
  remote_shell = qm.fields.TextField(title= "Remote Shell Progra...
  arguments = qm.fields.TextField(title= "Remote Shell Arguments...
A list of the arguments to the extension class.

Inherited from target.Target: kind

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, database, properties)
(Constructor)

source code 

Construct a new 'RSHTarget'.

'database' -- The 'Database' containing the tests that will be run.

'properties' -- A dictionary mapping strings (property names) to strings (property values).

Overrides: object.__init__

_GetInterpreter(self)

source code 

Return the interpreter to use.

returns -- A list giving the path to an interpreter, and arguments to provide the interpreter. This interpreter is used to run QMTest. If '[]' is returned, then no intepreter is used.

Overrides: process_target.ProcessTarget._GetInterpreter
(inherited documentation)

Class Variable Details [hide private]

host

Value:
qm.fields.TextField(title= "Remote Host Name", description= """The nam\
e of the host on which to run tests.

            The name (or IP address) of the host on which QMTest
            should execute tests.  If this value is the empty string,
            the name of the target is used.""")

remote_shell

Value:
qm.fields.TextField(title= "Remote Shell Program", description= """The\
 path to the remote shell program.

            The name of the program that can be used to create a
            remote shell.  This program must accept the same command
            line arguments as the 'rsh' program.""", default_value= "s\
sh")

arguments

A list of the arguments to the extension class.

Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument.

Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.

Value:
qm.fields.TextField(title= "Remote Shell Arguments", description= """T\
he arguments to provide to the remote shell.

            A space-separated list of arguments to provide to the
            remote shell program.""", default_value= "")