Hello I'm trying to add more info in the header but it hasn't appear in the report
I've added this in Results.py:
results_summary = {
"total": len(tests),
"error": errors,
"failure": failures,
"skip": skips,
"success": successes,
"crc2": 0,
"duration": self._format_duration(elapsed_time)
}
return results_summary
def _get_header_info(self, tests, start_time):
results_summary = self.get_results_summary(tests)
crc0 = "AA"
header_info = {
"start_time": start_time,
"version": 222,
"crc0": crc0,
"crc1": 0,
"status": results_summary
}
return header_info`
I've added this in the template
<p class='attribute'><strong>Start Time: </strong>{{ header_info.start_time.strftime("%Y-%m-%d %H:%M:%S") }}</p>
<p class='attribute'><strong>Duration: </strong>{{ header_info.status.duration }}</p>
<p class='attribute'><strong>Version: </strong>{{ header_info.version }}</p>
<p class='attribute'><strong>CRC Block 0: </strong>{{ header_info.crc0 }}</p>
<p class='attribute'><strong>CRC Block 1: </strong>{{ header_info.crc1 }}</p>
<p class='attribute'><strong>CRC Block 2: </strong>{{ header_info.status.crc2 }}</p>
<p class='attribute'><strong>header_info: </strong>{{ header_info }}</p>
But the result was that header_info has not the new "Attributes"
Any of you what is missing?
Thank you!
Hello I'm trying to add more info in the header but it hasn't appear in the report
I've added this in Results.py:
I've added this in the template
But the result was that header_info has not the new "Attributes"
Any of you what is missing?
Thank you!