behave-zap
behave-zap is a working Python library that integrates Behave and OWASP ZAP into a single, reusable web testing + DAST execution model.
It is designed for teams that want:
- Functional browser automation and security scanning in the same run
- Per-feature control of active scan targets
- A final consolidated ZAP report with all discovered alerts
- A CI-friendly flow with reference pipeline examples
Why this library
Security scanning is often bolted on after functional testing. behave-zap makes DAST a first-class part of your Behave lifecycle:
- Hook-based orchestration for
before_all,after_feature, andafter_all - Chrome-focused web automation primitives for page objects and driver setup
- Feature-level attack-surface segmentation through target mapping
- Final report generation after full test execution
Core architecture
behave_zap/hooks.py- Behave lifecycle integration
- ZAP initialization, passive/active scan orchestration, final reports
behave_zap/web.py- Chrome WebDriver creation
- Context + page-object base classes (
PageObject,Button,InputText, etc.)
Installation
Install as editable package in this repository:
pip install -e .
Install from a consumer project:
pip install behave-zap
Quick start
Note: For a full, hands-on CI example (including GitHub Actions, ZAP annotations and behave-zap usage), see the learning repository: https://github.com/testingsoul/behave-zap_learning
- Test execution guide: docs/test.md
- Full library experience: docs/library-experience.md
Metadata
Release files for behave-zap 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| behave_zap-1.0.0.tar.gz | 15.7 kB | With provenance | Details for behave_zap-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| behave_zap-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for behave_zap-1.0.0-py3-none-any.whl |
Total release size: 34.1 kB
Release files / behave_zap-1.0.0.tar.gz
| Download URL | behave_zap-1.0.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a0c6c8ce987c1a5f4805fd2f68f0041f5c00aef26b03c79af3f2c8a8fdaa9eb
|
|
BLAKE2b-256 checksum How to use checksums |
e04c195c1c95f6648c7f30e3f7d6b5d872384fd74354a06f81ef5866375867ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logRelease files / behave_zap-1.0.0-py3-none-any.whl
| Download URL | behave_zap-1.0.0-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6c424142645dbf8ccd9eac641c9cdca698de93380fabbea6515c334677c9c3f
|
|
BLAKE2b-256 checksum How to use checksums |
96b986a5a9cbdcc14103fd4f2d7bc385273b48cf0dbdb9af41012382558e7838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logSecurity for behave-zap 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for behave_zap-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.