Add property to support the restriction for the Steps length in the report
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- java
- Bereich
- testing-qa
Rechercherichtung
Beginne damit zu ermitteln, wie die Eigenschaft allure.max.title.length und @Step-Werte behandelt werden, wenn Berichtsschritte generiert werden. Implementiere das angeforderte Limit, sodass der protokollierte Schritttext auf die konfigurierte Anzahl von Zeichen gekürzt wird, und überprüfe anschließend, dass ein Wert wie 1000 die generierte Berichtsausgabe ändert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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] |
- Vorherrschende Sprache
- Java
- Sterne
- 376
- Forks
- 241
- Ø Merge
- 20 Std. 3 Min.
- Gemergte PRs (30 T.)
- 45
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus allure-framework/allure-java
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
allure-framework/allure-java#1439 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 45/100
allure-framework/allure-java#1446 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add precondition method and annotation for update precondition field in test case from test resultOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 45/100
allure-framework/allure-java#1355 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
allure-framework/allure-java#1322 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
allure-framework/allure-java#987 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in allure-framework/allure-java
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
oracle/javavscode#652 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
OpenAPITools/openapi-generator#25014 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
AloisSeckar/demos-java#380 ·