Reusable Behave hooks for Selenium + OWASP ZAP integration.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file behave_zap-0.2.0.tar.gz.
File metadata
- Download URL: behave_zap-0.2.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eebab07a6ff2e0825ab1437b33cbb2776b107811e6302e69fb0722d54729aa32
|
|
| MD5 |
e0ef2ce547e9e4bd55925b3561e50c0e
|
|
| BLAKE2b-256 |
d55ef92ad5ab42e7469c5e8a6484a1397b00c4713906eed19c5219f31c63347d
|
Provenance
The following attestation bundles were made for behave_zap-0.2.0.tar.gz:
Publisher:
publish-pypi-release.yml on testingsoul/behave-zap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
behave_zap-0.2.0.tar.gz -
Subject digest:
eebab07a6ff2e0825ab1437b33cbb2776b107811e6302e69fb0722d54729aa32 - Sigstore transparency entry: 1560477798
- Sigstore integration time:
-
Permalink:
testingsoul/behave-zap@ca921e4c0d3e736ecfc0a7ba28defa17e47319f5 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/testingsoul
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi-release.yml@ca921e4c0d3e736ecfc0a7ba28defa17e47319f5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file behave_zap-0.2.0-py3-none-any.whl.
File metadata
- Download URL: behave_zap-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
855d3359e3b8105967a502ae91637596197d98e1eddca4509653079fb57cc4fe
|
|
| MD5 |
369f99bd71aa2d75f153619f1ced837d
|
|
| BLAKE2b-256 |
d4bba2d97294af8affe4248f5d4f8e34e975383846388360cae9fbe29ad880ea
|
Provenance
The following attestation bundles were made for behave_zap-0.2.0-py3-none-any.whl:
Publisher:
publish-pypi-release.yml on testingsoul/behave-zap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
behave_zap-0.2.0-py3-none-any.whl -
Subject digest:
855d3359e3b8105967a502ae91637596197d98e1eddca4509653079fb57cc4fe - Sigstore transparency entry: 1560478068
- Sigstore integration time:
-
Permalink:
testingsoul/behave-zap@ca921e4c0d3e736ecfc0a7ba28defa17e47319f5 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/testingsoul
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi-release.yml@ca921e4c0d3e736ecfc0a7ba28defa17e47319f5 -
Trigger Event:
release
-
Statement type: