mrhaboobi
15 years agoNew Contributor
Multiple Response with Mock Service
Just wondering if its possible for a mock service to be set up so that it can return multiple responses.
normally we go
return "My Response"
but i want to go
Return "My Response", "My other Response" etc..
can this be achieved when using a groovy script?
Thinking about this more, i dont want to have 2 responses. i want my mock service to be able to spawn off a new Request i guess? perhaps this is something you cant script.. calling a Request via script/
eg
Return " My Response"
Exec "My Other Request"
normally we go
return "My Response"
but i want to go
Return "My Response", "My other Response" etc..
can this be achieved when using a groovy script?
Thinking about this more, i dont want to have 2 responses. i want my mock service to be able to spawn off a new Request i guess? perhaps this is something you cant script.. calling a Request via script/
eg
Return " My Response"
Exec "My Other Request"