Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The way to add Allure @Step Annotation to generated request models #6

Open
vglushonkov opened this issue Mar 23, 2023 · 1 comment
Open

Comments

@vglushonkov
Copy link

Maybe there is a way to add Allure @step Annotation to generated request models? Trying to figure out how to achieve this.
When we use generated api endpoint model to make the request, there is no step for Allure reports. All the requests/responses are just added as Allure attachements in random order to the test results.

@vglushonkov
Copy link
Author

vglushonkov commented Mar 23, 2023

The only thing I can do is rename the Allure attachements via ApiProvider:

                .addFilter(new AllureRestAssured()
                                .setRequestAttachmentName("merchant-app request")
                                .setResponseAttachmentName("merchant-app response"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant