@Name : __initLogging @Desc : 1. Initializes the logging for marvin and so provides various log features for automation run. 2. Initializes all logs to be available under given Folder Path,where all test run logs
(self)
| 159 | return FAILED |
| 160 | |
| 161 | def __initLogging(self): |
| 162 | ''' |
| 163 | @Name : __initLogging |
| 164 | @Desc : 1. Initializes the logging for marvin and so provides |
| 165 | various log features for automation run. |
| 166 | 2. Initializes all logs to be available under |
| 167 | given Folder Path,where all test run logs |
| 168 | are available for a given run. |
| 169 | 3. All logging like exception log,results, run info etc |
| 170 | for a given test run are available under a given |
| 171 | timestamped folder |
| 172 | @Output : SUCCESS or FAILED |
| 173 | ''' |
| 174 | try: |
| 175 | log_obj = MarvinLog("CSLog") |
| 176 | if log_obj: |
| 177 | ret = log_obj.\ |
| 178 | createLogs(self.__testModName, |
| 179 | self.__parsedConfig.logger, |
| 180 | self.__userLogFolderPath) |
| 181 | if ret != FAILED: |
| 182 | self.__logFolderPath = log_obj.getLogFolderPath() |
| 183 | self.__tcRunLogger = log_obj.getLogger() |
| 184 | print("\n=== Marvin Init Logging Successful===") |
| 185 | return SUCCESS |
| 186 | return FAILED |
| 187 | except Exception as e: |
| 188 | print("\n Exception Occurred Under __initLogging " \ |
| 189 | ":%s" % GetDetailExceptionInfo(e)) |
| 190 | return FAILED |
| 191 | |
| 192 | def __createTestClient(self): |
| 193 | ''' |
no test coverage detected