@Name : startMarvin @Desc : Initializes the Marvin creates the test Client creates the runlogger for logging Parses the config and creates a parsedconfig Creates a debugstream for tc debug log
(self)
| 221 | self.__testResult = FAILED |
| 222 | |
| 223 | def startMarvin(self): |
| 224 | ''' |
| 225 | @Name : startMarvin |
| 226 | @Desc : Initializes the Marvin |
| 227 | creates the test Client |
| 228 | creates the runlogger for logging |
| 229 | Parses the config and creates a parsedconfig |
| 230 | Creates a debugstream for tc debug log |
| 231 | ''' |
| 232 | try: |
| 233 | obj_marvininit = MarvinInit(self.__configFile, |
| 234 | self.__deployDcFlag, |
| 235 | None, |
| 236 | self.__zoneForTests, |
| 237 | self.__hypervisorType, |
| 238 | self.__userLogPath) |
| 239 | if obj_marvininit and obj_marvininit.init() == SUCCESS: |
| 240 | self.__testClient = obj_marvininit.getTestClient() |
| 241 | self.__tcRunLogger = obj_marvininit.getLogger() |
| 242 | self.__parsedConfig = obj_marvininit.getParsedConfig() |
| 243 | self.__resultStream = obj_marvininit.getResultFile() |
| 244 | self.__logFolderPath = obj_marvininit.getLogFolderPath() |
| 245 | self.__testRunner = nose.core.\ |
| 246 | TextTestRunner(stream=self.__resultStream, |
| 247 | descriptions=True, |
| 248 | verbosity=2, |
| 249 | config=self.conf) |
| 250 | return SUCCESS |
| 251 | return FAILED |
| 252 | except Exception as e: |
| 253 | print("Exception Occurred under startMarvin: %s" % \ |
| 254 | GetDetailExceptionInfo(e)) |
| 255 | return FAILED |
| 256 | |
| 257 | def stopTest(self, test): |
| 258 | """ |
no test coverage detected