Metadata-Version: 2.4
Name: qa-observability-platform-pytest
Version: 1.0.0
Summary: QOP Pytest reporter - Real-time test observability with WebSocket streaming
Author: QOP Team
License: MIT
Project-URL: Homepage, https://github.com/qa-observability-platform/pytest
Project-URL: Repository, https://github.com/qa-observability-platform/pytest
Keywords: pytest,reporter,test-observability,qop,websocket,live-view
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pytest>=7.0
Requires-Dist: websocket-client>=1.5.0
Requires-Dist: requests>=2.28.0
Requires-Dist: python-dotenv>=1.0.0
Provides-Extra: live-view
Requires-Dist: selenium>=4.0.0; extra == "live-view"
Requires-Dist: Pillow>=9.0.0; extra == "live-view"
Requires-Dist: mss>=6.0.0; extra == "live-view"

# qa-observability-platform-pytest

QOP Pytest reporter plugin — real-time test observability with WebSocket streaming.

## Installation

```bash
pip install qa-observability-platform-pytest
```

For live browser view (Selenium tests):

```bash
pip install qa-observability-platform-pytest[live-view]
```

## Usage

Set environment variables and run your tests — the plugin auto-registers via pytest11:

```bash
export QOP_API_KEY=your-api-key
export QOP_APP_KEY=your-app-key
pytest
```

## Configuration

| Environment Variable | Description | Default |
|---------------------|-------------|---------|
| `QOP_API_KEY` | API key for authentication | Required |
| `QOP_APP_KEY` | Application key | Required |
| `QOP_PROJECT_KEY` | Project identifier | `default-project` |
| `QOP_WS_URL` | WebSocket server URL | `ws://localhost:4000/ws/ingest` |

## Live Browser View

For Selenium-based tests, enable live browser streaming:

```python
from qop_pytest import LiveStreamManager

manager = LiveStreamManager(driver, run_id="your-run-id")
manager.start_streaming()
# ... run tests ...
manager.stop_streaming()
```
