A test instance.
Methods
|
|
GetClass
GetPrerequisites
GetTargetGroup
GetTest
Run
__init__
|
|
GetClass
|
GetClass ( self )
Return the class of the entity.
- returns
- The Python class object for the entity. For example,
for a
TestDescriptor , this method returns the test class.
|
|
GetPrerequisites
|
GetPrerequisites ( self )
Return a map from prerequisite test IDs to required outcomes.
|
|
GetTargetGroup
|
GetTargetGroup ( self )
Returns the pattern for the targets that can run this test.
- returns
- A regular expression (represented as a string) that
indicates the targets on which this test can be run. If the
pattern matches a particular group name, the test can be run
on targets in that group.
|
|
GetTest
|
GetTest ( self )
Return the Test object described by this descriptor.
|
|
Run
|
Run (
self,
context,
result,
)
Execute this test.
-
context
- The
Context in which the test should be executed.
-
result
- The
Result object for this test.
|
|
__init__
|
__init__ (
self,
database,
test_id,
test_class_name,
arguments,
)
Create a new test instance.
-
database
- The
Database containing this test.
-
test_id
- The test ID.
-
test_class_name
- The name of the test class of which this is
an instance.
-
arguments
- This test's arguments to the test class.
|