Package Peach :: Package Agent :: Module socketmon :: Class SocketMonitor
[hide private]

Class SocketMonitor

source code


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
Overrides: agent.Monitor.__init__

OnTestStarting(self)

source code 

Called right before start of test case or variation

Overrides: agent.Monitor.OnTestStarting

OnTestFinished(self)

source code 

Called right after a test case or varation

Overrides: agent.Monitor.OnTestFinished

GetMonitorData(self)

source code 

Get any monitored data from a test case.

Overrides: agent.Monitor.GetMonitorData

DetectedFault(self)

source code 

Check if a fault was detected.

Overrides: agent.Monitor.DetectedFault

OnFault(self)

source code 

Called when a fault was detected.

Overrides: agent.Monitor.OnFault

OnShutdown(self)

source code 

Called when Agent is shutting down, typically at end of a test run or when a Stop-Run occurs

Overrides: agent.Monitor.OnShutdown

StopRun(self)

source code 

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

Overrides: agent.Monitor.StopRun