https://issues.apache.org/bugzilla/show_bug.cgi?id=44671
Summary: Variable expansion doesn't work in the configuration
element
Product: JMeter
Version: 2.3.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Created an attachment (id=21712)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=21712)
Illustrating test case.
This bug is a yet another spin-off of #44519 and #40934. As I've described
there, using a JDBC sampler with user parameters is currently not possible,
since parameter expansion doesn't work there. Apparent explanation by sebb is
that the configuration element is initialized before pre-compiler runs so that
the solution might be using a User Defined Variables configuration element
instead of User Parameters. However, this doesn't work either, at least not the
way I need it.
My testcases use parameter expansion extensively so that the test can be run
for different servers without much hassle. When using User Parameters, it is
possible to define common string parts in a parameter and re-use it in other
parameters, e.g. setting commonPath variable to "c:\test" and using it in
testsPath variable as "${commonPath}\tests". This is not possible with User
Defined Variables. When defined in the same manner, testsPath contains
"${commonPath}\tests" at runtime instead of "c:\test\tests".
I include a test case which illustrates the problem. Two network addresses are
defined in UDV and two user names in UP. In the result from the Debug Sampler I
see UPs expanded and UDV unexpanded which is IMHO not the correct behaviour.
Same problem if the variables are defined on Test Plan level.
I'm sorry if this bug report is based on false assumptions about the way JMeter
functions.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]