Peach :: Agent :: power :: NetworkedPower :: Class NetworkedPower
[hide private]

Class NetworkedPower

source code


Monitor that will cycle the power port of a networked power strip. Usefull for rebooting a machine after a fault is detected, or every N tests.

Currently only works with "IP9258".

Instance Methods [hide private]
 
__init__(self, args)
Constructor.
source code
 
OnTestStarting(self)
Called right before start of test case or variation
source code
 
OnFault(self)
Called when a fault was detected.
source code

Inherited from agent.Monitor: DetectedFault, GetMonitorData, OnShutdown, OnTestFinished, StopRun

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

OnFault(self)

source code 

Called when a fault was detected.

Overrides: agent.Monitor.OnFault