Forum Discussion

MRtai2's avatar
MRtai2
Occasional Contributor
15 years ago

Multiple MockResponse for 1 Request - Webservice

I am encountering an issue with sending out 1 request and expecting multiple responses back. Right now in my test suite I have 1 mock request followed by 4 mock responses which are triggered in steps prior to the request. The issue that I am having is that the first two responses are picked up but on the third mock response I am not receiving a response resulting in a timeout. I am assuming this is occurring because of the fact that the messages are coming in simultaneously and thus dropping the last two messages. Does anyone know of a work around for this since this is a webservice and there are no queues for me to work with?
  • MRtai2's avatar
    MRtai2
    Occasional Contributor
    I would like to add that the first response occurs instantaneously. Followed by the last 3 responses after some time.