Skip to main content

automation-report

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

Installation

$ pip install automation-report

Code Example

Importing package :

from automation_report.report 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

new_report.info("Entered email in email field")
new_report.success("Login Successfully:")
End above started case

new_report.endtest()
Create yet another case as following

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()
Use close method to finally complete whole report generation

new_report.close()

Screenshots of report of above code:

Automation Report

Automation report

Metadata

Release files for automation-report 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for automation-report 1.2.1
File Size Uploaded
automation-report-1.2.1.tar.gz 6.1 kB Details

Release files / automation-report-1.2.1.tar.gz

Download URL automation-report-1.2.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f3f781ee9a3128b61b48b5cb3a77921b4a8f3a6c551b2445543687a7a52bb8ef
BLAKE2b-256 checksum
How to use checksums
26d97e8709641294c3a64e407c580b0ef9b3ed3f7fdcb9fa367dff4e2024286d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page