Bug 33467 - ${__threadNum} takes as value part of the Thread Group name, if the name contains dashes
${__threadNum} takes as value part of the Thread Group name, if the name cont...
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.0.2
PC Windows 2000
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2005-02-09 15:13 UTC by Codrin Bucur
Modified: 2005-02-17 18:23 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Codrin Bucur 2005-02-09 15:13:07 UTC
If the name of the Thread Group is "X-Hive Concurrency Test", the values of the
${__threadNum} variable become "Hive Concurrency Test 1 - 1", "Hive Concurrency
Test 1 - 2", ... , "Hive Concurrency Test 1 - N" instead of "1", "2", ..., "N"

So basically everything after the dash (-) becomes part of the prefix of the
${__threadNum} values.

This could be a feature, but to me it looks like a bug.

If it is a feature, at least it is a documentation bug.
Comment 1 Sebb 2005-02-18 03:23:12 UTC
Indeed, a bug.

I've changed indexOf("-") to lastIndexOf("-") and it now works OK.

The change has been made in the 2_0 branch