Skip to content

Confusing order of test body elements #430

@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 testng@7.1.0
Allure integration allure-testng@2.13.2
Allure integration allure-assertj@2.13.2
Allure integration allure-rest-assured@2.13.2
Generate report using allure-commandline@2.13.2

Other information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions