I am using Jmeter 2.3.2. I like to generate a unique string of 13 characters
(based on the timestamp) and the first character has to be an alphabet. I
was getting a string with a timestamp and want to extract 12 digits from 0
thru 12 and like to prefix it with an alpha character (eg: "p").



sebb-2-2 wrote:
> 
> On 06/10/2008, henryd <[EMAIL PROTECTED]> wrote:
>>
>>
>>  Can you please tell me what is wrong with this function:
>>  ${__javaScript(var d = new Date(); var date = d.getDate(); var
>>  t=d.getTime(); var tl=t.length; var subtl=t.substr(0,t.tl-1); $sn =
>>  "p"+subtl;)}${__threadNum}
>>
> 
> What error message(s) are you getting?
> 
> Where are you using the script?
> 
> What do you expect it to generate?
> 
> Which version of JMeter?
> 
>>  --
>>  View this message in context:
>> http://www.nabble.com/please-help-with-a-javascript-error-tp19841589p19841589.html
>>  Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/please-help-with-a-javascript-error-tp19841589p19843276.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to