Thanks for the clarification.  So I am curious as to how to define a specific 
start time (as opposed to "now") in non-gui mode from a shell script.  I have 
managed to leverage the unix date command and calculated the epoch in ms that 
way, but it's a bit clunky, relying on the correct date format.  Then I passed 
the calculated epoch into JMeter as a property defined in my test plan.

Is this the best practice?  How do other users do this (or everyone just uses 
"now") ?

 I was hoping there is something similar to a "--date" command line option 
accepting a SimpleDateFormat.

Just want to make sure I didn't miss an obvious or more straight-forward 
solution.

--- On Fri, 10/2/09, sebb <seb...@gmail.com> wrote:

From: sebb <seb...@gmail.com>
Subject: Re: ThreadGroup start and end time in date format
To: "JMeter Users List" <jmeter-user@jakarta.apache.org>
Date: Friday, October 2, 2009, 9:50 PM

On 02/10/2009, Tech Newbie <tec...@yahoo.com> wrote:
> Does this mean the timestamp format in jmeter.properties applies to both the 
> csv output
>  AND parsing a thread group's start_time property?  This is what I have:

No it doesn't apply to the start_time property.

Sorry, I misread your original question.

You can only use milliseconds in the JMX file.

>  jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss
>
>  and in my test plan:
>  <stringProp 
>name="ThreadGroup.start_time">${__P(submit_start,1254374051000)}</stringProp>
>
>  But when I invoke jmeter:
>  ../jmeter -n -t ./HelloWorld.jmx -l ./HelloWorld.jtl 
>-Jsubmit_start="2009/10/02 13:42:11"
>  An error occurred: Unknown arg: 13:42:11"
>
>  Look like the error is caused by the space between the date and time 
>eventhough the value is quoted.
>
>  Is this possible or do I have to resort to epoch?
>
>  --- On Fri, 10/2/09, sebb <seb...@gmail.com> wrote:
>
>  From: sebb <seb...@gmail.com>
>  Subject: Re: ThreadGroup start and end time in date format
>  To: "JMeter Users List" <jmeter-user@jakarta.apache.org>
>  Date: Friday, October 2, 2009, 8:52 AM
>
>
>  On 02/10/2009, Tech Newbie <tec...@yahoo.com> wrote:
>  > Let me clarify that the question is regarding defining the start and end 
>time in the test plan (i.e. not in the gui).
>  >
>  >  In my test plan:
>  >          <longProp name="ThreadGroup.start_time">1243889520000</longProp>
>  >          <longProp name="ThreadGroup.end_time">1243889499000</longProp>
>  >
>  >  Can I use string for SimpleDateFormat instead?
>
>  Not when using XML format. However, in CSV format you can, see
>
>  jmeter.save.saveservice.timestamp
>
>  >  --- On Fri, 10/2/09, Tech Newbie <tec...@yahoo.com> wrote:
>  >
>  >  From: Tech Newbie <tec...@yahoo.com>
>  >  Subject: ThreadGroup start and end time in date format
>  >  To: jmeter-user@jakarta.apache.org
>  >  Date: Friday, October 2, 2009, 5:37 AM
>  >
>  >
>  >  Is it possible to specify thread group start and end time in 
>SimpleDateFormat instead of epoch?  Similar to how result timestamps support 
>both formats.
>  >
>  >  Thanks.
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>
>
>
>

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




      

Reply via email to