When testing a REST service and I use CookieFilter, request/responses are not included in report

40 views
Skip to first unread message

Lina i

unread,
May 5, 2017, 6:21:07 PM5/5/17
to Serenity BDD Users Group

Hello Community,

I´m facing the following issue. 

Testing a REST service I have declared this request below. As you can see, I'm using the CookieFilter from io.restassured. 

public class AgentApiActions {
RequestSpecification request;
Response response;
ValidatableResponse json;
CookieFilter cookie = new CookieFilter();

public void authenticate() {
request = given().
filter(cookie).
redirects().follow(false).
formParam("username", "jacksmith").
formParam("password", "group123");
}
}

When I ran all the suite, reports looks in this way (none request/responses):


But when I remove filter(cookie) line, the REST Query appears.


Someone have faced a similar error. I appreciate your insights.

Regards,

Lina


Witold Szczerba

unread,
Feb 27, 2018, 9:03:18 AM2/27/18
to Lina i, Serenity BDD Users Group
I have similar issue: when I attach my custom filter, like this:

given().filter((req, res, ctx) -> ctx.next(req, res));

the requests disappears from Serenity report.

I was trying to debug the issue, but everything seems to be dispatched by some proxy mechanisms and I cannot figure out what is happening there :(

Regards,
Witold Szczerba

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Witold Szczerba

unread,
Feb 27, 2018, 9:39:19 AM2/27/18
to Lina i, Serenity BDD Users Group
Reply all
Reply to author
Forward
0 new messages