BehaveX extension library to attach images to the test execution report.
Low maintenance activity. Last release 16 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install behavex-imagesbehavex-images
An extension for the BehaveX library that enables attaching images to the generated HTML report.
Installation
pip install behavex-images
Features
- Attach images to BehaveX HTML reports
- Support for both binary image data and image files
- Flexible attachment conditions (always, only on failure, or never)
- Easy integration with existing BehaveX projects
Usage
The behavex-images library provides four main methods for managing image attachments in BehaveX HTML reports:
1. Attach Image from Binary Data
from behavex_images import image_attachments
image_attachments.attach_image_binary(context, image_binary)
context: The BehaveX context objectimage_binary: Binary data of the image (JPG or PNG)
2. Attach Image from File
from behavex_images import image_attachments
image_attachments.attach_image_file(context, file_path)
context: The BehaveX context objectfile_path: Absolute path to the image file (JPG or PNG)
3. Set Attachment Condition
from behavex_images import image_attachments
from behavex_images.image_attachments import AttachmentsCondition
image_attachments.set_attachments_condition(context, condition)


