You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Elanjchezhiyan <ch...@siptech.co.in> on 2003/06/05 15:00:39 UTC

Scheduler in JMeter

  Hi Stover,
             I am herewith sending you patch file for scheduler.
Description :
    A test scheduler is provided to JMeter. This  supports:
                1. A start time and end time for test - The test 
iterations will start at the specified time and end at the end time. If 
the testplan specifies the number of iterations, it will take precedence 
over the end time.
                2. A start time alone and the number of iterations the 
test must run.

How the Scheduler developed:
   1. In ThreadGroupGui will have both the StartTime and EndTime.
   2. These values are passed to the JMeterThread from the 
StandardJMeterEngine using the ThreadGroup (ConfigElement)  object.
   3. In JMeterThread will have two method for controlling the  Scheduler
                       1. startScheduler()
                       2. stopScheduler()
      startScheduler() :
               This will sleep the JMeterThread based on the starttime 
and SystemCurrentTime.
      stopScheduler() :
              This will stop the Scheduler based on the EndTime

      How to work on Scheduler :

   1. First enable the Scheduler checkbok in the ThreadGroupPanel.
   2. The Scheduler configuration panel will be displayed.
   3. The Panel have two Fields StartTime and EndTime.
   4. StartTime and EndTime fields have the time control in his fields.
   5. Set the StartTime and EndTime in the time control fields.
   6. Start the test, The will start all the JMeterThread in the 
ThreadGroup. But these Threads will sleep upto the
starttime specified in the scheduler.
   7.This scheduled endtime will be notified by the JMeterThread itself, 
each end of the iteration the JMeterThread will check whether the 
scheduled endtime is reached.

Regards,
Elan

-- 
T.Elanjchezhiyan	SIP Technologies & Exports Ltd.,
Software Engineer   	Elnet SoftwareCity, Chennai, India.
Core Technology Group   URL:http://www.siptech.com/
Chezhiyan@siptech.co.in Ph: +91-44-22541473/4 x306