diff options
author | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-07 11:56:48 +0530 |
---|---|---|
committer | Shwetha-H-Panduranga <shwetha@gluster.com> | 2011-12-07 11:56:48 +0530 |
commit | 4399cf4d161526300244d8cf090a461c792ab82e (patch) | |
tree | 7ca5ad70b0429148c63ab77667e8e54acaf5b11e /libs/globals/atfglobals.py | |
parent | 77c7f324610224e808d8940aec7e6dbf19b790a5 (diff) |
Renaming Directories
Diffstat (limited to 'libs/globals/atfglobals.py')
-rw-r--r-- | libs/globals/atfglobals.py | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/libs/globals/atfglobals.py b/libs/globals/atfglobals.py new file mode 100644 index 0000000..ff1faad --- /dev/null +++ b/libs/globals/atfglobals.py @@ -0,0 +1,85 @@ +"""atfglobals module contain AtfGlobal class and GlobalObj + +AtfGlobals class wrapps all global objects used in the framework +*) TestrunInfo +*) Logger +*) Testenv +*) ConnectionsManager + +GlobalObj is 'The Instance' of AtfGlobals which will be referred throughout +the framework utilities. +""" + +import testruninfo +import logger +import testenv +import manager + +class AtfGlobals: + + + def __init__(self): + self._testruninfo = None + self._logger = logger.Log() + self._env = None + self._connectionsmanager = manager.ConnectionsManager() + + def getTestrunInfoObj(self): + """Returns TestrunInfo Object + """ + return self._testruninfo + + def getLoggerObj(self): + """Returns Logger Object + """ + return self._logger + + def getTestenvObj(self): + """Returns Current TestEnvironment Object. + """ + return self._env + + def getConnectionsManagerObj(self): + """Returns ConnectionsManager Object + """ + return self._connectionsmanager + + def initTestrunInfoObj(self): + """Instantiation of TestrunInfo Object + """ + self._testruninfo = testruninfo.TestRunInfo() + + def initLoggerObj(self): + """Instantiation of Logger Object + """ + self._logger = logger.Log() + + def initTestenvObj(self): + """Instantiation of Testenv Object + """ + self._env = testenv.TestEnv() + + def initConnectionsManagerObj(self): + """Instantiation of ConnectionsManager Object + """ + self._connectionsmanager = manager.ConnectionsManager() + +GlobalObj = AtfGlobals() +__all__ = ['GlobalObj'] + + + + + + + + + + + + + + + + + |