jvictoor
16 years agoOccasional Contributor
TestSuite Mock should recieve 3 responses
Hi,
I'm rather new to SOAPUI and I'm creating technical tests for our alsb service. now i have One request and that request will be sent to 2 consumers. So I've build 2 mocks and they receive the request ok. We also have a split in our service, so when i send the request, the message is send to the mock n-times.
I made a request that has to be split in 3 requests. So my mock should receive 3 requests and my other mock 1 request. This is somewhat my situation.
so
request1->alsb-|->mock1
|->mock2
|->mock2
|->mock2
Now I want to test this with a testsuite.
I have step 1, send request and then i have 4 mock steps. But this does not work.
the first problem is that the responses are send quicker than the test step could start up.
the second problem is that the mocks are serial. By that I mean that all responses arrive at the same time, but the mock will start the next one when the previous one is processed.
I think the sollution is pretty simple, but I don't know how to accomplish it.
this is how my test suite should look like
start my first mock service
start my second mock service
send my request
check my first mock service if he received 1 response
check my second mock service if he received 3 responses
shutdown my mocks
Thanks in advance
I'm rather new to SOAPUI and I'm creating technical tests for our alsb service. now i have One request and that request will be sent to 2 consumers. So I've build 2 mocks and they receive the request ok. We also have a split in our service, so when i send the request, the message is send to the mock n-times.
I made a request that has to be split in 3 requests. So my mock should receive 3 requests and my other mock 1 request. This is somewhat my situation.
so
request1->alsb-|->mock1
|->mock2
|->mock2
|->mock2
Now I want to test this with a testsuite.
I have step 1, send request and then i have 4 mock steps. But this does not work.
the first problem is that the responses are send quicker than the test step could start up.
the second problem is that the mocks are serial. By that I mean that all responses arrive at the same time, but the mock will start the next one when the previous one is processed.
I think the sollution is pretty simple, but I don't know how to accomplish it.
this is how my test suite should look like
start my first mock service
start my second mock service
send my request
check my first mock service if he received 1 response
check my second mock service if he received 3 responses
shutdown my mocks
Thanks in advance