Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
16 years ago

[SOLVED]ThreadIndex in DataSink file name

I am running a load test with a test case that has a DataSink that writes to an Excel file. I want to use the ThreadIndex to create unique filenames, but I keep getting 0 for all threads.

Here is the Out File value:

${projectDir}/results/${#TestCase#datasinkFile} - ${=String.format('%tY%<tm%<td-%<tH%<tM%<tS', new GregorianCalendar())} - ${ThreadIndex}.xls


and a resulting filename:

Test Results - 20091014-144643 - 0.xls


What am I doing wrong?

I am using build 3.0-pro-daily-build-2009-09-28-[1]

Thanks.