dusura
16 years agoNew Contributor
Is it possible to run test cases with mock response steps in parallel?
Hi,
I am trying to test web services with asynchronous behaviour. Using test cases with mock responses seems like a neat way to achieve this.
So I have a several test cases, each with the following steps:
1) mock response (response is acknowledging receipt of request)
2) delay (simulate doing some work)
3) test request (asynchronous "reply" to the original request)
Each test case is for a separate operation of the same web service. I need to run them in parallel as I don't know which test case will occur first. But there seems to be no way to do this. Each mock response wants to listen on the same endpoint exclusively.
Any suggestions would be much appreciated.
Cheers,
David
I am trying to test web services with asynchronous behaviour. Using test cases with mock responses seems like a neat way to achieve this.
So I have a several test cases, each with the following steps:
1) mock response (response is acknowledging receipt of request)
2) delay (simulate doing some work)
3) test request (asynchronous "reply" to the original request)
Each test case is for a separate operation of the same web service. I need to run them in parallel as I don't know which test case will occur first. But there seems to be no way to do this. Each mock response wants to listen on the same endpoint exclusively.
Any suggestions would be much appreciated.
Cheers,
David