code: def _append_record(test_data, results, test_path):
      
      statuses = test_data.get("statuses")
      jenkins_data = test_data.get("jenkins") or {}
  
      data = [
          ("title", test_data.get("test_name") or _get_testname(test_path)),
          ("verdict", statuses.get("overall")),
          ("source", test_data.get("source")),
          ("job_name", jenkins_data.get("job_name")),
          ("run", jenkins_data.get("build_number")),
          ("params", _filter_parameters(test_data.get("params"))),
          (
              "time",
              _calculate_duration(test_data.get("start_time"), test_data.get("finish_time")) or 0,
          ),
      ]
      test_id = test_data.get("polarion")
      if test_id:
          if isinstance(test_id, list):
              test_id = test_id[0]
          data.append(("test_id", test_id))
  
      results.append(OrderedDict(data))
docs: Adds data of single testcase results to results database.