Hello,
Thanks very much for the quick and helpful reply.
I tried this technique in a User Defined Variable:
Name Value
today ${__javaScript(new Date(),Dummy)}
bizName ${today} ${counter}(note that counter is a counter setup in the thread group)
When I try to reference the ${bizName} variable, it resolves to the literal string '${today} ${counter}'
Are variables not dereferenced in the value of a User Defined Variable?
I am using JMeter 2.0.3
Thanks very much for your help! Seth
Yes, several methods. All rely on functions.
1) Get the date from the OS, and set a property on the command line with the value, then use one of the property functions to retrieve it. E.g. jmeter -Dtoday="`date`" Then refer to it as ${today}
2) Use the JavaScript function to create a suitable date string, e.g. ${__javaScript(new Date(),Dummy)}
3) Use the BeanShell function to create a suitable date string e.g. ${__BeanShell(new java.util.Date())}
You'll need to adjust the format.
S.
--------------------------------------------------------------------- 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]

