Skip to main content

Generate HTML report for your test cases / Automation cases with its steps specifying its valid status.

Project description


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

Code Example

Importing package :

from import AutomationReport
Passing optional 'options' dictionary as parament with following keys
  • 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>" 
Create new object for your first test with Report name and optional "options" dictionary

new_report = AutomationReport("Login Test", options)
Use starttest() method to start a new case with its name given as parameter

new_report.starttest("CASE 0001: Login to the system")
Populate the various steps status with info(), success(), fail() methods for particular case"Entered email in email field")
new_report.success("Login Successfully:")
End above started case

Create yet another case as following

new_report.starttest("CASE 0002: Logout User")"User is logged in")
new_report.success("Logout link is present")"User not logged out")
Use close method to finally complete whole report generation


Screenshots of report of above code:

Automation Report

Automation report

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automation-report-1.2.1.tar.gz (6.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page