You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Stuart Barlow <st...@gmail.com> on 2017/03/01 15:43:19 UTC
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
RE: Test Duration
Posted by Stuart Kenworthy <St...@bjss.com>.
Other than using specific times in the scheduler, not really.
I got around this in the past by
- calculating the average runtime of the user journey (12 minutes in this example)
- include all contents of the thread group inside a loop controller, this is the only direct child of the threadgroup
- have a set up thread group and beanshell script
- that script calculates the run length by dividing a property that can be passed on the command line (eg. -Jrunlenth) by the average runtime
- pass this value back to a property (eg. prop.put("runloops" , (props.get("runlength")*60)/12))
- the loop controller uses the runloops property
However if you are not bothered about terminating a thread part way through just use a scheduling tool such as "at" to kill the process.
I use a customised jmeter start up script that is used to start jmeter, write the new pid out to file and stop jmeter using the pid file.
There is quite a lot of jmeter limitations that can be done using shell scripting, including multiple jmeter-server instances and masters running on a single box for multiple script concurrent execution. Might be worth a look at writing something yourself.
-----Original Message-----
From: Stuart Barlow [mailto:stuart.barlow@gmail.com]
Sent: 01 March 2017 15:43
To: user@jmeter.apache.org
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
The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed to, persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS does not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
Re: Test Duration
Posted by Philippe Mouawad <ph...@gmail.com>.
On Wed, Mar 1, 2017 at 10:57 PM, Philippe Mouawad <
philippe.mouawad@gmail.com> wrote:
> Hello,
> Note that as of current nightly build, there remain a "problem" with Test
> Action.
> If it is set in Pause mode with a duration that will last beyond test end,
> this is not detected.
> I opened bug:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=60797
>
Issue fixed now with non regression tests added.
Tests of nightly (available on Jenkins in 15 minutes) and feedback welcome :
http://jmeter.apache.org/nightly.html
Thanks
>
>
> Regarding timers, this has been fixed in 3.1:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=60049
>
> Regards
> Philippe
>
--
Cordialement.
Philippe Mouawad.
Re: Test Duration
Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
Note that as of current nightly build, there remain a "problem" with Test
Action.
If it is set in Pause mode with a duration that will last beyond test end,
this is not detected.
I opened bug:
https://bz.apache.org/bugzilla/show_bug.cgi?id=60797
Regarding timers, this has been fixed in 3.1:
https://bz.apache.org/bugzilla/show_bug.cgi?id=60049
Regards
Philippe
Re: Test Duration
Posted by Philippe Mouawad <ph...@gmail.com>.
On Wed, Mar 1, 2017 at 9:48 PM, Felix Schumacher <felix.schumacher@
internetallee.de> wrote:
> Am 01.03.2017 um 20:06 schrieb Philippe Mouawad:
>
>> On Wednesday, March 1, 2017, Stuart Kenworthy <St...@bjss.com>
>> wrote:
>>
>> Many people are still using 2.13 which Is why I mentioned it.
>>>
>>> However there is still a potential problem, duration does not interrupt
>>> timers or test action waits.
>>>
>> It does interrupt them since 3.1 I think it not 3.0.
>> This bug was fixed.
>>
>>
>> Also if you have samplers that are currently awaiting a response, it waits
>>> until the response before terminating.
>>>
>> yes, that seems correct to me.
>> Intereupting them would lead to a high error rate on last samples.
>> But you can force a stop if you want.
>>
> Maybe we could tell the listeners to ignore anything after the scheduler
> says the test is finished. That way we would get not errors by interrupting
> the "stuck" samplers.
>
Sounds interesting. Is there a chance we get "bug reports" about samplers
that were not written ? (those ones ?)
>
> Felix
>
>
>> This means if you have a 10 minute wait, via timer or test action, in your
>>> test plan and one if the threads is in the timer or test action, or your
>>> sampler is currently waiting to timeout, you have to wait for that to
>>> finish after the duration ends.
>>>
>> Yes for timeout.
>> No more for timers.
>>
>>
>> I understand this is by design and is also present in the UI but it does
>>> cause problems when running real world user journeys.
>>>
>> If you still experience issues in 3.1, please raise a bugzilla bug so that
>> we fix it.
>> Attach a sample test plan and be as precise as possible.
>>
>> Not a major problem but something a lot of people fall into.
>>>
>>
>> Yes, I falled into it myself when using Throughput timer, that's why it
>> was
>> fixed.
>> Unfortunately we cannot fix bugs we're not aware of :)
>>
>> -----Original Message-----
>>> From: Philippe Mouawad [mailto:philippe.mouawad@gmail.com
>>> <javascript:;>]
>>> Sent: 01 March 2017 18:04
>>> To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
>>> Subject: Re: Test Duration
>>>
>>> Hello,
>>> The methods described by Antonio and Sebb work perfectly well.
>>> If you have any issue, please provide more details and an example test
>>> plan.
>>>
>>> No need to switch to old 2.13 for this.
>>>
>>> Regards
>>>
>>> On Wednesday, March 1, 2017, Stuart Kenworthy <Stuart.Kenworthy@bjss.com
>>> <javascript:;>>
>>>
>>> wrote:
>>>
>>> Wow I take that back, it now seems that schedule in v3.1 does seem to
>>>> do what you expect. May want to test properly if using 2.13.
>>>>
>>>> -----Original Message-----
>>>> From: Stuart Kenworthy [mailto:Stuart.Kenworthy@bjss.com <javascript:;>
>>>> <javascript:;>]
>>>> Sent: 01 March 2017 16:33
>>>> To: JMeter Users List <user@jmeter.apache.org <javascript:;>
>>>>
>>> <javascript:;>>
>>>
>>>> Subject: RE: Test Duration
>>>>
>>>> Does this actually work? In my experience, running a scheduler in
>>>> command line does not work as expected, or at all.
>>>>
>>>> -----Original Message-----
>>>> From: Antonio Gomes Rodrigues [mailto:ra0077@gmail.com <javascript:;>
>>>>
>>> <javascript:;>]
>>>
>>>> Sent: 01 March 2017 16:30
>>>> To: JMeter Users List <user@jmeter.apache.org <javascript:;>
>>>>
>>> <javascript:;>>
>>>
>>>> Subject: Re: Test Duration
>>>>
>>>> Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration
>>>> (seconds)" input
>>>>
>>>> And when you run JMeter, use -JRUNTIME=99 in the command line
>>>>
>>>> Instead of 99, put the desired test duration in seconds
>>>>
>>>> 2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <Stuart.Kenworthy@bjss.com
>>>>
>>> <javascript:;>
>>>
>>>> <javascript:;>>:
>>>>
>>>> And how would this be used to control run time within the script
>>>>>
>>>> itself?
>>>
>>>> -----Original Message-----
>>>>> From: sebb [mailto:sebbaz@gmail.com <javascript:;> <javascript:;>]
>>>>> Sent: 01 March 2017 16:24
>>>>> To: JMeter Users List <user@jmeter.apache.org <javascript:;>
>>>>>
>>>> <javascript:;>>
>>>
>>>> Subject: Re: Test Duration
>>>>>
>>>>> 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
>>>>>
>>>> <javascript:;>
>>>
>>>> <javascript:;>>
>>>>
>>>>> 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
>>>>>>
>>>>> <javascript:;>
>>>
>>>> <javascript:;>>:
>>>>
>>>>> 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 <javascript:;> <javascript:;>* <
>>>>>>>
>>>>>> bbodnar@us.ibm.com <javascript:;>
>>>
>>>> <javascript:;>>
>>>>
>>>>> 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 <javascript:;>
>>>>>>>
>>>>>> <javascript:;>>
>>>
>>>> To: <user@jmeter.apache.org <javascript:;> <javascript:;>>
>>>>>>>
>>>>>>> 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
>>>>>>>
>>>>>> <javascript:;>
>>>
>>>> <javascript:;>
>>>>
>>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>>>>>
>>>>>> <javascript:;>
>>>
>>>> <javascript:;>
>>>>
>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --------------------------------------------------------------------
>>>>> - To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>>>>
>>>> <javascript:;>
>>>
>>>> <javascript:;>
>>>>
>>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>>>
>>>> <javascript:;>
>>>
>>>> <javascript:;>
>>>>
>>>>>
>>>>> The information included in this email and any files transmitted
>>>>> with it may contain information that is confidential and it must not
>>>>> be used by, or its contents or attachments copied or disclosed to,
>>>>> persons other than the intended addressee. If you have received this
>>>>> email in error, please notify BJSS. In the absence of written
>>>>> agreement to the contrary BJSS' relevant standard terms of contract
>>>>> for any work to be undertaken will apply. Please carry out virus or
>>>>> such other checks as you consider appropriate in respect of this
>>>>> email. BJSS does not accept responsibility for any adverse effect
>>>>> upon your system or data in relation to this email or any files
>>>>> transmitted with it. BJSS Limited, a company registered in England
>>>>> and Wales (Company Number 2777575), VAT Registration Number
>>>>> 613295452, Registered
>>>>>
>>>> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1
>>>> 2TW.
>>>>
>>>>> --------------------------------------------------------------------
>>>>> - To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>>>>
>>>> <javascript:;>
>>>
>>>> <javascript:;>
>>>>
>>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>>>
>>>> <javascript:;>
>>>
>>>> <javascript:;>
>>>> The information included in this email and any files transmitted with
>>>> it may contain information that is confidential and it must not be
>>>> used by, or its contents or attachments copied or disclosed to,
>>>> persons other than the intended addressee. If you have received this
>>>> email in error, please notify BJSS. In the absence of written
>>>> agreement to the contrary BJSS' relevant standard terms of contract
>>>> for any work to be undertaken will apply. Please carry out virus or
>>>> such other checks as you consider appropriate in respect of this
>>>> email. BJSS does not accept responsibility for any adverse effect upon
>>>> your system or data in relation to this email or any files transmitted
>>>> with it. BJSS Limited, a company registered in England and Wales
>>>> (Company Number 2777575), VAT Registration Number 613295452, Registered
>>>>
>>> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>>>
>>> <javascript:;>
>>>
>>>> <javascript:;> For additional commands, e-mail:
>>>> user-help@jmeter.apache.org <javascript:;> <javascript:;>
>>>>
>>>> The information included in this email and any files transmitted with
>>>> it may contain information that is confidential and it must not be
>>>> used by, or its contents or attachments copied or disclosed to,
>>>> persons other than the intended addressee. If you have received this
>>>> email in error, please notify BJSS. In the absence of written
>>>> agreement to the contrary BJSS' relevant standard terms of contract
>>>> for any work to be undertaken will apply. Please carry out virus or
>>>> such other checks as you consider appropriate in respect of this
>>>> email. BJSS does not accept responsibility for any adverse effect upon
>>>> your system or data in relation to this email or any files transmitted
>>>> with it. BJSS Limited, a company registered in England and Wales
>>>> (Company Number 2777575), VAT Registration Number 613295452, Registered
>>>>
>>> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>>>
>>> <javascript:;>
>>>
>>>> <javascript:;> For additional commands, e-mail:
>>>> user-help@jmeter.apache.org <javascript:;> <javascript:;>
>>>>
>>>>
>>> --
>>> Cordialement.
>>> Philippe Mouawad.
>>>
>>> The information included in this email and any files transmitted with it
>>> may contain information that is confidential and it must not be used by,
>>> or
>>> its contents or attachments copied or disclosed to, persons other than
>>> the
>>> intended addressee. If you have received this email in error, please
>>> notify
>>> BJSS. In the absence of written agreement to the contrary BJSS' relevant
>>> standard terms of contract for any work to be undertaken will apply.
>>> Please
>>> carry out virus or such other checks as you consider appropriate in
>>> respect
>>> of this email. BJSS does not accept responsibility for any adverse effect
>>> upon your system or data in relation to this email or any files
>>> transmitted
>>> with it. BJSS Limited, a company registered in England and Wales (Company
>>> Number 2777575), VAT Registration Number 613295452, Registered Office
>>> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>> <javascript:;>
>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>> <javascript:;>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
--
Cordialement.
Philippe Mouawad.
Re: Test Duration
Posted by Felix Schumacher <fe...@internetallee.de>.
Am 01.03.2017 um 20:06 schrieb Philippe Mouawad:
> On Wednesday, March 1, 2017, Stuart Kenworthy <St...@bjss.com>
> wrote:
>
>> Many people are still using 2.13 which Is why I mentioned it.
>>
>> However there is still a potential problem, duration does not interrupt
>> timers or test action waits.
> It does interrupt them since 3.1 I think it not 3.0.
> This bug was fixed.
>
>
>> Also if you have samplers that are currently awaiting a response, it waits
>> until the response before terminating.
> yes, that seems correct to me.
> Intereupting them would lead to a high error rate on last samples.
> But you can force a stop if you want.
Maybe we could tell the listeners to ignore anything after the scheduler
says the test is finished. That way we would get not errors by
interrupting the "stuck" samplers.
Felix
>
>> This means if you have a 10 minute wait, via timer or test action, in your
>> test plan and one if the threads is in the timer or test action, or your
>> sampler is currently waiting to timeout, you have to wait for that to
>> finish after the duration ends.
> Yes for timeout.
> No more for timers.
>
>
>> I understand this is by design and is also present in the UI but it does
>> cause problems when running real world user journeys.
> If you still experience issues in 3.1, please raise a bugzilla bug so that
> we fix it.
> Attach a sample test plan and be as precise as possible.
>
>> Not a major problem but something a lot of people fall into.
>
> Yes, I falled into it myself when using Throughput timer, that's why it was
> fixed.
> Unfortunately we cannot fix bugs we're not aware of :)
>
>> -----Original Message-----
>> From: Philippe Mouawad [mailto:philippe.mouawad@gmail.com <javascript:;>]
>> Sent: 01 March 2017 18:04
>> To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
>> Subject: Re: Test Duration
>>
>> Hello,
>> The methods described by Antonio and Sebb work perfectly well.
>> If you have any issue, please provide more details and an example test
>> plan.
>>
>> No need to switch to old 2.13 for this.
>>
>> Regards
>>
>> On Wednesday, March 1, 2017, Stuart Kenworthy <Stuart.Kenworthy@bjss.com
>> <javascript:;>>
>> wrote:
>>
>>> Wow I take that back, it now seems that schedule in v3.1 does seem to
>>> do what you expect. May want to test properly if using 2.13.
>>>
>>> -----Original Message-----
>>> From: Stuart Kenworthy [mailto:Stuart.Kenworthy@bjss.com <javascript:;>
>>> <javascript:;>]
>>> Sent: 01 March 2017 16:33
>>> To: JMeter Users List <user@jmeter.apache.org <javascript:;>
>> <javascript:;>>
>>> Subject: RE: Test Duration
>>>
>>> Does this actually work? In my experience, running a scheduler in
>>> command line does not work as expected, or at all.
>>>
>>> -----Original Message-----
>>> From: Antonio Gomes Rodrigues [mailto:ra0077@gmail.com <javascript:;>
>> <javascript:;>]
>>> Sent: 01 March 2017 16:30
>>> To: JMeter Users List <user@jmeter.apache.org <javascript:;>
>> <javascript:;>>
>>> Subject: Re: Test Duration
>>>
>>> Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration
>>> (seconds)" input
>>>
>>> And when you run JMeter, use -JRUNTIME=99 in the command line
>>>
>>> Instead of 99, put the desired test duration in seconds
>>>
>>> 2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <Stuart.Kenworthy@bjss.com
>> <javascript:;>
>>> <javascript:;>>:
>>>
>>>> And how would this be used to control run time within the script
>> itself?
>>>> -----Original Message-----
>>>> From: sebb [mailto:sebbaz@gmail.com <javascript:;> <javascript:;>]
>>>> Sent: 01 March 2017 16:24
>>>> To: JMeter Users List <user@jmeter.apache.org <javascript:;>
>> <javascript:;>>
>>>> Subject: Re: Test Duration
>>>>
>>>> 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
>> <javascript:;>
>>> <javascript:;>>
>>>> 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
>> <javascript:;>
>>> <javascript:;>>:
>>>>>> 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 <javascript:;> <javascript:;>* <
>> bbodnar@us.ibm.com <javascript:;>
>>> <javascript:;>>
>>>>>> 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 <javascript:;>
>> <javascript:;>>
>>>>>> To: <user@jmeter.apache.org <javascript:;> <javascript:;>>
>>>>>> 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
>> <javascript:;>
>>> <javascript:;>
>>>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>> <javascript:;>
>>> <javascript:;>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> --------------------------------------------------------------------
>>>> - To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> <javascript:;>
>>> <javascript:;>
>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>> <javascript:;>
>>> <javascript:;>
>>>>
>>>> The information included in this email and any files transmitted
>>>> with it may contain information that is confidential and it must not
>>>> be used by, or its contents or attachments copied or disclosed to,
>>>> persons other than the intended addressee. If you have received this
>>>> email in error, please notify BJSS. In the absence of written
>>>> agreement to the contrary BJSS' relevant standard terms of contract
>>>> for any work to be undertaken will apply. Please carry out virus or
>>>> such other checks as you consider appropriate in respect of this
>>>> email. BJSS does not accept responsibility for any adverse effect
>>>> upon your system or data in relation to this email or any files
>>>> transmitted with it. BJSS Limited, a company registered in England
>>>> and Wales (Company Number 2777575), VAT Registration Number
>>>> 613295452, Registered
>>> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>>>> --------------------------------------------------------------------
>>>> - To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> <javascript:;>
>>> <javascript:;>
>>>> For additional commands, e-mail: user-help@jmeter.apache.org
>> <javascript:;>
>>> <javascript:;>
>>> The information included in this email and any files transmitted with
>>> it may contain information that is confidential and it must not be
>>> used by, or its contents or attachments copied or disclosed to,
>>> persons other than the intended addressee. If you have received this
>>> email in error, please notify BJSS. In the absence of written
>>> agreement to the contrary BJSS' relevant standard terms of contract
>>> for any work to be undertaken will apply. Please carry out virus or
>>> such other checks as you consider appropriate in respect of this
>>> email. BJSS does not accept responsibility for any adverse effect upon
>>> your system or data in relation to this email or any files transmitted
>>> with it. BJSS Limited, a company registered in England and Wales
>>> (Company Number 2777575), VAT Registration Number 613295452, Registered
>> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> <javascript:;>
>>> <javascript:;> For additional commands, e-mail:
>>> user-help@jmeter.apache.org <javascript:;> <javascript:;>
>>>
>>> The information included in this email and any files transmitted with
>>> it may contain information that is confidential and it must not be
>>> used by, or its contents or attachments copied or disclosed to,
>>> persons other than the intended addressee. If you have received this
>>> email in error, please notify BJSS. In the absence of written
>>> agreement to the contrary BJSS' relevant standard terms of contract
>>> for any work to be undertaken will apply. Please carry out virus or
>>> such other checks as you consider appropriate in respect of this
>>> email. BJSS does not accept responsibility for any adverse effect upon
>>> your system or data in relation to this email or any files transmitted
>>> with it. BJSS Limited, a company registered in England and Wales
>>> (Company Number 2777575), VAT Registration Number 613295452, Registered
>> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> <javascript:;>
>>> <javascript:;> For additional commands, e-mail:
>>> user-help@jmeter.apache.org <javascript:;> <javascript:;>
>>>
>>
>> --
>> Cordialement.
>> Philippe Mouawad.
>>
>> The information included in this email and any files transmitted with it
>> may contain information that is confidential and it must not be used by, or
>> its contents or attachments copied or disclosed to, persons other than the
>> intended addressee. If you have received this email in error, please notify
>> BJSS. In the absence of written agreement to the contrary BJSS' relevant
>> standard terms of contract for any work to be undertaken will apply. Please
>> carry out virus or such other checks as you consider appropriate in respect
>> of this email. BJSS does not accept responsibility for any adverse effect
>> upon your system or data in relation to this email or any files transmitted
>> with it. BJSS Limited, a company registered in England and Wales (Company
>> Number 2777575), VAT Registration Number 613295452, Registered Office
>> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
>> For additional commands, e-mail: user-help@jmeter.apache.org
>> <javascript:;>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Test Duration
Posted by Philippe Mouawad <ph...@gmail.com>.
On Wednesday, March 1, 2017, Stuart Kenworthy <St...@bjss.com>
wrote:
> Many people are still using 2.13 which Is why I mentioned it.
>
> However there is still a potential problem, duration does not interrupt
> timers or test action waits.
It does interrupt them since 3.1 I think it not 3.0.
This bug was fixed.
>
> Also if you have samplers that are currently awaiting a response, it waits
> until the response before terminating.
yes, that seems correct to me.
Intereupting them would lead to a high error rate on last samples.
But you can force a stop if you want.
>
> This means if you have a 10 minute wait, via timer or test action, in your
> test plan and one if the threads is in the timer or test action, or your
> sampler is currently waiting to timeout, you have to wait for that to
> finish after the duration ends.
Yes for timeout.
No more for timers.
>
> I understand this is by design and is also present in the UI but it does
> cause problems when running real world user journeys.
If you still experience issues in 3.1, please raise a bugzilla bug so that
we fix it.
Attach a sample test plan and be as precise as possible.
>
> Not a major problem but something a lot of people fall into.
Yes, I falled into it myself when using Throughput timer, that's why it was
fixed.
Unfortunately we cannot fix bugs we're not aware of :)
>
> -----Original Message-----
> From: Philippe Mouawad [mailto:philippe.mouawad@gmail.com <javascript:;>]
> Sent: 01 March 2017 18:04
> To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
> Subject: Re: Test Duration
>
> Hello,
> The methods described by Antonio and Sebb work perfectly well.
> If you have any issue, please provide more details and an example test
> plan.
>
> No need to switch to old 2.13 for this.
>
> Regards
>
> On Wednesday, March 1, 2017, Stuart Kenworthy <Stuart.Kenworthy@bjss.com
> <javascript:;>>
> wrote:
>
> > Wow I take that back, it now seems that schedule in v3.1 does seem to
> > do what you expect. May want to test properly if using 2.13.
> >
> > -----Original Message-----
> > From: Stuart Kenworthy [mailto:Stuart.Kenworthy@bjss.com <javascript:;>
> > <javascript:;>]
> > Sent: 01 March 2017 16:33
> > To: JMeter Users List <user@jmeter.apache.org <javascript:;>
> <javascript:;>>
> > Subject: RE: Test Duration
> >
> > Does this actually work? In my experience, running a scheduler in
> > command line does not work as expected, or at all.
> >
> > -----Original Message-----
> > From: Antonio Gomes Rodrigues [mailto:ra0077@gmail.com <javascript:;>
> <javascript:;>]
> > Sent: 01 March 2017 16:30
> > To: JMeter Users List <user@jmeter.apache.org <javascript:;>
> <javascript:;>>
> > Subject: Re: Test Duration
> >
> > Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration
> > (seconds)" input
> >
> > And when you run JMeter, use -JRUNTIME=99 in the command line
> >
> > Instead of 99, put the desired test duration in seconds
> >
> > 2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <Stuart.Kenworthy@bjss.com
> <javascript:;>
> > <javascript:;>>:
> >
> > > And how would this be used to control run time within the script
> itself?
> > >
> > > -----Original Message-----
> > > From: sebb [mailto:sebbaz@gmail.com <javascript:;> <javascript:;>]
> > > Sent: 01 March 2017 16:24
> > > To: JMeter Users List <user@jmeter.apache.org <javascript:;>
> <javascript:;>>
> > > Subject: Re: Test Duration
> > >
> > > 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
> <javascript:;>
> > <javascript:;>>
> > > 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
> <javascript:;>
> > <javascript:;>>:
> > > >
> > > >> 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 <javascript:;> <javascript:;>* <
> bbodnar@us.ibm.com <javascript:;>
> > <javascript:;>>
> > > >> 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 <javascript:;>
> <javascript:;>>
> > > >> To: <user@jmeter.apache.org <javascript:;> <javascript:;>>
> > > >> 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
> <javascript:;>
> > <javascript:;>
> > > >> For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> > <javascript:;>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > <javascript:;>
> > > For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> > <javascript:;>
> > >
> > >
> > > The information included in this email and any files transmitted
> > > with it may contain information that is confidential and it must not
> > > be used by, or its contents or attachments copied or disclosed to,
> > > persons other than the intended addressee. If you have received this
> > > email in error, please notify BJSS. In the absence of written
> > > agreement to the contrary BJSS' relevant standard terms of contract
> > > for any work to be undertaken will apply. Please carry out virus or
> > > such other checks as you consider appropriate in respect of this
> > > email. BJSS does not accept responsibility for any adverse effect
> > > upon your system or data in relation to this email or any files
> > > transmitted with it. BJSS Limited, a company registered in England
> > > and Wales (Company Number 2777575), VAT Registration Number
> > > 613295452, Registered
> > Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > <javascript:;>
> > > For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> > <javascript:;>
> > >
> >
> > The information included in this email and any files transmitted with
> > it may contain information that is confidential and it must not be
> > used by, or its contents or attachments copied or disclosed to,
> > persons other than the intended addressee. If you have received this
> > email in error, please notify BJSS. In the absence of written
> > agreement to the contrary BJSS' relevant standard terms of contract
> > for any work to be undertaken will apply. Please carry out virus or
> > such other checks as you consider appropriate in respect of this
> > email. BJSS does not accept responsibility for any adverse effect upon
> > your system or data in relation to this email or any files transmitted
> > with it. BJSS Limited, a company registered in England and Wales
> > (Company Number 2777575), VAT Registration Number 613295452, Registered
> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > <javascript:;> For additional commands, e-mail:
> > user-help@jmeter.apache.org <javascript:;> <javascript:;>
> >
> > The information included in this email and any files transmitted with
> > it may contain information that is confidential and it must not be
> > used by, or its contents or attachments copied or disclosed to,
> > persons other than the intended addressee. If you have received this
> > email in error, please notify BJSS. In the absence of written
> > agreement to the contrary BJSS' relevant standard terms of contract
> > for any work to be undertaken will apply. Please carry out virus or
> > such other checks as you consider appropriate in respect of this
> > email. BJSS does not accept responsibility for any adverse effect upon
> > your system or data in relation to this email or any files transmitted
> > with it. BJSS Limited, a company registered in England and Wales
> > (Company Number 2777575), VAT Registration Number 613295452, Registered
> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > <javascript:;> For additional commands, e-mail:
> > user-help@jmeter.apache.org <javascript:;> <javascript:;>
> >
>
>
> --
> Cordialement.
> Philippe Mouawad.
>
> The information included in this email and any files transmitted with it
> may contain information that is confidential and it must not be used by, or
> its contents or attachments copied or disclosed to, persons other than the
> intended addressee. If you have received this email in error, please notify
> BJSS. In the absence of written agreement to the contrary BJSS' relevant
> standard terms of contract for any work to be undertaken will apply. Please
> carry out virus or such other checks as you consider appropriate in respect
> of this email. BJSS does not accept responsibility for any adverse effect
> upon your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales (Company
> Number 2777575), VAT Registration Number 613295452, Registered Office
> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
> For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
>
--
Cordialement.
Philippe Mouawad.
RE: Test Duration
Posted by Stuart Kenworthy <St...@bjss.com>.
Many people are still using 2.13 which Is why I mentioned it.
However there is still a potential problem, duration does not interrupt timers or test action waits.
Also if you have samplers that are currently awaiting a response, it waits until the response before terminating.
This means if you have a 10 minute wait, via timer or test action, in your test plan and one if the threads is in the timer or test action, or your sampler is currently waiting to timeout, you have to wait for that to finish after the duration ends.
I understand this is by design and is also present in the UI but it does cause problems when running real world user journeys.
Not a major problem but something a lot of people fall into.
-----Original Message-----
From: Philippe Mouawad [mailto:philippe.mouawad@gmail.com]
Sent: 01 March 2017 18:04
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Re: Test Duration
Hello,
The methods described by Antonio and Sebb work perfectly well.
If you have any issue, please provide more details and an example test plan.
No need to switch to old 2.13 for this.
Regards
On Wednesday, March 1, 2017, Stuart Kenworthy <St...@bjss.com>
wrote:
> Wow I take that back, it now seems that schedule in v3.1 does seem to
> do what you expect. May want to test properly if using 2.13.
>
> -----Original Message-----
> From: Stuart Kenworthy [mailto:Stuart.Kenworthy@bjss.com
> <javascript:;>]
> Sent: 01 March 2017 16:33
> To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
> Subject: RE: Test Duration
>
> Does this actually work? In my experience, running a scheduler in
> command line does not work as expected, or at all.
>
> -----Original Message-----
> From: Antonio Gomes Rodrigues [mailto:ra0077@gmail.com <javascript:;>]
> Sent: 01 March 2017 16:30
> To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
> Subject: Re: Test Duration
>
> Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration
> (seconds)" input
>
> And when you run JMeter, use -JRUNTIME=99 in the command line
>
> Instead of 99, put the desired test duration in seconds
>
> 2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <Stuart.Kenworthy@bjss.com
> <javascript:;>>:
>
> > And how would this be used to control run time within the script itself?
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com <javascript:;>]
> > Sent: 01 March 2017 16:24
> > To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
> > Subject: Re: Test Duration
> >
> > 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
> <javascript:;>>
> > 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
> <javascript:;>>:
> > >
> > >> 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 <javascript:;>* <bbodnar@us.ibm.com
> <javascript:;>>
> > >> 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 <javascript:;>>
> > >> To: <user@jmeter.apache.org <javascript:;>>
> > >> 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
> <javascript:;>
> > >> For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> > >>
> > >>
> > >>
> > >>
> > >>
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> >
> >
> > The information included in this email and any files transmitted
> > with it may contain information that is confidential and it must not
> > be used by, or its contents or attachments copied or disclosed to,
> > persons other than the intended addressee. If you have received this
> > email in error, please notify BJSS. In the absence of written
> > agreement to the contrary BJSS' relevant standard terms of contract
> > for any work to be undertaken will apply. Please carry out virus or
> > such other checks as you consider appropriate in respect of this
> > email. BJSS does not accept responsibility for any adverse effect
> > upon your system or data in relation to this email or any files
> > transmitted with it. BJSS Limited, a company registered in England
> > and Wales (Company Number 2777575), VAT Registration Number
> > 613295452, Registered
> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> >
>
> The information included in this email and any files transmitted with
> it may contain information that is confidential and it must not be
> used by, or its contents or attachments copied or disclosed to,
> persons other than the intended addressee. If you have received this
> email in error, please notify BJSS. In the absence of written
> agreement to the contrary BJSS' relevant standard terms of contract
> for any work to be undertaken will apply. Please carry out virus or
> such other checks as you consider appropriate in respect of this
> email. BJSS does not accept responsibility for any adverse effect upon
> your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales
> (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;> For additional commands, e-mail:
> user-help@jmeter.apache.org <javascript:;>
>
> The information included in this email and any files transmitted with
> it may contain information that is confidential and it must not be
> used by, or its contents or attachments copied or disclosed to,
> persons other than the intended addressee. If you have received this
> email in error, please notify BJSS. In the absence of written
> agreement to the contrary BJSS' relevant standard terms of contract
> for any work to be undertaken will apply. Please carry out virus or
> such other checks as you consider appropriate in respect of this
> email. BJSS does not accept responsibility for any adverse effect upon
> your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales
> (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;> For additional commands, e-mail:
> user-help@jmeter.apache.org <javascript:;>
>
--
Cordialement.
Philippe Mouawad.
The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed to, persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS does not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Test Duration
Posted by Philippe Mouawad <ph...@gmail.com>.
Hello,
The methods described by Antonio and Sebb work perfectly well.
If you have any issue, please provide more details and an example test plan.
No need to switch to old 2.13 for this.
Regards
On Wednesday, March 1, 2017, Stuart Kenworthy <St...@bjss.com>
wrote:
> Wow I take that back, it now seems that schedule in v3.1 does seem to do
> what you expect. May want to test properly if using 2.13.
>
> -----Original Message-----
> From: Stuart Kenworthy [mailto:Stuart.Kenworthy@bjss.com <javascript:;>]
> Sent: 01 March 2017 16:33
> To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
> Subject: RE: Test Duration
>
> Does this actually work? In my experience, running a scheduler in command
> line does not work as expected, or at all.
>
> -----Original Message-----
> From: Antonio Gomes Rodrigues [mailto:ra0077@gmail.com <javascript:;>]
> Sent: 01 March 2017 16:30
> To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
> Subject: Re: Test Duration
>
> Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration
> (seconds)" input
>
> And when you run JMeter, use -JRUNTIME=99 in the command line
>
> Instead of 99, put the desired test duration in seconds
>
> 2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <Stuart.Kenworthy@bjss.com
> <javascript:;>>:
>
> > And how would this be used to control run time within the script itself?
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com <javascript:;>]
> > Sent: 01 March 2017 16:24
> > To: JMeter Users List <user@jmeter.apache.org <javascript:;>>
> > Subject: Re: Test Duration
> >
> > 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
> <javascript:;>>
> > 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
> <javascript:;>>:
> > >
> > >> 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 <javascript:;>* <bbodnar@us.ibm.com
> <javascript:;>>
> > >> 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 <javascript:;>>
> > >> To: <user@jmeter.apache.org <javascript:;>>
> > >> 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
> <javascript:;>
> > >> For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> > >>
> > >>
> > >>
> > >>
> > >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> >
> >
> > The information included in this email and any files transmitted with
> > it may contain information that is confidential and it must not be
> > used by, or its contents or attachments copied or disclosed to,
> > persons other than the intended addressee. If you have received this
> > email in error, please notify BJSS. In the absence of written
> > agreement to the contrary BJSS' relevant standard terms of contract
> > for any work to be undertaken will apply. Please carry out virus or
> > such other checks as you consider appropriate in respect of this
> > email. BJSS does not accept responsibility for any adverse effect upon
> > your system or data in relation to this email or any files transmitted
> > with it. BJSS Limited, a company registered in England and Wales
> > (Company Number 2777575), VAT Registration Number 613295452, Registered
> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> >
>
> The information included in this email and any files transmitted with it
> may contain information that is confidential and it must not be used by, or
> its contents or attachments copied or disclosed to, persons other than the
> intended addressee. If you have received this email in error, please notify
> BJSS. In the absence of written agreement to the contrary BJSS' relevant
> standard terms of contract for any work to be undertaken will apply. Please
> carry out virus or such other checks as you consider appropriate in respect
> of this email. BJSS does not accept responsibility for any adverse effect
> upon your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales (Company
> Number 2777575), VAT Registration Number 613295452, Registered Office
> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
> For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
>
> The information included in this email and any files transmitted with it
> may contain information that is confidential and it must not be used by, or
> its contents or attachments copied or disclosed to, persons other than the
> intended addressee. If you have received this email in error, please notify
> BJSS. In the absence of written agreement to the contrary BJSS' relevant
> standard terms of contract for any work to be undertaken will apply. Please
> carry out virus or such other checks as you consider appropriate in respect
> of this email. BJSS does not accept responsibility for any adverse effect
> upon your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales (Company
> Number 2777575), VAT Registration Number 613295452, Registered Office
> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
> For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
>
--
Cordialement.
Philippe Mouawad.
RE: Test Duration
Posted by Sergio Boso <se...@bosoconsulting.it>.
Hi,
You may want to test the "stepping thread group " from jmeter-plugins.
This allows you to setup the duration of each step and much more.
Regards
Sergio Boso
Il 01/Mar/2017 17:48, "Stuart Kenworthy" <St...@bjss.com> ha
scritto:
> Wow I take that back, it now seems that schedule in v3.1 does seem to do
> what you expect. May want to test properly if using 2.13.
>
> -----Original Message-----
> From: Stuart Kenworthy [mailto:Stuart.Kenworthy@bjss.com]
> Sent: 01 March 2017 16:33
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: RE: Test Duration
>
> Does this actually work? In my experience, running a scheduler in command
> line does not work as expected, or at all.
>
> -----Original Message-----
> From: Antonio Gomes Rodrigues [mailto:ra0077@gmail.com]
> Sent: 01 March 2017 16:30
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Re: Test Duration
>
> Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration
> (seconds)" input
>
> And when you run JMeter, use -JRUNTIME=99 in the command line
>
> Instead of 99, put the desired test duration in seconds
>
> 2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <St...@bjss.com>:
>
> > And how would this be used to control run time within the script itself?
> >
> > -----Original Message-----
> > From: sebb [mailto:sebbaz@gmail.com]
> > Sent: 01 March 2017 16:24
> > To: JMeter Users List <us...@jmeter.apache.org>
> > Subject: Re: Test Duration
> >
> > 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 <ra...@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 <bb...@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* <bb...@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 <st...@gmail.com>
> > >> To: <us...@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
> >
> >
> > The information included in this email and any files transmitted with
> > it may contain information that is confidential and it must not be
> > used by, or its contents or attachments copied or disclosed to,
> > persons other than the intended addressee. If you have received this
> > email in error, please notify BJSS. In the absence of written
> > agreement to the contrary BJSS' relevant standard terms of contract
> > for any work to be undertaken will apply. Please carry out virus or
> > such other checks as you consider appropriate in respect of this
> > email. BJSS does not accept responsibility for any adverse effect upon
> > your system or data in relation to this email or any files transmitted
> > with it. BJSS Limited, a company registered in England and Wales
> > (Company Number 2777575), VAT Registration Number 613295452, Registered
> Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
>
> The information included in this email and any files transmitted with it
> may contain information that is confidential and it must not be used by, or
> its contents or attachments copied or disclosed to, persons other than the
> intended addressee. If you have received this email in error, please notify
> BJSS. In the absence of written agreement to the contrary BJSS' relevant
> standard terms of contract for any work to be undertaken will apply. Please
> carry out virus or such other checks as you consider appropriate in respect
> of this email. BJSS does not accept responsibility for any adverse effect
> upon your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales (Company
> Number 2777575), VAT Registration Number 613295452, Registered Office
> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
> The information included in this email and any files transmitted with it
> may contain information that is confidential and it must not be used by, or
> its contents or attachments copied or disclosed to, persons other than the
> intended addressee. If you have received this email in error, please notify
> BJSS. In the absence of written agreement to the contrary BJSS' relevant
> standard terms of contract for any work to be undertaken will apply. Please
> carry out virus or such other checks as you consider appropriate in respect
> of this email. BJSS does not accept responsibility for any adverse effect
> upon your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales (Company
> Number 2777575), VAT Registration Number 613295452, Registered Office
> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
RE: Test Duration
Posted by Stuart Kenworthy <St...@bjss.com>.
Wow I take that back, it now seems that schedule in v3.1 does seem to do what you expect. May want to test properly if using 2.13.
-----Original Message-----
From: Stuart Kenworthy [mailto:Stuart.Kenworthy@bjss.com]
Sent: 01 March 2017 16:33
To: JMeter Users List <us...@jmeter.apache.org>
Subject: RE: Test Duration
Does this actually work? In my experience, running a scheduler in command line does not work as expected, or at all.
-----Original Message-----
From: Antonio Gomes Rodrigues [mailto:ra0077@gmail.com]
Sent: 01 March 2017 16:30
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Re: Test Duration
Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration (seconds)" input
And when you run JMeter, use -JRUNTIME=99 in the command line
Instead of 99, put the desired test duration in seconds
2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <St...@bjss.com>:
> And how would this be used to control run time within the script itself?
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: 01 March 2017 16:24
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Re: Test Duration
>
> 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 <ra...@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 <bb...@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* <bb...@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 <st...@gmail.com>
> >> To: <us...@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
>
>
> The information included in this email and any files transmitted with
> it may contain information that is confidential and it must not be
> used by, or its contents or attachments copied or disclosed to,
> persons other than the intended addressee. If you have received this
> email in error, please notify BJSS. In the absence of written
> agreement to the contrary BJSS' relevant standard terms of contract
> for any work to be undertaken will apply. Please carry out virus or
> such other checks as you consider appropriate in respect of this
> email. BJSS does not accept responsibility for any adverse effect upon
> your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales
> (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed to, persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS does not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed to, persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS does not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
RE: Test Duration
Posted by Stuart Kenworthy <St...@bjss.com>.
Does this actually work? In my experience, running a scheduler in command line does not work as expected, or at all.
-----Original Message-----
From: Antonio Gomes Rodrigues [mailto:ra0077@gmail.com]
Sent: 01 March 2017 16:30
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Re: Test Duration
Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration (seconds)" input
And when you run JMeter, use -JRUNTIME=99 in the command line
Instead of 99, put the desired test duration in seconds
2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <St...@bjss.com>:
> And how would this be used to control run time within the script itself?
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: 01 March 2017 16:24
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Re: Test Duration
>
> 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 <ra...@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 <bb...@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* <bb...@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 <st...@gmail.com>
> >> To: <us...@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
>
>
> The information included in this email and any files transmitted with
> it may contain information that is confidential and it must not be
> used by, or its contents or attachments copied or disclosed to,
> persons other than the intended addressee. If you have received this
> email in error, please notify BJSS. In the absence of written
> agreement to the contrary BJSS' relevant standard terms of contract
> for any work to be undertaken will apply. Please carry out virus or
> such other checks as you consider appropriate in respect of this
> email. BJSS does not accept responsibility for any adverse effect upon
> your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales
> (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed to, persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS does not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Test Duration
Posted by Antonio Gomes Rodrigues <ra...@gmail.com>.
Put ${__P(RUNTIME,100) in the "Thread Group" element in "Duration
(seconds)" input
And when you run JMeter, use -JRUNTIME=99 in the command line
Instead of 99, put the desired test duration in seconds
2017-03-01 17:25 GMT+01:00 Stuart Kenworthy <St...@bjss.com>:
> And how would this be used to control run time within the script itself?
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: 01 March 2017 16:24
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Re: Test Duration
>
> 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 <ra...@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 <bb...@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* <bb...@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 <st...@gmail.com>
> >> To: <us...@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
>
>
> The information included in this email and any files transmitted with it
> may contain information that is confidential and it must not be used by, or
> its contents or attachments copied or disclosed to, persons other than the
> intended addressee. If you have received this email in error, please notify
> BJSS. In the absence of written agreement to the contrary BJSS' relevant
> standard terms of contract for any work to be undertaken will apply. Please
> carry out virus or such other checks as you consider appropriate in respect
> of this email. BJSS does not accept responsibility for any adverse effect
> upon your system or data in relation to this email or any files transmitted
> with it. BJSS Limited, a company registered in England and Wales (Company
> Number 2777575), VAT Registration Number 613295452, Registered Office
> Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
Re: Test Duration
Posted by sebb <se...@gmail.com>.
On 1 March 2017 at 16:25, Stuart Kenworthy <St...@bjss.com> wrote:
> And how would this be used to control run time within the script itself?
[See Antonio's message]
Use it as the Scheduler Duration value.
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: 01 March 2017 16:24
> To: JMeter Users List <us...@jmeter.apache.org>
> Subject: Re: Test Duration
>
> 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 <ra...@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 <bb...@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* <bb...@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 <st...@gmail.com>
>>> To: <us...@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
>
>
> The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed to, persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS does not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
>
> ---------------------------------------------------------------------
> 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
RE: Test Duration
Posted by Stuart Kenworthy <St...@bjss.com>.
And how would this be used to control run time within the script itself?
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: 01 March 2017 16:24
To: JMeter Users List <us...@jmeter.apache.org>
Subject: Re: Test Duration
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 <ra...@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 <bb...@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* <bb...@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 <st...@gmail.com>
>> To: <us...@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
The information included in this email and any files transmitted with it may contain information that is confidential and it must not be used by, or its contents or attachments copied or disclosed to, persons other than the intended addressee. If you have received this email in error, please notify BJSS. In the absence of written agreement to the contrary BJSS' relevant standard terms of contract for any work to be undertaken will apply. Please carry out virus or such other checks as you consider appropriate in respect of this email. BJSS does not accept responsibility for any adverse effect upon your system or data in relation to this email or any files transmitted with it. BJSS Limited, a company registered in England and Wales (Company Number 2777575), VAT Registration Number 613295452, Registered Office Address, First Floor, Coronet House, Queen Street, Leeds, LS1 2TW.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Test Duration
Posted by sebb <se...@gmail.com>.
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 <ra...@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 <bb...@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* <bb...@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 <st...@gmail.com>
>> To: <us...@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
Re: Test Duration
Posted by Antonio Gomes Rodrigues <ra...@gmail.com>.
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 <bb...@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* <bb...@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 <st...@gmail.com>
> To: <us...@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
>
>
>
>
>
Re: Test Duration
Posted by Bo Bodnar <bb...@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
E-mail: bbodnar@us.ibm.com 222 South Riverside Plaza
Chicago, IL 60606
United States
From: Stuart Barlow <st...@gmail.com>
To: <us...@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