# kapugunasekharreddy-lab/reportpractice architecture

> Architecture diagram of the GitHub repository kapugunasekharreddy-lab/reportpractice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kapugunasekharreddy-lab/reportpractice
- Repository: https://github.com/kapugunasekharreddy-lab/reportpractice

## Overview

This repository contains generated ExtentReports test-report artifacts, including a browser-side Spark report viewer. Its user workflow is opening a report, selecting and filtering test results, and inspecting status summaries and timelines. The sampled viewer implements those interactions and visualizations; the tree also contains report-generation Java tests, but no README or source excerpts establish their runtime connections. The map therefore focuses on the evidenced viewer behavior and avoids assuming how reports are generated.

Main entry points: [`reports/Test_25-03-2025_07_56_46/spark/spark-script.js`](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js) (Test navigation), [`reports/Test_25-03-2025_07_56_46/TestReport.html`](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/TestReport.html) (Spark report), [`reports/Test_25-03-2025_07_56_46/spark/jsontree.js`](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/jsontree.js) (JSON tree rendering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_viewer["Report viewer"]
  node_report["Spark report<br/>[TestReport.html]"]
  node_interaction["Test navigation<br/>[spark-script.js]"]
  node_filters["Search and filters<br/>[spark-script.js]"]
  node_json["JSON tree rendering<br/>[jsontree.js]"]
end

subgraph group_visuals["Report visualizations"]
  node_charts["Status charts<br/>[spark-script.js]"]
  node_timeline["Timeline chart<br/>[spark-script.js]"]
end

node_engineer(("Report reader"))

node_engineer -->|"opens"| node_report
node_report -.->|"loads viewer"| node_interaction
node_interaction -->|"filters tests"| node_filters
node_interaction -->|"draws summaries"| node_charts
node_interaction -->|"draws timeline"| node_timeline
node_engineer -.->|"inspects JSON"| node_json

click node_report "https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/TestReport.html"
click node_interaction "https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js"
click node_filters "https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js"
click node_json "https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/jsontree.js"
click node_charts "https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js"
click node_timeline "https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_report,node_interaction,node_filters,node_json toneBlue
class node_charts,node_timeline toneAmber
class node_engineer toneIndigo
```

## Components

### Report viewer

- [Spark report](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/TestReport.html): `reports/Test_25-03-2025_07_56_46/TestReport.html`
- [Test navigation](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js): `reports/Test_25-03-2025_07_56_46/spark/spark-script.js`
- [Search and filters](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js): `reports/Test_25-03-2025_07_56_46/spark/spark-script.js`
- [JSON tree rendering](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/jsontree.js): `reports/Test_25-03-2025_07_56_46/spark/jsontree.js`

### Report visualizations

- [Status charts](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js): `reports/Test_25-03-2025_07_56_46/spark/spark-script.js`
- [Timeline chart](https://github.com/kapugunasekharreddy-lab/reportpractice/blob/master/reports/Test_25-03-2025_07_56_46/spark/spark-script.js): `reports/Test_25-03-2025_07_56_46/spark/spark-script.js`

### Other components

- **Report reader**

## Connections

- Report reader → Spark report: opens
- Spark report → Test navigation: loads viewer
- Test navigation → Search and filters: filters tests (evidence: `reports/Test_25-03-2025_07_56_46/spark/spark-script.js`)
- Test navigation → Status charts: draws summaries (evidence: `reports/Test_25-03-2025_07_56_46/spark/spark-script.js`)
- Test navigation → Timeline chart: draws timeline (evidence: `reports/Test_25-03-2025_07_56_46/spark/spark-script.js`)
- Report reader → JSON tree rendering: inspects JSON
