Package roshlaunch :: Module core :: Class Test
[frames] | no frames]

Class Test

source code

object --+    
         |    
      Node --+
             |
            Test

A Test is a Node with special semantics that it performs a unit/integration test. The data model is the same except the option to set the respawn flag is removed.

Instance Methods
 
__init__(self, test_name, package, node_type, name=None, namespace='/', machine_name=None, args='', remap_args=None, env_args=None, time_limit=None, cwd=None, launch_prefix=None, retry=None, filename="<unknown>")
Construct a new test node.
source code
 
xmltype(self) source code
 
xmlattrs(self)
NOTE: xmlattrs does not necessarily produce identical XML as to what it was initialized with, though the properties are the same
source code
str
to_remote_xml(self)
convert representation into remote representation. (Inherited from roshlaunch.core.Node)
source code
str
to_xml(self)
convert representation into XML representation. (Inherited from roshlaunch.core.Node)
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, test_name, package, node_type, name=None, namespace='/', machine_name=None, args='', remap_args=None, env_args=None, time_limit=None, cwd=None, launch_prefix=None, retry=None, filename="<unknown>")
(Constructor)

source code 

Construct a new test node.

Parameters:
  • test_name (str) - name of test for recording in test results
  • time_limit (int/float/long) - number of seconds that a test should run before marked as a failure
Raises:
  • ValueError - if parameters do not validate
Overrides: object.__init__

xmltype(self)

source code 
Overrides: Node.xmltype

xmlattrs(self)

source code 

NOTE: xmlattrs does not necessarily produce identical XML as to what it was initialized with, though the properties are the same

Overrides: Node.xmlattrs