Python package to generate HTML report of your automation or test cases with:
- Supports multiple test cases and its steps with valid status
- Well displayed chart according to the test results
- Dynamic HTML Report contents, user allowed to modify accordingly
$ pip install automation-report
from automation_report.report import AutomationReport
- LogoImage : Provide URL of the image
- MainHeader: When header text is to be used instead of logo
- FooterContent: Provide HTML content to add on the footer section
options = {}
#options["LogoImage"] = "logo.png"
options["MainHeader"] = "Automation Report"
options["FooterContent"] = "<a href='#'> Footer link </a>"
new_report = AutomationReport("Login Test", options)
new_report.starttest("CASE 0001: Login to the system")
new_report.info("Entered email in email field")
new_report.success("Login Successfully:")
new_report.endtest()
new_report.starttest("CASE 0002: Logout User")
new_report.info("User is logged in")
new_report.success("Logout link is present")
new_report.fail("User not logged out")
new_report.endtest()
new_report.close()