Package Peach :: Package Agent :: Module popupkiller
[hide private]

Source Code for Module Peach.Agent.popupkiller

 1   
 2  ''' 
 3  PopupKiller is able to close those pesky popup dialogs that can occur 
 4  during testing. 
 5   
 6  @author: Michael Eddington 
 7  @version: $Id: Peach.Agent.popupkiller-pysrc.html 1138 2008-08-16 19:39:03Z meddingt $ 
 8  ''' 
 9   
10  # 
11  # Copyright (c) 2007 Michael Eddington 
12  # 
13  # Permission is hereby granted, free of charge, to any person obtaining a copy  
14  # of this software and associated documentation files (the "Software"), to deal 
15  # in the Software without restriction, including without limitation the rights  
16  # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell  
17  # copies of the Software, and to permit persons to whom the Software is  
18  # furnished to do so, subject to the following conditions: 
19  # 
20  # The above copyright notice and this permission notice shall be included in     
21  # all copies or substantial portions of the Software. 
22  # 
23  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  
24  # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  
25  # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE  
26  # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  
27  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
28  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
29  # SOFTWARE. 
30  # 
31   
32  # Authors: 
33  #   Michael Eddington (mike@phed.org) 
34   
35  # $Id: Peach.Agent.popupkiller-pysrc.html 1138 2008-08-16 19:39:03Z meddingt $ 
36   
37  from Peach.agent import Monitor 
38   
39 -class PopupKiller(Monitor):
40
41 - def __init__(self, args):
42 pass
43
44 - def OnTestStarting(self):
45 ''' 46 Called right before start of test. 47 ''' 48 pass
49
50 - def OnTestFinished(self):
51 ''' 52 Called right after a test. 53 ''' 54 pass
55
56 - def GetMonitorData(self):
57 ''' 58 Get any monitored data. 59 ''' 60 return None
61
62 - def DetectedFault(self):
63 ''' 64 Check if a fault was detected. 65 ''' 66 return False
67
68 - def OnFault(self):
69 ''' 70 Called when a fault was detected. 71 ''' 72 pass
73
74 - def OnShutdown(self):
75 ''' 76 Called when Agent is shutting down. 77 ''' 78 pass
79 80 # end 81