Thank you for you response.
The Groovy script is a DISPATCH script. ( what you call "In Mock Operation dispatch", I guess )
What do you mean with "in the MockResponse" ?
The fact that the sleep blocks other requests is not really an issue, because it is acceptable that if my server doesn't reply to a request, it doesn't reply to next next ( simulating a network problem or a big server problem( infinite loop, memory crunch... )
But this raises another issue.
The service I've to mock normally takes several seconds to reply ( 1 to 10 seconds) but can handle multiple request simultaneously. The replies arrive not necessary in the same order than requests.
If I simulate this with sleep in dispatch scripts, the requests won't be treated simultaneously, but sequencly. Will they?
Thanks