mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +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)
|
pdf_link_path = "{}/{}-{}".format(self.path_date_time,self.date,self.output_pdf)
|
||||||
self.pdf_link_html = """
|
self.pdf_link_html = """
|
||||||
<!-- pdf link -->
|
<!-- 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)
|
""".format(pdf_link_path=pdf_link_path)
|
||||||
self.html += self.pdf_link_html
|
self.html += self.pdf_link_html
|
||||||
|
|
||||||
def build_link(self,_link,_link_name):
|
def build_link(self,_link,_link_name):
|
||||||
self.link = """
|
self.link = """
|
||||||
<!-- link -->
|
<!-- link -->
|
||||||
<a href={link}>{link_name}<a>
|
<a href={link}>{link_name}</a>
|
||||||
""".format(link=_link,link_name=_link_name)
|
""".format(link=_link,link_name=_link_name)
|
||||||
self.html += self.link
|
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.set_obj_html("Objective", "QA Verification")
|
||||||
report.build_objective()
|
report.build_objective()
|
||||||
report.build_pdf_link()
|
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.set_table_title("QA Test Results")
|
||||||
report.build_table_title()
|
report.build_table_title()
|
||||||
# report.set_text("lanforge-scripts git sha: {}".format(git_sha))
|
# report.set_text("lanforge-scripts git sha: {}".format(git_sha))
|
||||||
|
|||||||
Reference in New Issue
Block a user