allure-framework / allure-framework/allure-java
[allure-httpclient] Add request/response attachment from the DataProvider method
- Ngôn ngữ chính
- Java
- Star
- 376
- Fork
- 240
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 45
Mô tả
#### I'm submitting a ...
- [x] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.
#### What is the current behaviour?
When sending an HTTP request in a Data Provider method, the request/response attachment is not created.
In https://github.com/allure-framework/allure-java/blob/master/allure-java-commons/src/main/java/io/qameta/allure/AllureLifecycle.java#L609 line the error is thrown, the error message is printed in the logs.
#### What is the expected behavior?
An attachment is created from the Data Provider method.
#### What is the motivation/use case for changing the behaviour?
In the case of the data provider request failure, it's hard to find the root cause.
Some significant part of the test case execution log is lost.
#### Please tell us about your environment:
| Allure version | 2.13.2 |
| --- | --- |
| Test framework | testng@7.1 |
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại allure-java-commons/src/main/java/io/qameta/allure/AllureLifecycle.java, xung quanh dòng 609, sau đó theo dõi cách các tệp đính kèm của request và response HTTP được xử lý trong một phương thức TestNG DataProvider. Tái hiện một request DataProvider bị lỗi và xác minh rằng request/response attachment được tạo cũng như log thực thi liên quan được giữ lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- testing
- Loại issue
- Tính năng
- Độ 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
- 45/100