Hi,

Put a JMeter variable in the "Thread Group" element in "Duration (seconds)"
input

And use -J command line option to define it

Antonio

2017-03-01 17:14 GMT+01:00 Bo Bodnar <[email protected]>:

> This is exactly the problem that came up in our test organization. We
> couldn't figure it out (running jmeter for a specified time from the
> command line) so, our solution is to have a shell script start jmeter and,
> after the required time, calls shutdown.sh. The whole thing works using
> nohup and works like a charm.
>
> Bo
>
>
>
> *Bohdan L. Bodnar*
> Lead Performance Engineer
> 1-312-871-5163 <(312)%20871-5163>
> ------------------------------
> *E-mail:* *[email protected]* <[email protected]>
> 222 South Riverside Plaza
> Chicago, IL 60606
> United States
>
> [image: Inactive hide details for Stuart Barlow ---03/01/2017 10:04:07
> AM---Hi. Is there a way to define the duration a test should run]Stuart
> Barlow ---03/01/2017 10:04:07 AM---Hi. Is there a way to define the
> duration a test should run via the command line?
>
> From: Stuart Barlow <[email protected]>
> To: <[email protected]>
> Date: 03/01/2017 10:04 AM
> Subject: Test Duration
> ------------------------------
>
>
>
> Hi. Is there a way to define the duration a test should run via the
> command line?
>
> Is there a JMeter property available? Then it could be set using the -J
> command line option
>
> -J[prop_name]=[value]
>  defines a local JMeter property.
>
> Sorry if this was asked before.
>
> Thanks
>
> Stuart
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
>
>

Reply via email to