mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user