mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
lf_check.py : information in NA for lf_qa.py links
lf_qa.py : initial work reporting broken links Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -435,11 +435,16 @@ Database: {db}
|
|||||||
http://{hostname}/{report}""".format(hostname=self.hostname, suite=self.test_suite, db=self.database_sqlite, report=report_url)
|
http://{hostname}/{report}""".format(hostname=self.hostname, suite=self.test_suite, db=self.database_sqlite, report=report_url)
|
||||||
|
|
||||||
# Put in report information current two methods supported,
|
# Put in report information current two methods supported,
|
||||||
message_txt += """
|
if "NA" not in self.qa_report_html:
|
||||||
|
message_txt += """
|
||||||
QA Report Dashboard:
|
QA Report Dashboard:
|
||||||
http://{ip_qa}/{qa_url}
|
http://{ip_qa}/{qa_url}
|
||||||
NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url)
|
NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url)
|
||||||
|
|
||||||
|
else:
|
||||||
|
message_txt += """
|
||||||
|
QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
|
||||||
|
|
||||||
if (self.email_title_txt != ""):
|
if (self.email_title_txt != ""):
|
||||||
mail_subject = "{email} [{hostname}] {suite} {date}".format(email=self.email_title_txt, hostname=self.hostname,
|
mail_subject = "{email} [{hostname}] {suite} {date}".format(email=self.email_title_txt, hostname=self.hostname,
|
||||||
suite=self.test_suite, db=self.database_sqlite, date=datetime.datetime.now())
|
suite=self.test_suite, db=self.database_sqlite, date=datetime.datetime.now())
|
||||||
|
|||||||
@@ -747,8 +747,8 @@ Usage: lf_qa.py --store --png --path <path to directories to traverse> --databas
|
|||||||
|
|
||||||
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("QA broken links, check if server correct: {server} example --server 'http:/192.168.0.101/".format(server=__server))
|
||||||
# report.build_text()
|
report.build_text()
|
||||||
html_results = csv_dash.get_html_results()
|
html_results = csv_dash.get_html_results()
|
||||||
report.set_custom_html(html_results)
|
report.set_custom_html(html_results)
|
||||||
report.build_custom()
|
report.build_custom()
|
||||||
|
|||||||
Reference in New Issue
Block a user