Report Features
The generated HTML report is a comprehensive single-page application that provides a transparent view into your test results.
Dashboard View
The default view provides a high-level summary of the entire test session.
Key Components:
- Summary Cards: Real-time metrics for Total Tests, Passed, Failed, Skipped, Average Duration, and Environment details.
- Result Charts: Visual breakdown of test outcomes and execution time trends.
- System Environment: Detailed information about the OS, Python version, CPU, and Memory of the test runner.
- Test Suites: A grouped view of all executed test files with their respective pass rates.
Test Run Summary View
This view lists every individual test case with deep inspection capabilities.
Key Components:
- Global Search & Filter: Quickly find tests by name, status, or browser type.
-
Detailed Test Steps: Expand any test to see a step-by-step breakdown. You can record steps
in two ways:
- Decorator (New!): Use the
@step("Title")decorator on any function or method. Perfect for Page Objects.from pytest_pulse import step class LoginPage: @step("Login to application") def login(self, user, pwd): ... - Context Manager: Use the
pulse_stepfixture for blocks of code inside a test.with pulse_step("Submit Form"): page.click("#submit")
- Decorator (New!): Use the
- Error & Stack Trace: Rich error reporting with color-coded stack traces and a one-click AI prompt copy button for debugging.
- Visual Attachments: Integrated viewer for screenshots, videos, and Playwright traces recorded during the run.
-
Console Output: Captured
stdoutandstderrare presented in a clean, scrollable wrapper within the test details. - Metadata: View test tags, severity levels, and custom annotations added via markers.
Test History View
Visualize trends across your last 15 local or CI runs.
Charts & Analytics:
- Outcome Trends: Track how your pass/fail ratio changes over time.
- Duration Trends: Identify performance regressions across specific test files or suites.
- Worker Distribution: Analyze how tests were distributed across different workers
(especially useful for
pytest-xdist). - Individual Test Stability: View the stability and duration history of any specific test case over time.
Email Report
Distribute lightweight HTML summaries to stakeholders via SMTP.
1. Setup Recipients
# Set in your .env file
RECIPIENT_EMAIL_1=dev-leads@company.com
RECIPIENT_EMAIL_2=qa-team@company.com
2. Configure SMTP (Optional)
Provide your own credentials for custom delivery:
PULSE_MAIL_HOST=gmail
PULSE_MAIL_USERNAME=reports@yourdomain.com
PULSE_MAIL_PASSWORD=your_app_password
3. Send Report
send-email