Emailing Summary Report
Hi all,
I have got some python code to create and send an email with an attachment after each test run and it works perfectly.
I would now like to add the 'Test Execution Summary' the the email but cant figure out how to get hold of it or locate it.
Has anyone done this or know how I can locate the correct summary ?
thanks
J.
Thanks Rraghvani, I am not using outlook, I am using this code to attach the summary ( the 'Summary.htm' is the test file I was using -
# Attach test report file
attachment_path = 'C:\\Users\\JamesG\\Documents\\Summary.htm'
with open(attachment_path, "rb") as attachment:
part = MIMEApplication(attachment.read(), Name="test_report.pdf")
part["Content-Disposition"] = f'attachment; filename="{attachment_path}"'
msg.attach(part)This works but I cant find or figure out how to find the 'Test Execution Summary' for the current run ?