Skip to content

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

Description

@baflQA

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 testng@7.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions