allure-framework / allure-framework/allure-python

Report doesn't display all scenarios when running tests with pytest-xdist

Đang mở
#430 7 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug contribute theme:pytest
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 ...
- [x] bug report
- [ ] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behavior?
I'm running a test case on two different devices, but when the allure report is generated, the test case is shown only once.

#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Command I'm using to run the tests

1. `pytest --dist=each -n 2 --alluredir=allure-results tests/login/test_request_code_without_phone_number.py`
2. `allure generate -c allure-results -o allure-results/allure-results-html`
3. `allure serve allure-results/allure-results-html` or `allure open allure-results/allure-results-html`

Report generated:

![image](https://user-images.githubusercontent.com/8113555/64741516-42782680-d4cf-11e9-87b3-d6195b244d44.png)

#### What is the expected behavior?
Since I am running a test case on two different devices, the report should show repeated scenarios, like this pytest-html report:

![image](https://user-images.githubusercontent.com/8113555/64741800-3c367a00-d4d0-11e9-8e91-83cdc6251dea.png)

#### What is the motivation / use case for changing the behavior?

#### Please tell us about your environment:

- Allure version: 2.9.0
- allure-pytest: 2.8.0
- allure-python-commons: 2.8.0
- Appium-Python-Client: 0.47
- pytest: 5.1.2
- pytest-forked: 1.0.2
- pytest-xdist: 1.29.0
- selenium: 3.141.0

#### Other information

Another question related to this: As I am running a test case on two different devices, how can I display in the report the version of the device that the scenario ran?

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

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

Hướng nghiên cứu

Start by reproducing the command using tests/login/test_request_code_without_phone_number.py with pytest-xdist, then generate and open the Allure report with the commands shown. Compare the report output for the two devices and verify that both scenario runs are displayed, including a way to identify the device version if that part is addressed.

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
32/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.