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

AwaitCondition + HttpRequest + CookieSet plugin = request gets poluted with cookies #165

Open
mike-hmelov opened this issue Aug 6, 2020 · 0 comments

Comments

@mike-hmelov
Copy link
Contributor

mike-hmelov commented Aug 6, 2020

  1. set await condition (ex: And should wait at most 5 m with interval 10 s until property "available" equal to "true")
  2. define a request
  3. implement some some plugin which sets cookie for a request (like
public void beforeRequest(RequestSpecification requestSpecification) {
this.requestFacade.cookie(name, value);

)

Observed: on each await invoke request gets through plugin change and cookie is added (even if it is already there)
as a result request looks like this:
Request URI: https://someurl/process/54459/availabilityStatus
Headers: Accept=/
Cookies: LtpaToken2=YQwORP8IO8tsS***
LtpaToken2=YQwORP8IO8tsS***
LtpaToken2=YQwORP8IO8tsS***
LtpaToken2=YQwORP8IO8tsS***
LtpaToken2=YQwORP8IO8tsS***
....
Expected: RequestSpecification is cleared/reinitiated before/after each iteration of AwaitCondition

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