allure-framework / allure-framework/allure-java
Add property to support the restriction for the Steps length in the report
- 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] feature request
Add a property to support the restriction for the Steps length in the report, for example,
`allure.max.title.length' as was in Allure 1.
#### What is the current behavior?
Property `allure.max.title.length` is ignored.
#### What is the expected behavior?
When `allure.max.title.length=1000` is added in `allure.property` file, the logged steps in the Allure report should be cut after 1000 symbols.
#### What is the motivation / use case for changing the behavior?
Sometimes, very big values are passed to methods annotated with @Step annotation, and there is no obvious way to restrict the number of characters to be printed in the report.
For example, if 'allure-assertj' is used, and the JSON objects to be compared are large, there is no way to restrict how they are displayed in the report.
On the following sample screenshot there are more than 2000 characters:

and this is just about 1/3 of the whole JSON object. And all its characters are displayed in the step.
#### Additional information
The issue was discussed here https://github.com/allure-framework/allure2/issues/1150
| Allure version | 2.13.5 |
| --- | --- |
| Test framework | testng@6.9.10 |
| Allure integration | allure-testng@2.13.5 |
| Generate report using | allure-maven@2.9 |
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xác định cách thuộc tính allure.max.title.length và các giá trị @Step được xử lý khi các step của báo cáo được tạo. Triển khai giới hạn được yêu cầu để văn bản step được ghi lại bị cắt ở số ký tự đã cấu hình, sau đó xác minh rằng một giá trị như 1000 làm thay đổi đầu ra của báo cáo được tạo.
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-qa
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 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