Peach :: agent :: Monitor :: Class Monitor
[hide private]

Class Monitor

source code

Extend from this to implement a Monitor. Monitors are run by an Agent and must operate in an async mannor. Any blocking tasks must be performed in another thread.

Instance Methods [hide private]
 
__init__(self, args)
Constructor.
source code
 
OnTestStarting(self)
Called right before start of test case or variation
source code
 
OnTestFinished(self)
Called right after a test case or varation
source code
 
GetMonitorData(self)
Get any monitored data from a test case.
source code
 
DetectedFault(self)
Check if a fault was detected.
source code
 
OnFault(self)
Called when a fault was detected.
source code
 
OnShutdown(self)
Called when Agent is shutting down, typically at end of a test run or when a Stop-Run occurs
source code
 
StopRun(self)
Return True to force test run to fail.
source code
Method Details [hide private]

__init__(self, args)
(Constructor)

source code 

Constructor. Arguments are supplied via the Peach XML file.

Parameters:
  • args (Dictionary) - Dictionary of parameters

StopRun(self)

source code 

Return True to force test run to fail. This should return True if an unrecoverable error occurs.