diff options
Diffstat (limited to 'libs/globals')
-rw-r--r-- | libs/globals/atfglobals.py | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/libs/globals/atfglobals.py b/libs/globals/atfglobals.py index f1e6946..3e7ca38 100644 --- a/libs/globals/atfglobals.py +++ b/libs/globals/atfglobals.py @@ -7,7 +7,7 @@ AtfGlobals class wrapps all global objects used in the framework *) ConnectionsManager GlobalObj is 'The Instance' of AtfGlobals which will be referred throughout -the framework utilities. +the framework utilities. """ import testruninfo @@ -21,6 +21,7 @@ class AtfGlobals: self._logger = None self._env = None self._connectionsmanager = None + self.testrunid = None self.logname = "ATFLOG" self.atfdir = None self.testruninfo_file = None @@ -28,6 +29,7 @@ class AtfGlobals: self.summarylog_level = 'INFO' self.detaillog_file = "detaillog.out" self.detaillog_level = 'DEBUG' + self.attach_timestamp = 'yes' self.stdoutlog_dolog = 'yes' self.stdoutlog_level = 'INFO' self.testunits_maindir = "TestUnits" @@ -37,22 +39,22 @@ class AtfGlobals: self.glusterd_dir = "/etc/glusterd/*" self.glusterd_log_paths = ["/var/log/glusterfs/*.log", "/var/log/glusterfs/bricks/*"] - - + + def initLoggerObj(self): """Instantiation of Logger Object """ self._logger = logger.Log(self.logname) - + def getLoggerObj(self): """Returns Logger Object """ return self._logger - + def initConnectionsManagerObj(self): """Instantiation of ConnectionsManager Object """ - self._connectionsmanager = manager.ConnectionsManager() + self._connectionsmanager = manager.ConnectionsManager() def getConnectionsManagerObj(self): """Returns ConnectionsManager Object @@ -68,7 +70,7 @@ class AtfGlobals: """Returns TestrunInfo Object """ return self._testruninfo - + def initTestenvObj(self): """Instantiation of Testenv Object """ @@ -81,20 +83,3 @@ class AtfGlobals: GlobalObj = AtfGlobals() __all__ = ['GlobalObj'] - - - - - - - - - - - - - - - - - |