Example #1
0
 def on_recorder_stop(self):
     '''
     recorder stop time
     '''
     self.results.end_time = Utils.get_datetime_now()
     self.results.duration = Utils.get_date_result(self.results.begin_time, self.results.end_time)
     for suite_name in self.results.summary.keys():
         self.results.summary[suite_name].begin_time = getattr(self.results.details.get(suite_name), "begin_time")
         self.results.summary[suite_name].end_time = getattr(self.results.details.get(suite_name), "end_time")
         self.results.summary[suite_name].duration = getattr(self.results.details.get(suite_name), "duration")
Example #2
0
File: result.py Project: hautof/haf
 def on_case_end(self):
     self.end_time = Utils.get_datetime_now()
     self.duration = Utils.get_date_result(self.begin_time, self.end_time)
Example #3
0
 def on_recorder_start(self):
     '''
     recorder start time
     '''
     self.results.begin_time = Utils.get_datetime_now()
Example #4
0
File: result.py Project: hautof/haf
 def on_case_begin(self):
     self.begin_time = Utils.get_datetime_now()