Ejemplo n.º 1
0
 def __insert_test_result(self, state, err):
     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:
         tb_string = traceback.format_exc()
         if "Message: " in tb_string:
             data_payload.message = "Message: " + tb_string.split(
                 "Message: ")[-1]
         elif "Exception: " in tb_string:
             data_payload.message = tb_string.split("Exception: ")[-1]
         elif "Error: " in tb_string:
             data_payload.message = tb_string.split("Error: ")[-1]
         else:
             data_payload.message = "Unknown Error: See Stacktrace"
     self.testcase_manager.update_testcase_data(data_payload)
Ejemplo n.º 2
0
 def __insert_test_result(self, state, err):
     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:
         tb_string = traceback.format_exc()
         if "Message: " in tb_string:
             data_payload.message = "Message: " + tb_string.split(
                 "Message: ")[-1]
         elif "Exception: " in tb_string:
             data_payload.message = tb_string.split("Exception: ")[-1]
         elif "Error: " in tb_string:
             data_payload.message = tb_string.split("Error: ")[-1]
         else:
             data_payload.message = "Unknown Error: See Stacktrace"
     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)
Ejemplo n.º 4
0
 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)