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

[allure-httpclient] Add request/response attachment from the DataProvider method

Aperta
#458 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
testing

Direzione di ricerca

Iniziare in allure-java-commons/src/main/java/io/qameta/allure/AllureLifecycle.java intorno alla riga 609, quindi seguire come vengono gestiti gli allegati delle richieste e delle risposte HTTP durante un metodo TestNG DataProvider. Riprodurre una richiesta DataProvider fallita e verificare che venga creato il request/response attachment e che il log di esecuzione pertinente venga conservato.

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

Descrizione

I'm submitting a ...
  • bug report
  • 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 [email protected]
Lingua principale
Java
Stelle
376
Fork
241
Merge medio
1g 14h
PR unite (30g)
37

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.