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'.
  _GetInterpreter(self)
Return the interpreter to use.

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

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

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

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


Class Variables [hide private]
host  
remote_shell  
arguments  
_argument_dictionary  
_argument_list  

Inherited from process_target.ProcessTarget: database_path, processes, qmtest

Inherited from target.Target: group, kind, name

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: process_target.ProcessTarget.__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:
''                                                                     
      

remote_shell

Value:
'ssh'                                                                  
      

arguments

Value:
''                                                                     
      

_argument_dictionary

Value:
{'arguments': <<class 'qm.fields.TextField'> arguments>,
 'database_path': <<class 'qm.fields.TextField'> database_path>,
 'group': <<class 'qm.fields.TextField'> group>,
 'host': <<class 'qm.fields.TextField'> host>,
 'name': <<class 'qm.fields.TextField'> name>,
 'processes': <<class 'qm.fields.IntegerField'> processes>,
 'qmtest': <<class 'qm.fields.TextField'> qmtest>,
 'remote_shell': <<class 'qm.fields.TextField'> remote_shell>}         
      

_argument_list

Value:
[<<class 'qm.fields.TextField'> database_path>,
 <<class 'qm.fields.TextField'> group>,
 <<class 'qm.fields.TextField'> name>,
 <<class 'qm.fields.TextField'> qmtest>,
 <<class 'qm.fields.TextField'> remote_shell>,
 <<class 'qm.fields.IntegerField'> processes>,
 <<class 'qm.fields.TextField'> host>,
 <<class 'qm.fields.TextField'> arguments>]