def __insert_test_result(self, state, test, err=None):
    data_payload = TestcaseDataPayload()
    data_payload.runtime = (int((time.time() * 1000)) - self.case_start_time)
    data_payload.guid = self.testcase_guid
    data_payload.execution_guid = self.execution_guid
    data_payload.state = state
    if (err is not None):
        data_payload.message = err[1].__str__().split('-------------------- >> begin captured logging << --------------------', 1)[0]
    self.testcase_manager.update_testcase_data(data_payload)
def __insert_test_result(self, state, test, err=None):
    data_payload = TestcaseDataPayload()
    data_payload.runtime = (int((time.time() * 1000)) - self.case_start_time)
    data_payload.guid = self.testcase_guid
    data_payload.execution_guid = self.execution_guid
    data_payload.state = state
    if (err is not None):
        data_payload.message = err[1].__str__().split('-------------------- >> begin captured logging << --------------------', 1)[0]
    self.testcase_manager.update_testcase_data(data_payload)