Wifi 8000 (#559)

* Attached kpi to allure

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>

* Changed value of move_to_influx

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
jitendracandela
2022-05-20 19:44:35 +05:30
committed by GitHub
parent 966b5ea85d
commit 22a6a88e2a
7 changed files with 53 additions and 24 deletions

View File

@@ -584,6 +584,13 @@ class ChamberView:
return dict_data
def attach_report_kpi(self, report_name=None, file_name="kpi_file"):
path = "../reports/" + str(report_name) + "/kpi.csv"
if os.path.exists(path):
allure.attach.file(source=path,
name=file_name, attachment_type="CSV")
return os.path.exists(path)
def attach_report_graphs(self, report_name=None, pdf_name="WIFI Capacity Test PDF Report"):
relevant_path = "../reports/" + report_name + "/"
entries = os.listdir("../reports/" + report_name + '/')