ok,
i have done this.
It's working great for few days now, but...
I have very simple moch service with 1 operation - response.
During the proces, very simple testCase with 2 operations is started (request and groovy).
In mock i can see that most of responses from testCase take 500ms or more (check picture).
Groovy in test case has line(s):
...
def TimeTaken = testRunner.testCase.testSteps["readRecord - Request 1"].testRequest.response.timeTaken
...
writer.write(today + ", " + id + " - " + TimeTaken + "\r\n");
With this line i'm making my own log files and in this file i can see that response from testCase doesn't take that long.
2011-09-21 11:37:32, 1593156 - 18
2011-09-21 11:37:33, 1593157 - 24
2011-09-21 11:37:33, 1593158 - 4
2011-09-21 11:37:34, 1593159 - 4
2011-09-21 11:37:34, 1593160 - 4
2011-09-21 11:37:35, 1593161 - 6
2011-09-21 11:37:36, 1593162 - 25
2011-09-21 11:37:36, 1593163 - 4
2011-09-21 11:37:37, 1593164 - 4
2011-09-21 11:37:37, 1593165 - 4
2011-09-21 11:37:38, 1593166 - 42
2011-09-21 11:37:39, 1593167 - 4
2011-09-21 11:37:39, 1593168 - 6
2011-09-21 11:37:40, 1593169 - 4
2011-09-21 11:37:40, 1593170 - 6
2011-09-21 11:37:41, 1593171 - 17
2011-09-21 11:37:41, 1593172 - 4
2011-09-21 11:37:42, 1593173 - 6
2011-09-21 11:37:42, 1593174 - 4
2011-09-21 11:37:43, 1593175 - 4
Why is this difference?
"Include request/response in time taken:" from settings doesn't change much.
Is "mock" blocking something? Making testCase go slower?
This is really important for me to know right now.
Tnx,
Beno