jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Test Duration
Date Wed, 01 Mar 2017 16:23:45 GMT
Simpler to use a property reference, for example:

${__P(RUNTIME,100)

Then use -JRUNTIME=99 on the command line



On 1 March 2017 at 16:18, Antonio Gomes Rodrigues <ra0077@gmail.com> wrote:
> 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 <bbodnar@us.ibm.com>:
>
>> 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:* *bbodnar@us.ibm.com* <bbodnar@us.ibm.com>
>> 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 <stuart.barlow@gmail.com>
>> To: <user@jmeter.apache.org>
>> 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: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message