def startTest(self, test):
    'At the start of the test, set the testcase details.'
    data_payload = TestcaseDataPayload()
    self.testcase_guid = str(uuid.uuid4())
    data_payload.guid = self.testcase_guid
    data_payload.execution_guid = self.execution_guid
    if hasattr(test, 'browser'):
        data_payload.browser = test.browser
    else:
        data_payload.browser = 'N/A'
    data_payload.test_address = test.id()
    application = ApplicationManager.generate_application_string(test)
    data_payload.env = application.split('.')[0]
    data_payload.start_time = application.split('.')[1]
    data_payload.state = constants.State.UNTESTED
    self.testcase_manager.insert_testcase_data(data_payload)
    self.case_start_time = int((time.time() * 1000))
    test.testcase_guid = self.testcase_guid
    self._test = test
    self._test._nose_skip_reason = None
At the start of the test, set the testcase details.
def startTest(self, test):
    
    data_payload = TestcaseDataPayload()
    self.testcase_guid = str(uuid.uuid4())
    data_payload.guid = self.testcase_guid
    data_payload.execution_guid = self.execution_guid
    if hasattr(test, 'browser'):
        data_payload.browser = test.browser
    else:
        data_payload.browser = 'N/A'
    data_payload.test_address = test.id()
    application = ApplicationManager.generate_application_string(test)
    data_payload.env = application.split('.')[0]
    data_payload.start_time = application.split('.')[1]
    data_payload.state = constants.State.UNTESTED
    self.testcase_manager.insert_testcase_data(data_payload)
    self.case_start_time = int((time.time() * 1000))
    test.testcase_guid = self.testcase_guid
    self._test = test
    self._test._nose_skip_reason = None