allure-framework / allure-framework/allure-java
[allure-httpclient] Add request/response attachment from the DataProvider method
- Vorherrschende Sprache
- Java
- Sterne
- 376
- Forks
- 240
- Ø Merge
- 1 T. 7 Std.
- Gemergte PRs (30 T.)
- 45
Beschreibung
#### 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 |
Beitragsleitfaden
Rechercherichtung
Beginnen Sie in allure-java-commons/src/main/java/io/qameta/allure/AllureLifecycle.java ungefähr bei Zeile 609 und verfolgen Sie anschließend, wie Anhänge von HTTP-Anfragen und -Antworten während einer TestNG DataProvider-Methode verarbeitet werden. Reproduzieren Sie eine fehlschlagende DataProvider-Anfrage und überprüfen Sie, dass der request/response attachment erstellt wird und das relevante Ausführungsprotokoll erhalten bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- testing
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100