00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 __facility__ = "Online"
00011 __abstract__ = "Sample suite class based on seSuiteBase"
00012 __author__ = "S. Tuvi <stuvi@SLAC.Stanford.edu> SLAC - GLAST LAT I&T/Online"
00013 __date__ = "2005/07/23 00:08:27"
00014 __updated__ = "$Date: 2006/03/08 00:40:23 $"
00015 __version__ = "$Revision: 1.6 $"
00016 __release__ = "$Name: HEAD $"
00017 __credits__ = "SLAC"
00018
00019 import LICOS.copyright_SLAC
00020
00021 import logging as log
00022
00023 from LICOS.lib.scriptEngine.seSuiteBase import seSuiteBase
00024
00025 class testSuiteLoop(seSuiteBase):
00026 """!\brief Sample suite class based on seSuiteBase
00027
00028 Calls testAppInput in an infinite loop.
00029 Tests for memory leak in GUIs created within the script.
00030
00031 """
00032 def __init__(self, common):
00033 seSuiteBase.__init__(self, common)
00034
00035 def setup(self):
00036 """!\brief SETUP transition method.
00037
00038 """
00039 log.debug("%s Suite setup" % self.getName())
00040
00041 self.__app = self.scriptLoad("testAppInput")
00042
00043 def run(self):
00044 """!\brief RUN transition method.
00045
00046 """
00047 log.debug("%s Suite run" % self.getName())
00048 while True:
00049 self.scriptRun(self.__app)
00050 if self.__app.isStopRequested(): break
00051
00052 def stopRun(self):
00053 """!\brief STOP_RUN transition method.
00054
00055 """
00056 log.debug("%s Suite stopRun" % self.getName())
00057
00058 def pause(self):
00059 """!\brief PAUSE transition method.
00060
00061 """
00062 log.debug("%s Suite pause" % self.getName())
00063
00064 def resume(self):
00065 """!\brief RESUME transition method.
00066
00067 """
00068 log.debug("%s Suite resume" % self.getName())
00069
00070 def abort(self):
00071 """!\brief ABORT transition method.
00072
00073 """
00074 log.debug("%s Suite abort" % self.getName())