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:[email protected]]
Sent: 01 March 2017 15:43
To: [email protected]
Subject: Test Duration
Hi. Is there a way to define the duration a test should run via the command
line?
Is there a JMeter property available? Then it could be set using the -J command
line option
-J[prop_name]=[value]
defines a local JMeter property.
Sorry if this was asked before.
Thanks
Stuart
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
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.