- set await condition (ex: And should wait at most 5 m with interval 10 s until property "available" equal to "true")
- define a request
- 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
)
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