allure-framework / allure-framework/allure-python

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

Đang mở
#362 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
theme:robotframework type:enhancement
Ngôn ngữ chính
Python
Star
814
Fork
260
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

#### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề với từ khóa Log của Robot Framework và lệnh được cung cấp robot --listener allure_robotframework, đồng thời so sánh số lượng tệp đính kèm cho một suite nhỏ. Truy vết cách listener allure_robotframework xử lý thông báo log. Công việc được xem là hoàn tất khi các tệp đính kèm logging của toàn bộ lần chạy được hợp nhất vào một tệp duy nhất mà không làm mất thông báo, với hành vi được xác minh trên một suite lớn hơn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
testing
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.