lf_report.py format change for links

lf_qa.py : report link for test rig

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-08-09 10:37:43 -06:00
parent d2b5f976de
commit 5cb68a6735
2 changed files with 4 additions and 2 deletions

View File

@@ -296,14 +296,14 @@ class lf_report():
pdf_link_path = "{}/{}-{}".format(self.path_date_time,self.date,self.output_pdf)
self.pdf_link_html = """
<!-- pdf link -->
<a href={pdf_link_path}>PDF_Report<a>
<a href={pdf_link_path}>PDF_Report</a>
""".format(pdf_link_path=pdf_link_path)
self.html += self.pdf_link_html
def build_link(self,_link,_link_name):
self.link = """
<!-- link -->
<a href={link}>{link_name}<a>
<a href={link}>{link_name}</a>
""".format(link=_link,link_name=_link_name)
self.html += self.link

View File

@@ -337,6 +337,8 @@ Example: kpi_csv_sq.py --store --png --show --path <path to read kpi.csv> (read
report.set_obj_html("Objective", "QA Verification")
report.build_objective()
report.build_pdf_link()
#get_parent_path = report.get_parent_path()
report.build_link(report.get_parent_path(),"{}".format(report.get_parent_path()))
report.set_table_title("QA Test Results")
report.build_table_title()
# report.set_text("lanforge-scripts git sha: {}".format(git_sha))