You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2007/08/09 02:10:20 UTC

Re: Variables in log file names

With the current version of JMeter you can use the properties/variables:

START.MS - start time in milliseconds
START.YMD - start time as yyyyMMdd
START.HMS - start time as HHmmss

as part of the filename, see:

http://jakarta.apache.org/jmeter/usermanual/functions.html#predefinedprops

On 27/07/07, iblavins <ib...@temenos.com> wrote:
> G'day
>
> I struggled with this sort of thing for a while.
>
> The basic answer is that for each variable reference you have to consider
> when it is evaluated.
>
> The name of a log file is evaluated once prior to execution. Since the
> variable you are using is not defined at that time it evaluates to its own
> name.
>
>
>
>
> Ian Blavins
> Contract Performance Engineer
> Temenos
>
> -----Original Message-----
> From: Ronan Klyne [mailto:ronan.klyne@groupbc.com]
> Sent: 27 July 2007 15:02
> To: JMeter Users List
> Subject: Variables in log file names
>
> Hi all,
>
> I'm using several Simple Data Writers to record data, and would like the
> file names to be controlled by a variable. I have set one file name
> field to:
>
> ..\projects\test\${log_prefix}_10user_tests_log.xml
>
> but I only get files called "${log_prefix}_10user_tests_log.xml",
> despite having a variable set called 'log_prefix'.
> Is what I want to do possible?
> Am I going about it the right way?
> Is there any way to get the data from separate test runs in separate
> files/directories?
>
>        Ronan
>
> --
> Ronan Klyne
> Business Collaborator Developer
> Tel: +44 (0)870 163 2555
> ronan.klyne@groupbc.com
> www.groupbc.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
>
> This email (and any attachments) contains confidential information, and is intended
> only for the named recipient. Distribution or copying of this email by anyone
> other than the named recipient is prohibited. If you are not the named or
> intended recipient, please notify TEMENOS or the sender immediately and
> permanently destroy this email (and any attachments) and all copies of it. No
> member of TEMENOS Group AG or any of its associated or affiliated companies is
> liable for any errors or omissions in the content or transmission of this
> email. Any opinions contained in this email are solely those of the author and,
> unless clearly indicated otherwise in writing, are not endorsed by any member
> of TEMENOS Group AG or any of its associated and affiliated companies.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: Variables in log file names

Posted by Ronan Klyne <ro...@groupbc.com>.
sebb wrote:
> With the current version of JMeter you can use the properties/variables:
> 
> START.MS - start time in milliseconds
> START.YMD - start time as yyyyMMdd
> START.HMS - start time as HHmmss
> 
> as part of the filename, see:
> 
> http://jakarta.apache.org/jmeter/usermanual/functions.html#predefinedprops

That's exactly what I need - thankyou kindly.... :D

	# r

-- 
Ronan Klyne
Business Collaborator Developer
Tel: +44 (0)870 163 2555
ronan.klyne@groupbc.com
www.groupbc.com

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