On 03/12/2008, Mordechai <[EMAIL PROTECTED]> wrote:
>
> Steve,
>
> Thanks for the quick reply, I had tried setting it through the GUI, and
> found that Jmeter hung, perhaps I was settting something wrong.
>
> If I want test X to run for 4 hours, is it necessary to check the [x] loop
> forever ?
No, but you must ensure that the number of loops is sufficient to last
at least 14400 seconds.
> or by passing the jduration = 14400 is it implied that the test will
> continue to run (loop) until 14400 seconds of execution has occurred?
JMeter will stop the thread group when it reaches either the number of
loops or the duration (or end-time).
You can use a simple test plan with a Java Request sampler to
experiment with this without needing to access a server.
> Thanks.
> Mordechai
>
>
>
> Steve Kapinos wrote:
> >
> > You could define the value in the test plan using a property.. and then
> > set the property via the command line using -J
> >
> > The property could also be defined in a properties fil
> >
> > If the property is 'duration' in the test plan use
> >
> > ${__P(duration,300)}
> >
> > 300 is a default value you would use if the property was not defined
> >
> > At the command like use
> >
> > Jmeter -Jduration=500
> >
> > -----Original Message-----
> > From: Mordechai [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 03, 2008 10:04 AM
> > To: [email protected]
> > Subject: Howto: set "duration" or schedule by command line ?
> >
> >
> > Hi there,
> >
> > I wasn't able to find this in the docs though I might have missed it. Is
> > there a way to specify via command line the duration for the test? I've
> > had
> > trouble getting the scheduler to work accurately from the GUI in regards
> > to
> > duration.
> >
> > ./jmeter -n -t someTestScript.jmx -? what flag to specify duration?
> >
> > I thought I might be able to set this in the properties file and then
> > pass
> > the properties file via command line?
> >
> > Feedback appreciated.
> > Mordechai
> > --
> > View this message in context:
> > http://www.nabble.com/Howto%3A-set-%22duration%22-or-schedule-by-command
> > -line---tp20809142p20809142.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
>
> View this message in context:
> http://www.nabble.com/Howto%3A-set-%22duration%22-or-schedule-by-command-line---tp20809142p20810507.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]