allure-framework / allure-framework/allure-python

allure-robotframework creates separate attachment files for log messages from each keyword

Open
#362 3 comments 0 reactions 0 assignees View on GitHub
theme:robotframework type:enhancement
Dominant language
Python
Stars
814
Forks
260
PR merge metrics
No merged PRs in 30d

Description

#### I'm submitting a ...
- [***] bug-feature report

#### What is the current behavior?
Currently allure-robotframework creates separate attachment files for log messages from each keyword, no matter if it is from external library or from builtin Log keyword.

#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Unfortunately can't provide any test results. I think, that it will be enough to create few tests with Log keyword to see result.

To launch test project i use this command line:
robot --listener allure_robotframework --loglevel DEBUG -T --outputdir .\log\robot --variable REMOTE_URI:127.0.0.1:1234 --console verbose -s 'List_Test' .\x-tests

#### What is the expected behavior?
I expect that all **logging** attachments for whole test project run should go in to one attachment file.

#### What is the motivation / use case for changing the behavior?
This behavior can inflict problem with accessing output folder when running complex test suites with many log messages. For example, simple test suite with two normal tests generates 84 attachment files. You may imagine what will happens with output directory when a really big test project will run few times.

#### Please tell us about your environment:

- Allure version: 2.10.0
- Test framework: Robot Framework 3.1 (Python 3.6.7 on win32)
- Allure adaptor: allure-robotframework@2.6.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Robot Framework's Log keyword and the supplied robot --listener allure_robotframework command, comparing attachment counts for a small suite. Trace the allure_robotframework listener's log-message handling. Done means logging attachments for the whole run are consolidated into one file without losing messages, with the behavior verified on a larger suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.