def METHOD_NAME(self, report, status):
    # check following
    filename, lineno, test_case = report.location
    test_suite = os.path.splitext(os.path.basename(filename))[0]
    start_time = time.time() - report.duration
    if self._sample is None:
        self._sample = Sample(test_suite=test_suite, test_case=test_case, status=status,
                              duration=report.duration, start_time=start_time)
        self._sample.extras = {"filename": filename}
    if status == 'FAILED':
        self._sample.error_msg = report.longrepr.reprcrash.message