Add property to support the restriction for the Steps length in the report
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java
- 领域
- testing-qa
调研方向
首先定位在生成报告步骤时如何处理 allure.max.title.length 属性和 @Step 值。实现所请求的限制,使记录的步骤文本截断为配置的字符数,然后验证诸如 1000 这样的值会改变生成的报告输出。
由索引模型根据 Issue 内容生成。
描述
I'm submitting a ...
- 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 | [email protected] |
| Allure integration | [email protected] |
| Generate report using | [email protected] |
- 主要语言
- Java
- 星标
- 390
- 派生
- 242
- 平均合并
- 2 天 14 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
allure-framework/allure-java 的其他 Issue
-
AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementation可能已有人在做 @USSQA 于 25 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
allure-framework/allure-java#1439 ·
维护者通常 2 天内回复
-
AllureSelenide attaches Screenshot and Page source once per nesting level of SelenideLogger.step未关闭
难度 4/5 3-5 天 新手友好度 25/100
allure-framework/allure-java#1453 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
allure-framework/allure-java#1452 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
allure-framework/allure-java#1451 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 45/100
allure-framework/allure-java#1446 ·
维护者通常 2 天内回复
查看 allure-framework/allure-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
apache/rocketmq-dashboard#6331 ·
维护者通常 5 天内回复
-
status: team-only type: dependency-upgrade
难度 2/5 1-3 小时 新手友好度 68/100
spring-projects/spring-boot#52143 · 1 条评论 ·
维护者通常 1 天内回复
-
area/frontend good first issue kind/cooldown
难度 2/5 1-3 小时 新手友好度 78/100
kestra-io/kestra#20704 · 1 条评论 ·
维护者通常 1 天内回复