Skip to content

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

@mike-hmelov

Description

@mike-hmelov
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions