This is a migrated thread and some comments may be shown as answers.

Does a Load test end exactly at the specified duration or allow virtual users to finish profile?

4 Answers 22 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 2
Alan asked on 13 Nov 2013, 05:08 PM
I have profiles captured from existing web tests...when the load test executes, will it terminate all virtual users exactly at the end of the duration of test, or allow the virtual users to complete the script execution (and therefore running a few seconds/minutes beyond the specified duration)? 

4 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 13 Nov 2013, 06:05 PM
Hello Alan,

It's kind of in the middle of the two. Specifically when the time is up for a load test, the Load Controller (or Scheduling Server) will send a Stop message to all of the running virtual users (each VU is running in a separate thread). Each VU thread will terminate as soon as it finishes the current request/step and is able to send the latest statistics to the Load Reporter for data collection.

So you see, it's not an instant terminate, but neither is it "stop at the end of the sequence contained in the User Profile" either. That's why it usually runs a little beyond the specified duration, but it should be for no more than a few seconds (depending on how fast the web server sends the responses to the outstanding requests).

Does that answer your question?

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Alan
Top achievements
Rank 2
answered on 13 Nov 2013, 06:57 PM
Thanks Cody, I think that's a close enough answer.  The context of my question was to find out exactly how many complete records would be entered into a database.  If we have a script that takes 5 minutes to execute (+/- think time) and set the load duration for 9 minutes, then a VU would only be able to insert one record into the database--upon execution of the second record insertion, only a portion of it may be inserted due to the controller terminating the thread after 9 minutes instead of allowing the script to finish complete insertion around 10 minutes.

Do I have the correct understanding?
0
Accepted
Cody
Telerik team
answered on 13 Nov 2013, 10:17 PM
Hi Alan,

Yes it sounds like you have the correct understanding. In the end the number of records inserted will be variable/random due to the random nature of how long it takes for responses to come back, random delays of our Think Time in the load test, random CPU load in the load agent sending the requests causing small delays, network congestion, and so on. A load test run for 8 hours with 100 VU's, and a profile that normally takes 5 minutes to run, you could get anywhere from 7600 to 11000 records inserted.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Alan
Top achievements
Rank 2
answered on 13 Nov 2013, 10:24 PM
Excellent, that makes perfect sense.  Thanks again!
Tags
General Discussions
Asked by
Alan
Top achievements
Rank 2
Answers by
Cody
Telerik team
Alan
Top achievements
Rank 2
Share this question
or