allure-framework / allure-framework/allure-java
[allure-httpclient] Add request/response attachment from the DataProvider method
- Lingua principale
- Java
- Stelle
- 376
- Fork
- 240
- Merge medio
- 1g 7h
- PR unite (30g)
- 45
Descrizione
#### I'm submitting a ...
- [x] bug report
- [x] 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 | testng@7.1 |
Guida per i contributori
Apri la guida per i contributori
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.
Valutazione
- Stack tecnologico
- java
- Ambito
- testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100