Skip to content

Confusing order of test body elements #430

Open
@dr29bart

Description

@dr29bart

I'm submitting a ...

  • bug report
  • feature request

What is the current behavior?

Rest-assured request/response attachments are in the end of the body:
image

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

import io.qameta.allure.restassured.AllureRestAssured;
import io.restassured.RestAssured;
import org.testng.annotations.Test;

import static org.assertj.core.api.Assertions.assertThat;

public class T {

    @Test public static void testa() {
        RestAssured.replaceFiltersWith(new AllureRestAssured());
        assertThat(1).isGreaterThan(0);

        RestAssured.given().get("https://google.com");

        assertThat(5).isGreaterThan(3);
    }
}

What is the expected behavior?

Rest-assured request/response attachments are in order according to test events:
image

What is the motivation / use case for changing the behavior?

Make the report more straightforward

Please tell us about your environment:

Allure version 2.13.2
Test framework [email protected]
Allure integration [email protected]
Allure integration [email protected]
Allure integration [email protected]
Generate report using [email protected]

Other information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions