Think time or Sleep enabled on load test


i'm able to run my test with the method that i have listed on discussion form. it's running like a charm. but now there is a little issue.
i have 78 SQL statments in my XML file and have 20 VU running on the load test.
but everytime that i'm running 1 vu execute 78 statments at the same time. i need a way to set a Thinktime or wait statments between each SQL statement. i have set the System.Threading.Thread.Sleep(2000); in my loop
when i do that the load test and run but now of the test get's executed.
when i comment the sleep statments I'm able to run it with out a issue. except it runs all 78 at one time.

file attachments


robjarratt wrote Oct 2, 2008 at 11:04 PM

When you say they execute all at the same time with one VU I assume you mean that they execute sequentially but with no delay between one statement and the next. I am also unclear on what happens when you insert the delay, are you saying that the test does not run at all? If that is the case as a first step I would suggest that you run it as a unit test with the delay, running the test under the debugger to see what happens.

I am also a little curious about the way you are testing. You do not seem to be using the tool at all as far as I can tell, can you tell me what limitation of the tool is preventing you from using it? I am also wondering how you are varying the data in the queries to avoid caching effects giving you artificially good select performance and potentially giving you artificially poor update performance?

wrote Feb 14, 2013 at 2:29 AM