Bug 33467 - ${__threadNum} takes as value part of the Thread Group name, if the name contains dashes
Summary: ${__threadNum} takes as value part of the Thread Group name, if the name cont...
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.0.2
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2005-02-09 15:13 UTC by Codrin Bucur
Modified: 2005-02-17 18:23 UTC (History)
0 users


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