allure-java icon indicating copy to clipboard operation
allure-java copied to clipboard

Allure Rest Assured plugin does not attach Request form params in the report

Open loveshjain opened this issue 5 years ago • 3 comments

I'm submitting a ...

  • [ ] feature request

What is the current behavior?

The report only attach url, method, headers, body, cookies of a request but does not attach the form params.

https://github.com/allure-framework/allure-java/blob/master/allure-rest-assured/src/main/java/io/qameta/allure/restassured/AllureRestAssured.java#L80

What is the expected behavior?

The report should display form params as well or should have capability to customize what all things of a request we want in the report

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

My request has form params and I would like them to be displayed in report as part of the request attachment.

                  given()
			.header("content-type", "valid content type")
			.formParam("abcd", "abcd")
			.formParam("xyz", "xyz")

https://github.com/allure-framework/allure-java/blob/master/allure-rest-assured/src/main/java/io/qameta/allure/restassured/AllureRestAssured.java#L80

image

Allure version 2.2.0
allure-rest-assured 2.13.5
Generate report using [email protected]

Other information

loveshjain avatar Sep 07 '20 05:09 loveshjain

I am looking for a way to implement this as well. Would be a useful feature.

ristoporila avatar Nov 12 '20 13:11 ristoporila

If you'll provide a PR I would glad to merge it

baev avatar Nov 12 '20 13:11 baev

@baev you could close this Issue due new feature https://github.com/allure-framework/allure-java/pull/1016

Phoenix124 avatar Mar 12 '24 15:03 Phoenix124

fixed via https://github.com/allure-framework/allure-java/pull/1016

baev avatar Mar 12 '24 18:03 baev