allure-framework / allure-framework/allure-java

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

Abierto
#458 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
376
Forks
240
Merge medio
1 d 7 h
PR fusionados (30 d)
45

Descripción

#### 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 |

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comience en allure-java-commons/src/main/java/io/qameta/allure/AllureLifecycle.java alrededor de la línea 609 y, a continuación, siga cómo se gestionan los adjuntos de solicitudes y respuestas HTTP durante un método TestNG DataProvider. Reproduzca una solicitud de DataProvider fallida y verifique que se cree el request/response attachment y que se conserve el registro de ejecución relevante.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
testing
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.