Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add property to support the restriction for the Steps length in the report

Aperta
#490 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
testing-qa

Direzione di ricerca

Inizia individuando come vengono gestiti la proprietà allure.max.title.length e i valori di @Step quando vengono generati i passaggi del report. Implementa il limite richiesto in modo che il testo del passaggio registrato venga troncato al numero configurato di caratteri, quindi verifica che un valore come 1000 modifichi l'output del report generato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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:
image
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]
Lingua principale
Java
Stelle
376
Fork
241
Merge medio
20h 3m
PR unite (30g)
45

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di allure-framework/allure-java

Tutte le issue di allure-framework/allure-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.